lnd/sweep
eugene 6ec2826f6c
sweep: account for all script types in craftSweepTx
With this change, transactions created via craftSweepTx will be
standard. Previously, p2wsh/p2pkh scripts passed in via SendCoins would
be weighted as p2wpkh scripts. With a feerate of 1 sat/vbyte,
transactions returned would be non-standard. Luckily, the critical
sweeper subsystem only used p2wpkh scripts so this only affected
callers from the rpcserver.

Also added is an integration test that fails if SendCoins manages
to generate a non-standard transaction. All script types are now
accounted for in getWeightEstimate, which now errors if an unknown
script type is passed in.
2022-08-08 15:33:00 -04:00
..
backend_mock_test.go sweep: remove all unconfirmed descendant transactions when a sweep conflicts 2022-03-17 16:36:47 -07:00
bucket_list.go
defaults_rpctest.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
defaults.go multi: add golang 1.17 compatible build tags 2021-09-29 17:31:37 -07:00
fee_estimator_mock_test.go
interface.go sweep: remove all unconfirmed descendant transactions when a sweep conflicts 2022-03-17 16:36:47 -07:00
log.go
setup_test.go channeldb/test: test with postgres 2021-10-29 10:54:44 +02:00
store_mock.go
store_test.go multi: move many t.Fatalf calls to require.NoError 2022-06-17 04:26:55 +00:00
store.go kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00
sweeper_test.go sweep: account for all script types in craftSweepTx 2022-08-08 15:33:00 -04:00
sweeper.go sweep: remove all unconfirmed descendant transactions when a sweep conflicts 2022-03-17 16:36:47 -07:00
test_utils.go multi: formatting and comment fixes 2022-02-10 11:02:02 +01:00
tx_input_set_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
tx_input_set.go sweep: allow sweeper to sweep P2TR inputs 2022-06-10 22:03:41 +02:00
txgenerator_test.go sweep: account for all script types in craftSweepTx 2022-08-08 15:33:00 -04:00
txgenerator.go sweep: account for all script types in craftSweepTx 2022-08-08 15:33:00 -04:00
walletsweep_test.go multi: move many t.Fatalf calls to require.NoError 2022-06-17 04:26:55 +00:00
walletsweep.go multi: add p2tr keyspend wallet support 2022-03-24 18:02:38 +01:00
weight_estimator_test.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
weight_estimator.go sweep: account for all script types in craftSweepTx 2022-08-08 15:33:00 -04:00