diff options
author | MacroFake <falke.marco@gmail.com> | 2022-07-21 18:36:20 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-08-02 15:28:30 +0200 |
commit | fad0b4fab849eb5f1f0aa54ebc290f85a473ec91 (patch) | |
tree | 26fb06e68fce525fca1bab4a855ae22453b35271 /src/test/fuzz | |
parent | fa2a6b8516b24d7e9ca11926a49cf2b07f661e81 (diff) | |
download | bitcoin-fad0b4fab849eb5f1f0aa54ebc290f85a473ec91.tar.xz |
Pass datacarrier setting into IsStandard
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/key.cpp | 4 | ||||
-rw-r--r-- | src/test/fuzz/script.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/fuzz/key.cpp b/src/test/fuzz/key.cpp index bfea9778f4..6d2d2e2bc5 100644 --- a/src/test/fuzz/key.cpp +++ b/src/test/fuzz/key.cpp @@ -157,12 +157,12 @@ FUZZ_TARGET_INIT(key, initialize_key) assert(fillable_signing_provider_pub.HaveKey(pubkey.GetID())); TxoutType which_type_tx_pubkey; - const bool is_standard_tx_pubkey = IsStandard(tx_pubkey_script, which_type_tx_pubkey); + const bool is_standard_tx_pubkey = IsStandard(tx_pubkey_script, std::nullopt, which_type_tx_pubkey); assert(is_standard_tx_pubkey); assert(which_type_tx_pubkey == TxoutType::PUBKEY); TxoutType which_type_tx_multisig; - const bool is_standard_tx_multisig = IsStandard(tx_multisig_script, which_type_tx_multisig); + const bool is_standard_tx_multisig = IsStandard(tx_multisig_script, std::nullopt, which_type_tx_multisig); assert(is_standard_tx_multisig); assert(which_type_tx_multisig == TxoutType::MULTISIG); diff --git a/src/test/fuzz/script.cpp b/src/test/fuzz/script.cpp index fdcd0da37d..69a4b782aa 100644 --- a/src/test/fuzz/script.cpp +++ b/src/test/fuzz/script.cpp @@ -55,7 +55,7 @@ FUZZ_TARGET_INIT(script, initialize_script) } TxoutType which_type; - bool is_standard_ret = IsStandard(script, which_type); + bool is_standard_ret = IsStandard(script, std::nullopt, which_type); if (!is_standard_ret) { assert(which_type == TxoutType::NONSTANDARD || which_type == TxoutType::NULL_DATA || |