Skip to content

Commit

Permalink
script: expose CastToBool function
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtowns committed Oct 7, 2024
1 parent 03461ec commit a33bf49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/script/interpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,4 +351,6 @@ size_t CountWitnessSigOps(const CScript& scriptSig, const CScript& scriptPubKey,

int FindAndDelete(CScript& script, const CScript& b);

bool CastToBool(const std::vector<unsigned char>& vch);

#endif // BITCOIN_SCRIPT_INTERPRETER_H
2 changes: 0 additions & 2 deletions src/test/fuzz/script_interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
#include <string>
#include <vector>

bool CastToBool(const std::vector<unsigned char>& vch);

FUZZ_TARGET(script_interpreter)
{
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
Expand Down

0 comments on commit a33bf49

Please sign in to comment.