You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge bitcoin/bitcoin#23486: rpc: Only allow specific types to be P2(W)SH wrapped in decodescript
9999342 rpc: Only allow specific types to be P2(W)SH wrapped in decodescript (MarcoFalke)
Pull request description:
It seems confusing to return a P2SH wrapping address that is eventually either policy- or consensus-unspendable.
ACKs for top commit:
laanwj:
Code review re-ACK 9999342
Tree-SHA512: 3cd530442acee7c295d244995f0f17b2cae7212f1e0970bb5807621f8ff8e4308a3236b385d77087cd493d32ee524813d8edd15e91d937ef9a800094b7bc4946
{RPCResult::Type::STR, "asm", "Script public key"},
553
553
{RPCResult::Type::STR, "type", "The output type (e.g. " + GetAllOutputTypes() + ")"},
554
554
{RPCResult::Type::STR, "address", /* optional */true, "The Bitcoin address (only if a well-defined address exists)"},
555
-
{RPCResult::Type::STR, "p2sh", /* optional */true, "address of P2SH script wrapping this redeem script (not returned if the script is already a P2SH)"},
556
-
{RPCResult::Type::OBJ, "segwit", /* optional */true, "Result of a witness script public key wrapping this redeem script (not returned if the script is a P2SH or witness)",
555
+
{RPCResult::Type::STR, "p2sh", /*optional=*/true,
556
+
"address of P2SH script wrapping this redeem script (not returned for types that should not be wrapped)"},
0 commit comments