go-blockchain/p2p
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
..
commands.go feat(p2p): CORE_SYNC_DATA type and command ID constants 2026-02-20 19:34:12 +00:00
handshake.go chore: use range-over-integer (Go 1.22+) 2026-02-24 16:14:08 +00:00
handshake_test.go fix(p2p): correct network IDs and serialisation for C++ daemon compat 2026-02-21 21:17:48 +00:00
integration_test.go test(p2p): integration test for chain request and block fetch 2026-02-21 21:17:54 +00:00
ping.go feat(p2p): ping command encode/decode 2026-02-20 19:34:36 +00:00
ping_test.go feat(p2p): ping command encode/decode 2026-02-20 19:34:36 +00:00
relay.go chore: use range-over-integer (Go 1.22+) 2026-02-24 16:14:08 +00:00
relay_test.go fix(p2p): correct network IDs and serialisation for C++ daemon compat 2026-02-21 21:17:48 +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 feat(p2p): CORE_SYNC_DATA type and command ID constants 2026-02-20 19:34:12 +00:00
timedsync.go feat(p2p): timed sync and block/tx relay command types 2026-02-20 19:41:30 +00:00