upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/db.cpp
diff options
context:
space:
mode:
authorBitflash <btf01@proton.me>2026-07-28 15:25:02 -0300
committerGitHub <noreply@github.com>2026-07-28 15:25:02 -0300
commite0c00d3e1b3192efde01fba85d0831470a8fb89c (patch)
treebbceae6508535f6ab8b4a111bb2702c7754d6026 /src/db.cpp
parent9eb1b6a3633cae6e644ea9f43e34e890c691f937 (diff)
rpc: the payout comment claims a guarantee the code does not provide (#22)
It reads: Save BEFORE moving to exec queue: if we crash between the save and SendMoney, LoadPendingPayouts re-queues them from the exec-queue section of the file. There is no exec-queue section. SavePendingPayouts serialises gPendingPayouts and nothing else, and a matured payout is erased from it and written out before ever reaching the queue, which lives only in memory. Crash in between and those miners are never paid, with no record they were owed anything. Only the comment changes here. The behaviour needs idempotent payment -- record the txid, look for it in the wallet on restart -- because simply persisting the queue and re-running it would double-pay anyone already sent to, which is the worse failure.
Diffstat (limited to 'src/db.cpp')
0 files changed, 0 insertions, 0 deletions