go-blockchain/consensus
Snider 76488e0beb
Some checks are pending
Security Scan / security (push) Waiting to run
Test / Test (push) Waiting to run
feat(wire): add alias entry readers + AX usage-example comments
Add readExtraAliasEntryOld (tag 20) and readExtraAliasEntry (tag 33)
wire readers so the node can deserialise blocks containing alias
registrations. Without these readers, mainnet sync would fail on any
block with an alias transaction. Three round-trip tests validate the
new readers.

Also apply AX-2 (comments as usage examples) across 12 files: add
concrete usage-example comments to exported functions in config/,
types/, wire/, chain/, difficulty/, and consensus/. Fix stale doc
in consensus/doc.go that incorrectly referenced *config.ChainConfig.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-05 08:46:54 +01:00
..
balance.go refactor(types,consensus,chain): apply AX design principles across public API 2026-04-05 07:36:31 +01:00
block.go refactor(types,consensus,chain): apply AX design principles across public API 2026-04-05 07:36:31 +01:00
block_test.go fix(consensus): tighten fork-era type gating 2026-04-04 22:18:53 +00:00
doc.go feat(wire): add alias entry readers + AX usage-example comments 2026-04-05 08:46:54 +01:00
errors.go fix(consensus): validate miner tx versions by fork era 2026-04-04 21:18:42 +00:00
errors_test.go feat(consensus): scaffold package with error types 2026-02-21 00:39:41 +00:00
fee.go refactor(types,consensus,chain): apply AX design principles across public API 2026-04-05 07:36:31 +01:00
fee_test.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00
freeze_test.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00
integration_test.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00
pow.go refactor(types,consensus,chain): apply AX design principles across public API 2026-04-05 07:36:31 +01:00
pow_test.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00
reward.go refactor(types,consensus,chain): apply AX design principles across public API 2026-04-05 07:36:31 +01:00
reward_test.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00
tx.go refactor(types,consensus,chain): apply AX design principles across public API 2026-04-05 07:36:31 +01:00
tx_test.go fix(consensus): tighten fork-era type gating 2026-04-04 22:18:53 +00:00
tx_version_test.go refactor(consensus): expand fork-state naming 2026-04-04 23:04:19 +00:00
v2sig.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00
v2sig_test.go fix(consensus): validate HTLC tags in v2 signatures 2026-04-04 20:32:39 +00:00
verify.go refactor(types,consensus,chain): apply AX design principles across public API 2026-04-05 07:36:31 +01:00
verify_crypto_test.go test(core): align helpers with current APIs 2026-04-04 22:04:52 +00:00
verify_test.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00