go-blockchain/chain
Claude 0408d2f3fa
Some checks failed
Security Scan / security (push) Successful in 9s
Test / Test (push) Failing after 15s
refactor(types): change TxOutputBare.Target to TxOutTarget interface
Prepares for HF1 output target types (TxOutMultisig, TxOutHTLC).
All call sites updated to type-assert TxOutToKey where needed.

Modified files:
- types/transaction.go: TxOutputBare.Target is now TxOutTarget
- wire/transaction.go: encode/decode use type switch on target
- chain/ring.go: type-assert target to TxOutToKey for key extraction
- wallet/scanner.go: type-assert target before key comparison
- tui/explorer_model.go: type-assert target for display
- wire/transaction_test.go: type-assert in assertions
- wallet/builder_test.go: type-assert in assertions

Co-Authored-By: Charon <charon@lethean.io>
2026-03-16 20:23:27 +00:00
..
chain.go chore: fmt.Errorf(static) → errors.New 2026-02-24 16:11:27 +00:00
chain_test.go test(chain): boost coverage to >80% with multi-block sync and error paths 2026-02-20 22:02:10 +00:00
difficulty.go chore: use min()/max() builtins (Go 1.21+) 2026-02-24 16:16:01 +00:00
difficulty_test.go fix(difficulty): correct LWMA algorithm and hardfork-aware target 2026-02-21 22:32:57 +00:00
history.go fix(chain): use genesis hash in sparse history for empty chain 2026-02-21 21:31:55 +00:00
history_test.go fix(chain): use genesis hash in sparse history for empty chain 2026-02-21 21:31:55 +00:00
index.go feat(chain): transaction, key image, and output index operations 2026-02-20 21:49:15 +00:00
integration_test.go fix(difficulty): correct LWMA algorithm and hardfork-aware target 2026-02-21 22:32:57 +00:00
levinconn.go feat(chain): add Levin P2P connection adapter and sync integration test 2026-02-21 21:32:05 +00:00
meta.go feat(chain): go-store dependency and metadata types 2026-02-20 21:42:22 +00:00
p2psync.go fix(difficulty): correct LWMA algorithm and hardfork-aware target 2026-02-21 22:32:57 +00:00
p2psync_test.go feat(chain): add P2P sync state machine 2026-02-21 21:00:57 +00:00
ring.go refactor(types): change TxOutputBare.Target to TxOutTarget interface 2026-03-16 20:23:27 +00:00
ring_test.go feat(chain): add GetRingOutputs callback for signature verification 2026-02-21 20:28:54 +00:00
store.go feat(chain): add NextDifficulty for local LWMA computation 2026-02-21 22:03:28 +00:00
sync.go chore: use min()/max() builtins (Go 1.21+) 2026-02-24 16:16:01 +00:00
sync_test.go fix(chain): mark ZC input key images as spent during sync 2026-02-21 20:36:00 +00:00
validate.go chore: fmt.Errorf(static) → errors.New 2026-02-24 16:11:27 +00:00
validate_test.go feat(chain): block header validation (linkage, height, size) 2026-02-20 21:50:12 +00:00