diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-03-11 12:05:52 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2020-03-11 12:51:26 +0000 |
commit | 47a263108b05c7039baba5618656898312a7a5ef (patch) | |
tree | cf8ef32dbee887ad8ea7cd7104bc492f7b8a7ec1 | |
parent | d3d4892ef45d09edbbe4672b112100743970b2a5 (diff) |
tests: Fuzz DecodeBase64PSBT(...)
-rw-r--r-- | src/test/fuzz/base_encode_decode.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/fuzz/base_encode_decode.cpp b/src/test/fuzz/base_encode_decode.cpp index cb0fbdf76f..adad6b3f96 100644 --- a/src/test/fuzz/base_encode_decode.cpp +++ b/src/test/fuzz/base_encode_decode.cpp @@ -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); } |