upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/rpc.cpp
diff options
context:
space:
mode:
authorbitflash-maintainer <noreply@bitflash.invalid>2026-09-03 18:31:32 +0000
committerbitflash-maintainer <noreply@bitflash.invalid>2026-09-03 18:31:32 +0000
commitb441687b5344454bea16384fe1280e470964faaa (patch)
tree6b73d97bf4433ffb4896997c11a0d30d996a0e80 /src/rpc.cpp
parent437d23184e6edd2d1777ef25e5a5a091adbca551 (diff)
payout: move the last two burst-capable money lines to LogPrintAlways
Integration review found two more payout lines still on plain LogPrint, both fired per record inside the batch loop in PayoutThreadFn -- the same one-window burst shape as the four already converted. The "writing off" line in ForfeitPayoutRecipient and the "SKIPPED bad address" line at the write-off in PayoutThreadFn both report obligations being destroyed, which is the class of line one summary must never stand in for (issue #3). Message text is unchanged.
Diffstat (limited to 'src/rpc.cpp')
-rw-r--r--src/rpc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc.cpp b/src/rpc.cpp
index 2e8f4b8..6531fe8 100644
--- a/src/rpc.cpp
+++ b/src/rpc.cpp
@@ -1933,7 +1933,7 @@ static void RecordPayoutTxid(const PayingRecord& r, const std::string& txid)
1933// disagreeing. 1933// disagreeing.
1934static void ForfeitPayoutRecipient(const PayingRecord& r, const std::string& reason) 1934static void ForfeitPayoutRecipient(const PayingRecord& r, const std::string& reason)
1935{ 1935{
1936 LogPrint("payout", "[payout] writing off %s owed to %s for block %d: %s\n", 1936 LogPrintAlways("payout", "[payout] writing off %s owed to %s for block %d: %s\n",
1937 FormatMoney(r.amount).c_str(), r.address.c_str(), r.blockHeight, 1937 FormatMoney(r.amount).c_str(), r.address.c_str(), r.blockHeight,
1938 reason.c_str()); 1938 reason.c_str());
1939 VersionedBlob blob; 1939 VersionedBlob blob;
@@ -2082,7 +2082,7 @@ static void PayoutThreadFn(void*)
2082 const std::string reason = 2082 const std::string reason =
2083 strprintf("'%s' is not a valid address, so no transaction" 2083 strprintf("'%s' is not a valid address, so no transaction"
2084 " can pay it", r.address.c_str()); 2084 " can pay it", r.address.c_str());
2085 LogPrint("payout", "[payout] SKIPPED bad address '%s' --" 2085 LogPrintAlways("payout", "[payout] SKIPPED bad address '%s' --"
2086 " %s owed for block %d cannot be paid\n", 2086 " %s owed for block %d cannot be paid\n",
2087 r.address.c_str(), FormatMoney(r.amount).c_str(), 2087 r.address.c_str(), FormatMoney(r.amount).c_str(),
2088 r.blockHeight); 2088 r.blockHeight);