Skip to content

Commit

Permalink
[BUG][RPC] fix signature check (against old format) in mnbudgetrawvote
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed Dec 18, 2019
1 parent c8ea771 commit ae063d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rpc/budget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,9 @@ UniValue mnbudgetrawvote(const UniValue& params, bool fHelp)
vote.SetVchSig(vchSig);

if (!vote.CheckSignature(true)) {
return "Failure to verify signature.";
// try old message version
vote.nMessVersion = MessageVersion::MESS_VER_STRMESS;
if (!vote.CheckSignature(true)) return "Failure to verify signature.";
}

std::string strError = "";
Expand Down

0 comments on commit ae063d0

Please sign in to comment.