diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2023-09-29 09:42:04 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2023-12-07 21:47:20 -0300 |
commit | 0c5755761c3e544547899ad096121585dffa73df (patch) | |
tree | facf7e71e635033f0bd0afe9c8465e1ae566d9cf /src/wallet | |
parent | 5cea25ba795d6eb9ccc721d01560783ae576af34 (diff) | |
download | bitcoin-0c5755761c3e544547899ad096121585dffa73df.tar.xz |
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.
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 219ad0be0f..ece5a5c5b7 100644 --- a/src/wallet/spend.cpp +++ b/src/wallet/spend.cpp @@ -1263,6 +1263,7 @@ static util::Result<CreatedTransactionResult> CreateTransactionInternal( // accidental reuse. 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, |