go-blockchain/mining
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
..
hash.go feat(mining): header mining hash and nonce checking 2026-02-21 02:04:33 +00:00
hash_test.go test(mining): add CheckNonce and OnNewTemplate coverage 2026-02-21 02:19:05 +00:00
integration_test.go test(mining): integration test against C++ testnet daemon 2026-02-21 02:20:05 +00:00
miner.go refactor: replace fmt.Errorf/os.* with go-io/go-log conventions 2026-03-16 21:17:49 +00:00
miner_test.go test(mining): add CheckNonce and OnNewTemplate coverage 2026-02-21 02:19:05 +00:00