From 455fca86cfada1823aa28615b5683f9dc73dbb9a Mon Sep 17 00:00:00 2001 From: Greg Sanders Date: Wed, 8 Nov 2023 14:07:49 -0500 Subject: policy: Add OP_1 <0x4e73> as a standard output type These outputs are called anchors, and allow key-less anchor spends which are vsize-minimized versus keyed anchors which require larger outputs when creating and inputs when spending. --- src/rpc/rawtransaction.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rpc/rawtransaction.cpp') diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index ed9ef2c159..adb3fd0cd2 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -557,6 +557,7 @@ static RPCHelpMan decodescript() case TxoutType::SCRIPTHASH: case TxoutType::WITNESS_UNKNOWN: case TxoutType::WITNESS_V1_TAPROOT: + case TxoutType::ANCHOR: // Should not be wrapped return false; } // no default case, so the compiler can warn about missing cases @@ -599,6 +600,7 @@ static RPCHelpMan decodescript() case TxoutType::WITNESS_V0_KEYHASH: case TxoutType::WITNESS_V0_SCRIPTHASH: case TxoutType::WITNESS_V1_TAPROOT: + case TxoutType::ANCHOR: // Should not be wrapped return false; } // no default case, so the compiler can warn about missing cases -- cgit v1.2.3