|
|
|
@ -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
|
|
|
|
|