diff options
| author | practicalswift <[email protected]> | 2020-03-11 12:05:52 +0000 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2020-03-11 12:51:26 +0000 |
| commit | 47a263108b05c7039baba5618656898312a7a5ef (patch) | |
| tree | cf8ef32dbee887ad8ea7cd7104bc492f7b8a7ec1 /src/test/fuzz | |
| parent | tests: Simplify code by removing unwarranted use of unique_ptr:s (diff) | |
| download | discoin-47a263108b05c7039baba5618656898312a7a5ef.tar.xz discoin-47a263108b05c7039baba5618656898312a7a5ef.zip | |
tests: Fuzz DecodeBase64PSBT(...)
Diffstat (limited to 'src/test/fuzz')
| -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 cb0fbdf76..adad6b3f9 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); } |