Skip to content

Commit

Permalink
Solver return false for empty scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed Oct 28, 2020
1 parent 2dc773b commit 89a469f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/script/standard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ static bool MatchMultisig(const CScript& script, unsigned int& required, std::ve
*/
bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, std::vector<std::vector<unsigned char> >& vSolutionsRet)
{
if (scriptPubKey.empty())
return false;

vSolutionsRet.clear();

// Shortcut for pay-to-script-hash, which are more constrained than the other types:
Expand Down

0 comments on commit 89a469f

Please sign in to comment.