mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
92837621ec
This commit changes how we create the input sets which are used to construct the sweeping transactions. Assume the sweeper has two inputs, one is new and one is retried, we'd end up having two transactions, - tx1: which spends both the new and old inputs. - tx2: which spends the new inputs only. When publishing these txes, depending on which one gets into the mempool first, the other one will be viewed as an RBF for the first one since they both spending the same input(the new input). This is now fixed by only attempt to publish the second tx when there isn't a first tx - when there is a tx1, it means the new inputs are already used in this tx along with retried inputs, hence there's no need to publish tx2 which spends the new inputs only. |
||
---|---|---|
.. | ||
backend_mock_test.go | ||
bucket_list.go | ||
defaults.go | ||
fee_estimator_mock_test.go | ||
interface.go | ||
log.go | ||
setup_test.go | ||
store_mock.go | ||
store_test.go | ||
store.go | ||
sweeper_test.go | ||
sweeper.go | ||
test_utils.go | ||
tx_input_set_test.go | ||
tx_input_set.go | ||
txgenerator_test.go | ||
txgenerator.go | ||
walletsweep_test.go | ||
walletsweep.go | ||
weight_estimator_test.go | ||
weight_estimator.go |