We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 099c695 commit 83f6c0fCopy full SHA for 83f6c0f
test/functional/rpc_decodescript.py
@@ -176,6 +176,14 @@ def decodescript_script_pub_key(self):
176
# a nested segwit script should not be returned in the results.
177
assert 'segwit' not in rpc_result
178
179
+ self.log.info("- P2TR")
180
+ # 1 <x-only pubkey>
181
+ xonly_public_key = '01'*32 # first ever P2TR output on mainnet
182
+ rpc_result = self.nodes[0].decodescript('5120' + xonly_public_key)
183
+ assert_equal('witness_v1_taproot', rpc_result['type'])
184
+ assert_equal('1 ' + xonly_public_key, rpc_result['asm'])
185
+ assert 'segwit' not in rpc_result
186
+
187
def decoderawtransaction_asm_sighashtype(self):
188
"""Test decoding scripts via RPC command "decoderawtransaction".
189
0 commit comments