mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-18 11:37:40 +02:00
Merge #14454: Add SegWit support to importmulti
c11875c590Add segwit address tests for importmulti (MeshCollider)201451b1caMake getaddressinfo return solvability (MeshCollider)1753d217eaAdd release notes for importmulti segwit change (MeshCollider)353c064596Fix typo in test_framework/blocktools (MeshCollider)f6ed748cf0Add SegWit support to importmulti with some ProcessImport cleanup (MeshCollider) Pull request description: Add support for segwit to importmulti, supports P2WSH, P2WPKH, P2SH-P2WPKH, P2SH-P2WSH. Adds a new `witnessscript` parameter which must be used for the witness scripts in the relevant situations. Also includes some tests for the various import types. ~Also makes the change in #14019 redundant, but cherry-picks the test from that PR to test the behavior (@achow101).~ Fixes #12253, also addresses the second point in #12703, and fixes #14407 Tree-SHA512: 775a755c524d1c387a99acddd772f677d2073876b72403dcfb92c59f9b405ae13ceedcf4dbd2ee1d7a8db91c494f67ca137161032ee3a2071282eeb411be090a
This commit is contained in:
@@ -169,7 +169,7 @@ def get_legacy_sigopcount_tx(tx, accurate=True):
|
||||
return count
|
||||
|
||||
def witness_script(use_p2wsh, pubkey):
|
||||
"""Create a scriptPubKey for a pay-to-wtiness TxOut.
|
||||
"""Create a scriptPubKey for a pay-to-witness TxOut.
|
||||
|
||||
This is either a P2WPKH output for the given pubkey, or a P2WSH output of a
|
||||
1-of-1 multisig for the given pubkey. Returns the hex encoding of the
|
||||
|
||||
Reference in New Issue
Block a user