sweep: return fees from method createSweepTx

Which will be used to make the sweeper RBF-aware.
This commit is contained in:
yyforyongyu
2023-10-25 14:13:23 +08:00
parent e86843da6e
commit 1ace1fdf4c
3 changed files with 28 additions and 13 deletions

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,
)