diff options
author | Andrew Chow <github@achow101.com> | 2023-09-05 12:03:46 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2023-09-12 12:14:31 -0400 |
commit | 8dd067088d41f021b357d7db5fa5f0a9f61edddc (patch) | |
tree | 6b2adb2b5c2e5cae92f032d910e7294d55d716a4 /src/test/fuzz/key.cpp | |
parent | 238d29aff9b43234e340a9cf17742b2be5d1e97d (diff) |
Make WitnessUnknown members private
Make sure that nothing else can change WitnessUnknown's data members by
making them private. Also change the program to use a vector rather than
C-style array.
Diffstat (limited to 'src/test/fuzz/key.cpp')
-rw-r--r-- | src/test/fuzz/key.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/key.cpp b/src/test/fuzz/key.cpp index 60f4081432..be45443172 100644 --- a/src/test/fuzz/key.cpp +++ b/src/test/fuzz/key.cpp @@ -186,7 +186,7 @@ FUZZ_TARGET(key, .init = initialize_key) const CTxDestination tx_destination = GetDestinationForKey(pubkey, output_type); assert(output_type == OutputType::LEGACY); assert(IsValidDestination(tx_destination)); - assert(CTxDestination{PKHash{pubkey}} == tx_destination); + assert(PKHash{pubkey} == *std::get_if<PKHash>(&tx_destination)); const CScript script_for_destination = GetScriptForDestination(tx_destination); assert(script_for_destination.size() == 25); |