You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dash-spv: idle and per-tick log lines drown the useful output #1331
All paths are under dash-spv/src/ at c15bdbfc7 (dev).
A 23 minute testnet run at 2d28ac4d5 (a full filter rescan, then 22 minutes idle at the tip) produced 81k log lines at debug. Most of it carries no information:
peer_speed (network/manager.rs:661-699) prints one line per peer plus a bandwidth: summary every 500 ms, unconditionally. That is 480 lines a minute, 10,986 in the run, and over 90% of all output once synced, every line reading in_flight=0 KB rate=0.00 MB/s. It should only print when something changed (bytes moved, in-flight or cap changed), or move to trace.
SyncProgress from client/event_handler.rs is a 10 line dump logged at info on every progress update, about 24 per second during sync (1,550 dumps, about 15k lines in 64 s). Rate limiting it, or logging only on a state change, would keep it useful.
Each extra dial the supervisor drops logs two info lines, NETWORK: peer X disconnected (network/peer.rs) and peer disconnected: X | 3 peers remaining | 0 request(s) re-queued (network/manager.rs), for a peer that never joined the set. In the log it reads like churn. Dropping an extra dial should be one debug line.
Each network event is logged 9 times: once by event_handler at info and once by each of the 8 managers at debug (... received network event). A peer change sends both PeerConnected and PeersUpdated, so 18 lines.
Declared 1 wanted CFHeaders batch(es) to the broker repeats every 100 ms until the reply arrives, though only one request is sent.
Two progress values are also wrong in the same run:
Segment 0: 1 headers ready to store from height 1579670 while the tip was 1,585,910: the segment start is printed instead of the batch start.
Headers: WaitingForConnections 1579669/1579661: the restored target height is below the stored tip.
Activity