fix(consensus): restore exported block version check
Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
219aeae540
commit
bc3e208691
1 changed files with 6 additions and 0 deletions
|
|
@ -190,6 +190,12 @@ func checkBlockVersion(majorVersion uint8, forks []config.HardFork, height uint6
|
|||
return nil
|
||||
}
|
||||
|
||||
// CheckBlockVersion validates that the block's major version matches the
|
||||
// expected version for the supplied height and fork schedule.
|
||||
func CheckBlockVersion(majorVersion uint8, forks []config.HardFork, height uint64) error {
|
||||
return checkBlockVersion(majorVersion, forks, height)
|
||||
}
|
||||
|
||||
// ValidateBlock performs full consensus validation on a block. It checks
|
||||
// the block version, timestamp, miner transaction structure, and reward.
|
||||
// Transaction semantic validation for regular transactions should be done
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue