go-blockchain/consensus
Claude b1a0e9637b
feat(consensus): validate block major version for HF1
Adds expectedBlockMajorVersion and checkBlockVersion, called from
ValidateBlock before timestamp validation. Block version must match
the fork era: HF0->0, HF1->1, HF3->2, HF4+->3.
Tests cover both mainnet and testnet fork schedules including
boundary heights.

Co-Authored-By: Charon <charon@lethean.io>
2026-03-16 20:40:11 +00:00
..
block.go feat(consensus): validate block major version for HF1 2026-03-16 20:40:11 +00:00
block_test.go feat(consensus): validate block major version for HF1 2026-03-16 20:40:11 +00:00
doc.go feat(consensus): scaffold package with error types 2026-02-21 00:39:41 +00:00
errors.go feat(consensus): validate block major version for HF1 2026-03-16 20:40:11 +00:00
errors_test.go feat(consensus): scaffold package with error types 2026-02-21 00:39:41 +00:00
fee.go feat(consensus): include HTLC/multisig in fee calculation and key image checks 2026-03-16 20:37:06 +00:00
fee_test.go feat(consensus): include HTLC/multisig in fee calculation and key image checks 2026-03-16 20:37:06 +00:00
integration_test.go docs: Phase 7 consensus rules complete 2026-02-21 01:14:41 +00:00
pow.go chore: use range-over-integer (Go 1.22+) 2026-02-24 16:14:08 +00:00
pow_test.go feat(consensus): PoW difficulty check with RandomX 2026-02-21 01:04:16 +00:00
reward.go chore: fmt.Errorf(static) → errors.New 2026-02-24 16:11:27 +00:00
reward_test.go feat(consensus): block reward with size penalty 2026-02-21 00:42:46 +00:00
tx.go feat(consensus): gate HTLC and multisig types on HF1 2026-03-16 20:36:58 +00:00
tx_test.go feat(consensus): gate HTLC and multisig types on HF1 2026-03-16 20:36:58 +00:00
v2sig.go feat(consensus): V2 Zarcanum signature and proof verification 2026-02-22 00:06:10 +00:00
v2sig_test.go feat(consensus): V2 Zarcanum signature and proof verification 2026-02-22 00:06:10 +00:00
verify.go feat(consensus): verify NLSAG signatures for HTLC inputs 2026-03-16 20:38:28 +00:00
verify_crypto_test.go feat(consensus): V2 Zarcanum signature and proof verification 2026-02-22 00:06:10 +00:00
verify_test.go feat(consensus): verify NLSAG signatures for HTLC inputs 2026-03-16 20:38:28 +00:00