diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2023-07-11 11:26:22 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2023-07-20 11:04:52 -0300 |
commit | cc781a21800a6ce13875feefd0cb14ab0a84524c (patch) | |
tree | 7c05a9f6a2598ab30345f30ba28401f7d4f0caac /test/functional/data | |
parent | 286e0c7d5e9538198b28b792c5168b8fafa1534f (diff) | |
download | bitcoin-cc781a21800a6ce13875feefd0cb14ab0a84524c.tar.xz |
descriptor: InferScript, do not return top-level only func as sub descriptor
e.g. sh(addr(ADDR)) or sh(raw(HEX)) are invalid descriptors.
Making sh and wsh top level functions to return addr/raw descriptors when
the subscript inference fails.
Diffstat (limited to 'test/functional/data')
-rw-r--r-- | test/functional/data/rpc_decodescript.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/data/rpc_decodescript.json b/test/functional/data/rpc_decodescript.json index 5f3e725d4c..4a15ae8792 100644 --- a/test/functional/data/rpc_decodescript.json +++ b/test/functional/data/rpc_decodescript.json @@ -69,7 +69,7 @@ "p2sh": "2N34iiGoUUkVSPiaaTFpJjB1FR9TXQu3PGM", "segwit": { "asm": "0 96c2368fc30514a438a8bd909f93c49a1549d77198ccbdb792043b666cb24f42", - "desc": "wsh(raw(02eeee))#gtay4y0z", + "desc": "addr(bcrt1qjmprdr7rq522gw9ghkgfly7yng25n4m3nrxtmdujqsakvm9jfapqk795l5)#5akkdska", "hex": "002096c2368fc30514a438a8bd909f93c49a1549d77198ccbdb792043b666cb24f42", "address": "bcrt1qjmprdr7rq522gw9ghkgfly7yng25n4m3nrxtmdujqsakvm9jfapqk795l5", "type": "witness_v0_scripthash", |