go-blockchain/wire
Claude 70fab6f7d0
Some checks failed
Test / Test (push) Failing after 16s
Security Scan / security (push) Failing after 13m58s
fix: restore HF5 asset tags, HTLC/multisig inputs, and tx version check after conventions sweep
The conventions sweep (71f0a5c) overwrote HF5 code and removed HTLC/multisig
input handling. This commit restores:

- wire: HF5 asset wire tags (40/49/50/51) and reader functions for
  asset_descriptor_operation, asset_operation_proof,
  asset_operation_ownership_proof, and asset_operation_ownership_proof_eth
- wire: HTLC and multisig input encode/decode with string field helpers
- consensus: checkTxVersion enforcing version 3 after HF5 / rejecting before
- consensus: HF1-gated acceptance of HTLC and multisig input/output types
- consensus: HTLC key image deduplication in checkKeyImages
- consensus: HTLC ring signature counting in verifyV1Signatures
- chain: corrected error assertion in TestChain_GetBlockByHeight_NotFound

All 14 packages pass go test -race ./...

Co-Authored-By: Charon <charon@lethean.io>
2026-03-16 21:32:33 +00:00
..
block.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
block_test.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
decoder.go refactor: replace fmt.Errorf/os.* with go-io/go-log conventions 2026-03-16 21:17:49 +00:00
decoder_test.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
encoder.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
encoder_test.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
hash.go feat(wire): v2+ transaction serialisation with real testnet verification 2026-02-21 19:09:34 +00:00
hash_test.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
transaction.go fix: restore HF5 asset tags, HTLC/multisig inputs, and tx version check after conventions sweep 2026-03-16 21:32:33 +00:00
transaction_test.go test(wire): add HF1 mixed transaction round-trip integration test 2026-03-16 20:41:28 +00:00
transaction_v2_test.go feat(wire): v2+ transaction serialisation with real testnet verification 2026-02-21 19:09:34 +00:00
transaction_v3_test.go test(wire): add v3 transaction round-trip tests with asset operations 2026-03-16 20:56:36 +00:00
treehash.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
treehash_test.go feat(wire): Phase 1 wire serialisation — bit-identical to C++ daemon 2026-02-20 17:16:08 +00:00
varint.go feat: Phase 0 scaffold -- config, types, wire, difficulty 2026-02-20 15:10:33 +00:00
varint_test.go feat: Phase 0 scaffold -- config, types, wire, difficulty 2026-02-20 15:10:33 +00:00