mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-30 02:31:05 +02:00
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.
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user