Skip to content

Commit

Permalink
Remove blocking tests on block version because node contains both alg…
Browse files Browse the repository at this point in the history
…orithm
  • Loading branch information
Dev committed Mar 31, 2024
1 parent cd5888a commit 0bed91d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,11 @@ func (v *blockValidator) checkBlockVersion(header externalapi.BlockHeader) error
*/
if header.DAAScore() >= v.hfDAAScore {
if header.Version() != constants.BlockVersionAfterHF {
return errors.Wrapf(
ruleerrors.ErrWrongBlockVersion, "After HF1 the block version should be %d", constants.BlockVersionAfterHF)
log.Warnf("After HF1 the block version should be %d - block[%d][v%d]", constants.BlockVersionAfterHF, header.DAAScore(), header.Version())
}
} else {
if header.Version() != constants.BlockVersionBeforeHF {
return errors.Wrapf(
ruleerrors.ErrWrongBlockVersion, "Beofre HF1 the block version should be %d", constants.BlockVersionBeforeHF)
log.Warnf("Before HF1 the block version should be %d - block[%d][v%d]", constants.BlockVersionBeforeHF, header.DAAScore(), header.Version())
}
}
return nil
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const validCharacters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrs
const (
appMajor uint = 2
appMinor uint = 0
appPatch uint = 1
appPatch uint = 2
)

// appBuild is defined as a variable so it can be overridden during the build
Expand Down

0 comments on commit 0bed91d

Please sign in to comment.