go-blockchain/chain
Snider 71f0a5c1d5
Some checks failed
Security Scan / security (push) Successful in 11s
Test / Test (push) Failing after 23s
refactor: replace fmt.Errorf/os.* with go-io/go-log conventions
Replace all fmt.Errorf and errors.New in production code with
coreerr.E("Caller.Method", "message", err) from go-log. Replace
os.MkdirAll with coreio.Local.EnsureDir from go-io. Sentinel errors
(consensus/errors.go, wire/varint.go) intentionally kept as errors.New
for errors.Is compatibility.

270 error call sites converted across 38 files. Test files untouched.
crypto/ directory (CGO) untouched.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 21:17:49 +00:00
..
chain.go refactor: replace fmt.Errorf/os.* with go-io/go-log conventions 2026-03-16 21:17:49 +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 fix(chain): gate difficulty target switch on HF6, not HF2 2026-03-16 20:47:56 +00:00
difficulty_test.go fix(chain): gate difficulty target switch on HF6, not HF2 2026-03-16 20:47:56 +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 refactor: replace fmt.Errorf/os.* with go-io/go-log conventions 2026-03-16 21:17:49 +00:00
integration_test.go fix(difficulty): correct LWMA algorithm and hardfork-aware target 2026-02-21 22:32:57 +00:00
levinconn.go refactor: replace fmt.Errorf/os.* with go-io/go-log conventions 2026-03-16 21:17:49 +00:00
meta.go feat(chain): go-store dependency and metadata types 2026-02-20 21:42:22 +00:00
p2psync.go refactor: replace fmt.Errorf/os.* with go-io/go-log conventions 2026-03-16 21:17:49 +00:00
p2psync_test.go feat(chain): add P2P sync state machine 2026-02-21 21:00:57 +00:00
ring.go refactor: replace fmt.Errorf/os.* with go-io/go-log conventions 2026-03-16 21:17:49 +00:00
ring_test.go feat(chain): add GetRingOutputs callback for signature verification 2026-02-21 20:28:54 +00:00
store.go refactor: replace fmt.Errorf/os.* with go-io/go-log conventions 2026-03-16 21:17:49 +00:00
sync.go refactor: replace fmt.Errorf/os.* with go-io/go-log conventions 2026-03-16 21:17:49 +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 refactor: replace fmt.Errorf/os.* with go-io/go-log conventions 2026-03-16 21:17:49 +00:00
validate_test.go feat(chain): block header validation (linkage, height, size) 2026-02-20 21:50:12 +00:00