diff options
| author | Bitflash <btf01@proton.me> | 2026-07-28 15:25:02 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-28 15:25:02 -0300 |
| commit | e0c00d3e1b3192efde01fba85d0831470a8fb89c (patch) | |
| tree | bbceae6508535f6ab8b4a111bb2702c7754d6026 /src/gui.cpp | |
| parent | 9eb1b6a3633cae6e644ea9f43e34e890c691f937 (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/gui.cpp')
0 files changed, 0 insertions, 0 deletions