lnd.xprv/sweep
Olaoluwa Osuntokun 4ad175c16d
sweep: update getInputWitnessSizeUpperBound to be aware of nested p2sh
In this commit, we update the `getInputWitnessSizeUpperBound` and all
its callers to be aware of nested p2sh witness inputs. We do so by
adding another bool which is true if the output is a nested p2sh output.
If so, then in order to properly estimate the total weight, the caller
needs to factor in the non-witness data of the additional sigScript data
push.
2019-01-09 15:55:22 -08: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 sweep: add sweeper test 2018-12-18 10:50:19 +01:00
input.go lnwallet+sweep: extend the WitnessGenerator type to return an InputScript 2019-01-09 15:55:19 -08: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: update getInputWitnessSizeUpperBound to be aware of nested p2sh 2019-01-09 15:55:22 -08:00
sweeper.go sweep+cnct+nursery+rpc: extract DetermineFeePerKw to func, add FeePreference 2019-01-09 15:55:17 -08:00
test_utils.go utxonursery: use mocked sweeper in tests 2018-12-19 14:14:53 +01:00
txgenerator.go sweep: update getInputWitnessSizeUpperBound to be aware of nested p2sh 2019-01-09 15:55:22 -08:00
walletsweep.go sweep+cnct+nursery+rpc: extract DetermineFeePerKw to func, add FeePreference 2019-01-09 15:55:17 -08:00