sweep: return fees from method createSweepTx

Which will be used to make the sweeper RBF-aware.
This commit is contained in:
yyforyongyu committed 2024-04-19 21:33:19 +08:00
1 parent e86843da6e
commit 1ace1fdf4c
3 files changed
+28 -13

No files matched your search

+1 -1
View File
@@ -337,7 +337,7 @@ func CraftSweepAllTx(feeRate, maxFeeRate chainfee.SatPerKWeight,
// Finally, we'll ask the sweeper to craft a sweep transaction which
// respects our fee preference and targets all the UTXOs of the wallet.
sweepTx, err := createSweepTx(
sweepTx, _, err := createSweepTx(
inputsToSweep, txOuts, changePkScript, blockHeight,
feeRate, maxFeeRate, signer,
)