go-blockchain/chain
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
..
chain.go feat(wire): add alias entry readers + AX usage-example comments 2026-04-05 08:46:54 +01:00
chain_test.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00
difficulty.go refactor(types,consensus,chain): apply AX design principles across public API 2026-04-05 07:36:31 +01:00
difficulty_test.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00
history.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00
history_test.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00
index.go feat(wire): add alias entry readers + AX usage-example comments 2026-04-05 08:46:54 +01:00
integration_test.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00
levinconn.go feat(wire): add alias entry readers + AX usage-example comments 2026-04-05 08:46:54 +01:00
meta.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00
p2psync.go refactor(ax): make chain sync logging explicit 2026-04-04 21:03:36 +00:00
p2psync_test.go refactor: migrate module path to dappco.re/go/core/blockchain 2026-03-22 01:49:26 +00:00
ring.go refactor(types,consensus,chain): apply AX design principles across public API 2026-04-05 07:36:31 +01:00
ring_test.go test(chain): pin HTLC expiration boundary 2026-04-04 21:30:53 +00:00
store.go feat(wire): add alias entry readers + AX usage-example comments 2026-04-05 08:46:54 +01:00
sync.go refactor(ax): make chain sync logging explicit 2026-04-04 21:03:36 +00:00
sync_test.go test(core): align helpers with current APIs 2026-04-04 22:04:52 +00:00
validate.go feat(consensus): enforce block version in chain sync 2026-04-04 18:56:36 +00:00
validate_test.go feat(consensus): enforce block version in chain sync 2026-04-04 18:56:36 +00:00