mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
6ec2826f6c
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. |
||
---|---|---|
.. | ||
backend_mock_test.go | ||
bucket_list.go | ||
defaults_rpctest.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 |