lnrpc/walletrpc: use current height as height hint for cpfp
In this commit, we address an issue that would cause us to scan from the genesis block for the spend of an output that we wish to use to raise the fee of a transaction through CPFP. This was due to setting a 0 height hint when constructing the input required by the sweeper and was discovered due to the recently added validation checks at the chain notifier level. We'll now use the current height as the height hint instead as the sweeper will end up creating a new transaction that spends the input.
This commit is contained in:
4 files changed
+31
-1
No files matched your search
@@ -43,4 +43,8 @@ type Config struct {
|
||||
// Sweeper is the central batching engine of lnd. It is responsible for
|
||||
// sweeping inputs in batches back into the wallet.
|
||||
Sweeper *sweep.UtxoSweeper
|
||||
|
||||
// Chain is an interface that the WalletKit will use to determine state
|
||||
// about the backing chain of the wallet.
|
||||
Chain lnwallet.BlockChainIO
|
||||
}
|
||||
Reference in new issue
Block a user