diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2023-09-29 09:42:04 -0300 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2024-01-04 16:21:36 +0000 |
commit | 05d0576d3c03ae3797c91ac51bff4e2a18d6a993 (patch) | |
tree | 5e80bb9e1a18f5b5e70e695715c35030038ff085 /src/wallet | |
parent | 5493ebbe7428f95e41d5c7a64aea9e7f33190579 (diff) |
wallet: create tx, log resulting coin selection info
Useful for understanding what is going on internally
when the software is running. Debug issues, and provide
more accurate feedback to users.
Github-Pull: #28994
Rebased-From: 0c5755761c3e544547899ad096121585dffa73df
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/spend.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/spend.cpp b/src/wallet/spend.cpp index 7cf1c34454..e473c5a093 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -1263,6 +1263,7 @@ static util::Result<CreatedTransactionResult> CreateTransactionInternal( // accidental re-use. reservedest.KeepDestination(); + wallet.WalletLogPrintf("Coin Selection: Algorithm:%s, Waste Metric Score:%d\n", GetAlgorithmName(result.GetAlgo()), result.GetWaste()); wallet.WalletLogPrintf("Fee Calculation: Fee:%d Bytes:%u Tgt:%d (requested %d) Reason:\"%s\" Decay %.5f: Estimation: (%g - %g) %.2f%% %.1f/(%.1f %d mem %.1f out) Fail: (%g - %g) %.2f%% %.1f/(%.1f %d mem %.1f out)\n", current_fee, nBytes, feeCalc.returnedTarget, feeCalc.desiredTarget, StringForFeeReason(feeCalc.reason), feeCalc.est.decay, feeCalc.est.pass.start, feeCalc.est.pass.end, |