Skip to content

Commit

Permalink
Merge pull request #151 from commerceblock/mswhitelist
Browse files Browse the repository at this point in the history
Minor change to safety checks for comparing multisig tweaked id's
  • Loading branch information
Nikos Kostoulas authored Jun 25, 2019
2 parents 65fb702 + 4997f5c commit 3d71b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1858,7 +1858,7 @@ bool CheckValidTweakedAddress(const CTxDestination keyID, const std::vector<CPub
if (multiKeyId.which() == ((CTxDestination)CNoDestination()).which())
return false;

if (!(multiKeyId == destCopy))
if (!(boost::get<CScriptID>(multiKeyId) == boost::get<CScriptID>(destCopy)))
return false;

return true;
Expand Down

0 comments on commit 3d71b5f

Please sign in to comment.