mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
fuzz: Move CTxDestination fuzzing to script fuzz target
No need to split it over several targets
This commit is contained in:
@@ -4,9 +4,6 @@
|
||||
|
||||
#include <chainparams.h>
|
||||
#include <key_io.h>
|
||||
#include <rpc/util.h>
|
||||
#include <script/signingprovider.h>
|
||||
#include <script/standard.h>
|
||||
#include <test/fuzz/fuzz.h>
|
||||
|
||||
#include <cassert>
|
||||
@@ -39,12 +36,4 @@ FUZZ_TARGET_INIT(key_io, initialize_key_io)
|
||||
if (ext_pub_key.pubkey.size() == CPubKey::COMPRESSED_SIZE) {
|
||||
assert(ext_pub_key == DecodeExtPubKey(EncodeExtPubKey(ext_pub_key)));
|
||||
}
|
||||
|
||||
const CTxDestination tx_destination = DecodeDestination(random_string);
|
||||
(void)DescribeAddress(tx_destination);
|
||||
(void)GetKeyForDestination(/* store */ {}, tx_destination);
|
||||
(void)GetScriptForDestination(tx_destination);
|
||||
(void)IsValidDestination(tx_destination);
|
||||
|
||||
(void)IsValidDestinationString(random_string);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user