go-blockchain/chain
Claude 37a70c0ff1
feat(chain): add sparse chain history builder for P2P sync
Implements get_short_chain_history() algorithm: recent 10 block hashes
then exponentially-spaced hashes back to genesis.

Co-Authored-By: Charon <charon@lethean.io>
2026-02-21 20:56:41 +00:00
..
chain.go feat(chain): Chain struct with block storage and retrieval 2026-02-20 21:44:57 +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
history.go feat(chain): add sparse chain history builder for P2P sync 2026-02-21 20:56:41 +00:00
history_test.go feat(chain): add sparse chain history builder for P2P sync 2026-02-21 20:56:41 +00:00
index.go feat(chain): transaction, key image, and output index operations 2026-02-20 21:49:15 +00:00
integration_test.go test(chain): add full sync-to-tip integration test 2026-02-21 20:47:01 +00:00
meta.go feat(chain): go-store dependency and metadata types 2026-02-20 21:42:22 +00:00
ring.go feat(chain): add GetRingOutputs callback for signature verification 2026-02-21 20:28:54 +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): transaction, key image, and output index operations 2026-02-20 21:49:15 +00:00
sync.go refactor(chain): extract processBlockBlobs for shared RPC/P2P use 2026-02-21 20:50:36 +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 feat(chain): block header validation (linkage, height, size) 2026-02-20 21:50:12 +00:00
validate_test.go feat(chain): block header validation (linkage, height, size) 2026-02-20 21:50:12 +00:00