mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
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.
This commit is contained in:
@@ -76,11 +76,13 @@ FUZZ_TARGET(script, .init = initialize_script)
|
||||
assert(which_type == TxoutType::PUBKEY ||
|
||||
which_type == TxoutType::NONSTANDARD ||
|
||||
which_type == TxoutType::NULL_DATA ||
|
||||
which_type == TxoutType::MULTISIG);
|
||||
which_type == TxoutType::MULTISIG ||
|
||||
which_type == TxoutType::ANCHOR);
|
||||
}
|
||||
if (which_type == TxoutType::NONSTANDARD ||
|
||||
which_type == TxoutType::NULL_DATA ||
|
||||
which_type == TxoutType::MULTISIG) {
|
||||
which_type == TxoutType::MULTISIG ||
|
||||
which_type == TxoutType::ANCHOR) {
|
||||
assert(!extract_destination_ret);
|
||||
}
|
||||
|
||||
@@ -94,6 +96,7 @@ FUZZ_TARGET(script, .init = initialize_script)
|
||||
(void)Solver(script, solutions);
|
||||
|
||||
(void)script.HasValidOps();
|
||||
(void)script.IsPayToAnchor();
|
||||
(void)script.IsPayToScriptHash();
|
||||
(void)script.IsPayToWitnessScriptHash();
|
||||
(void)script.IsPushOnly();
|
||||
|
||||
Reference in New Issue
Block a user