Self-audit found TOCTOU between Height() and TopBlock() — sync could advance between calls giving inconsistent getinfo data. Snapshot() reads both in sequence from the same chain state. Also: added chain.go Snapshot method. Co-Authored-By: Charon <charon@lethean.io> |
||
|---|---|---|
| .. | ||
| server.go | ||
| server_integration_test.go | ||
| server_test.go | ||
| wallet_rpc.go | ||