aboutsummaryrefslogtreecommitdiff
path: root/test/functional/data
diff options
context:
space:
mode:
authorfurszy <matiasfurszyfer@protonmail.com>2023-07-11 11:26:22 -0300
committerfurszy <matiasfurszyfer@protonmail.com>2023-07-20 11:04:52 -0300
commitcc781a21800a6ce13875feefd0cb14ab0a84524c (patch)
tree7c05a9f6a2598ab30345f30ba28401f7d4f0caac /test/functional/data
parent286e0c7d5e9538198b28b792c5168b8fafa1534f (diff)
downloadbitcoin-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.json2
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",