go-blockchain/chain
Claude 8a4a9c0cb7
Some checks are pending
Security Scan / security (push) Waiting to run
Test / Test (push) Waiting to run
feat(chain): add BlockCallback fired after every block stored
Chain.SetBlockCallback(func(height, hash, aliasName)) enables
event-driven architecture — the EventBus subscribes to block
storage and emits events without coupling chain to events.

Callback fires in processBlockBlobs after PutBlock succeeds.
Includes alias name if the block contains an alias registration.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 04:43:02 +01:00
..
alias.go fix(chain): replace banned strings.SplitN with core.SplitN in alias.go 2026-04-02 04:11:17 +01:00
alias_test.go test: add tests for service, dns, forge, alias, blockdata (6 files) 2026-04-02 03:54:45 +01:00
blockdata.go feat: complete all 10 RFC request items 2026-04-02 01:48:31 +01:00
blockdata_test.go test: add tests for service, dns, forge, alias, blockdata (6 files) 2026-04-02 03:54:45 +01:00
chain.go feat(chain): add BlockCallback fired after every block stored 2026-04-02 04:43:02 +01:00
chain_test.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
difficulty.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
difficulty_test.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
genesis.go feat(chain): add genesis-based network auto-detection 2026-04-02 01:30:58 +01:00
genesis_test.go test: close audit gaps — HSD client, config, genesis, daemon tests 2026-04-02 03:18:36 +01:00
history.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
history_test.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
index.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
integration_test.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
levinconn.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
levinconn_test.go feat: register 16 Core actions for CLI/MCP/API auto-exposure 2026-04-02 04:13:36 +01:00
meta.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
p2psync.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
p2psync_test.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
ring.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
ring_test.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
store.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
store_test.go feat: register 16 Core actions for CLI/MCP/API auto-exposure 2026-04-02 04:13:36 +01:00
sync.go feat(chain): add BlockCallback fired after every block stored 2026-04-02 04:43:02 +01:00
sync_test.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
validate.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00
validate_test.go fix(blockchain): complete AX v0.8.0 polish pass 2026-03-26 16:58:23 +00:00