upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/compactblock.cpp
diff options
context:
space:
mode:
authorbitflash-maintainer <noreply@bitflash.invalid>2026-08-23 11:56:31 +0000
committerbitflash-maintainer <noreply@bitflash.invalid>2026-08-23 11:56:31 +0000
commit991853fa55a749d28d6f9e507ce72b289df92785 (patch)
tree97fa0b3fe2d4140392653a05398ae620eac1b881 /src/compactblock.cpp
parent111fb886c2a38c8ab76fd064c9dbb1f403fde7c1 (diff)
payout: qualify the single-writer claim for pool_status.json
The comment justifying the absence of a version guard said RefreshStats "runs only on the event loop". That was true when it was written and is no longer: the payout-ledger self-test drives RefreshStats directly, to check that no payout mutex is held across the write. The conclusion still holds -- the test calls it from one thread at a time with the pool not running, so pool_status.json still has a single writer -- but the reason a reader would check is now stated, along with what would invalidate it. A claim in a comment that has quietly stopped being true is how 33f2e8a came to assert that no thread waits on I/O holding gPayoutLedgerMutex on the commit that made it do so. Property: comment only.
Diffstat (limited to 'src/compactblock.cpp')
0 files changed, 0 insertions, 0 deletions