go-blockchain/daemon
Claude f69b144174
Some checks failed
Security Scan / security (push) Successful in 11s
Test / Test (push) Has been cancelled
test(daemon): add 8 unit tests + fix nil meta panic on empty chain
Tests: GetInfo, GetHeight, GetAssetInfo, UnknownMethod (error),
Health, OpenAPI, Metrics, RESTInfo — all against empty chain.

Fix: guard TopBlock() nil return in getinfo (empty chain panicked).
daemon package: 2382 src → 114+228 = 342 test lines.

15/15 packages pass.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 03:15:26 +01:00
..
server.go test(daemon): add 8 unit tests + fix nil meta panic on empty chain 2026-04-02 03:15:26 +01:00
server_integration_test.go test(daemon): add Go-vs-C++ integration tests 2026-04-02 02:11:12 +01:00
server_test.go test(daemon): add 8 unit tests + fix nil meta panic on empty chain 2026-04-02 03:15:26 +01:00
wallet_rpc.go feat(daemon): add wallet RPC proxy — unified endpoint 2026-04-02 02:01:20 +01:00