Inspect a Bitcoin node's P2P upload budget
When a node stops serving historical blocks to peers, check its upload accounting before blaming the block database or changing the retention policy.
Read the current accounting cycle
Query the node's traffic totals and the nested upload target. target, bytes_left_in_cycle and the traffic counters are measured in bytes. The remaining cycle time is in seconds.
bitcoin-cli getnettotals | jq '{totalbytessent, uploadtarget}'
Explain an apparent service change
Read serve_historical_blocks directly alongside target_reached. The historical-service flag describes the upload policy at this moment. A false flag does not establish that old block files were deleted. For rate monitoring, compare two totalbytessent observations over elapsed time and start a new series if the process restarts.