lnd.xprv/sweep
Wilmer Paulino 682aebdd53
sweep: broadcast sweep transactions in descending fee rate order
In this commit, we address another issue that arose with the
introduction of the fee rate buckets. We'll use an example to explain
the problem space:

Let's say we have inputs A, B, and C within the same fee rate bucket. If
A's fee rate is bumped to a higher bucket, then it's currently possible
for the lower fee rate bucket to be swept first, which would produce an
invalid RBF transaction since we're removing an input from the original
without providing a higher fee. By the time we get to the higher fee
rate bucket, we broadcast a valid RBF transaction _only_ sweeping input
A, which would evict the transaction sweeping inputs B and C from the
mempool.

To prevent this eviction, we can simply broadcast the higher fee rate
sweep transactions first, to ensure we have valid RBF transactions.
2019-05-24 15:30:39 -07:00
..
backend_mock_test.go sweep: add sweeper test 2018-12-18 10:50:19 +01:00
defaults_rpctest.go sweep: add time-based sweeper 2018-12-18 10:50:17 +01:00
defaults.go sweep: add time-based sweeper 2018-12-18 10:50:17 +01:00
fee_estimator_mock_test.go multi: support arbitrary client fee preferences to UtxoSweeper 2019-05-24 15:30:38 -07:00
log.go multi: modify sweeper.CreateSweepTx to accept conf target, style changes 2018-10-18 18:08:27 -07:00
store_mock.go sweep: add sweeper store 2018-12-18 10:50:16 +01:00
store_test.go sweep: add sweeper store 2018-12-18 10:50:16 +01:00
store.go sweep: add sweeper store 2018-12-18 10:50:16 +01:00
sweeper_test.go sweep: broadcast sweep transactions in descending fee rate order 2019-05-24 15:30:39 -07:00
sweeper.go sweep: broadcast sweep transactions in descending fee rate order 2019-05-24 15:30:39 -07:00
test_utils.go lnwallet: make BlockChainIO.GetUTXO take cancel chan 2019-05-09 14:44:47 +02:00
txgenerator.go multi: move Input interface and related code 2019-01-31 13:25:33 +01:00
walletsweep_test.go sweep: add unit tests for TestDetermineFeePerKw and CraftSweepAllTx 2019-01-09 15:55:28 -08:00
walletsweep.go lnwallet+sweep: add String method to FeePreference 2019-05-24 15:30:36 -07:00