682aebdd53
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. |
||
---|---|---|
.. | ||
backend_mock_test.go | ||
defaults_rpctest.go | ||
defaults.go | ||
fee_estimator_mock_test.go | ||
log.go | ||
store_mock.go | ||
store_test.go | ||
store.go | ||
sweeper_test.go | ||
sweeper.go | ||
test_utils.go | ||
txgenerator.go | ||
walletsweep_test.go | ||
walletsweep.go |