Skip to content

Commit ffac2a7

Browse files
random-zebraFuzzbawls
authored andcommitted
[BUG][RPC] fix signature check (against old format) in mnbudgetrawvote
Github-Pull: #1206 Rebased-From: ae063d0
1 parent e82e2f5 commit ffac2a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rpc/budget.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,9 @@ UniValue mnbudgetrawvote(const UniValue& params, bool fHelp)
733733
vote.SetVchSig(vchSig);
734734

735735
if (!vote.CheckSignature(true)) {
736-
return "Failure to verify signature.";
736+
// try old message version
737+
vote.nMessVersion = MessageVersion::MESS_VER_STRMESS;
738+
if (!vote.CheckSignature(true)) return "Failure to verify signature.";
737739
}
738740

739741
std::string strError = "";

0 commit comments

Comments
 (0)