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
Github-Pull: #1206
Rebased-From: ae063d0
  • Loading branch information
random-zebra authored and Fuzzbawls committed Jan 11, 2020
1 parent e82e2f5 commit ffac2a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rpc/budget.cpp
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 ffac2a7

Please sign in to comment.