go-blockchain/consensus
Claude d7917234ed
feat(consensus): add ErrBlockVersion alias and comprehensive block version tests
Add ErrBlockVersion as an alias for ErrBlockMajorVersion for clarity.
Add table-driven tests for expectedBlockMajorVersion covering all
hardfork boundaries (HF0 through HF4+) on both mainnet and testnet
schedules. Add standalone checkBlockVersion tests with Good/Bad/Ugly
pattern including version 255 edge case and exact HF1 boundary checks.

Co-Authored-By: Charon <charon@lethean.io>
2026-03-16 20:47:47 +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): add ErrBlockVersion alias and comprehensive block version tests 2026-03-16 20:47:47 +00:00
doc.go feat(consensus): scaffold package with error types 2026-02-21 00:39:41 +00:00
errors.go feat(consensus): add ErrBlockVersion alias and comprehensive block version tests 2026-03-16 20:47:47 +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