mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-30 17:50:44 +02:00
tests: Fuzz DecodeBase64PSBT(...)
This commit is contained in:
parent
d3d4892ef4
commit
47a263108b
@ -5,6 +5,7 @@
|
||||
#include <test/fuzz/fuzz.h>
|
||||
|
||||
#include <base58.h>
|
||||
#include <psbt.h>
|
||||
#include <util/string.h>
|
||||
#include <util/strencodings.h>
|
||||
|
||||
@ -44,4 +45,8 @@ void test_one_input(const std::vector<uint8_t>& buffer)
|
||||
assert(encoded_string == TrimString(encoded_string));
|
||||
assert(ToLower(encoded_string) == ToLower(TrimString(random_encoded_string)));
|
||||
}
|
||||
|
||||
PartiallySignedTransaction psbt;
|
||||
std::string error;
|
||||
(void)DecodeBase64PSBT(psbt, random_encoded_string, error);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user