mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-06 13:47:56 +02:00
Merge bitcoin/bitcoin#34781: test: Remove fixed TODO in address_to_scriptpubkey
fa0587a306test: Remove fixed TODO in address_to_scriptpubkey (MarcoFalke) Pull request description: After commitd178082996added the bech32 format, the TODO about adding other formats can be removed. ACKs for top commit: sedited: ACKfa0587a306rkrux: crACKfa0587a306musaHaruna: ACK [fa0587a](fa0587a306) Tree-SHA512: 49a8a514bed11e945bd8f9b13b84ae14b4dbc8a7ebb7224b1746776d9dbf68abc3b53d67f1b7fff83bc4360b15324fb96611550f4aca808b16beb03bcbfd0a55
This commit is contained in:
@@ -193,9 +193,7 @@ def address_to_scriptpubkey(address):
|
||||
return keyhash_to_p2pkh_script(payload)
|
||||
elif version == 196: # testnet script hash
|
||||
return scripthash_to_p2sh_script(payload)
|
||||
# TODO: also support other address formats
|
||||
else:
|
||||
assert False
|
||||
raise ValueError(f"Unsupported address type: {address}")
|
||||
|
||||
|
||||
class TestFrameworkScript(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user