File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1108,18 +1108,17 @@ bool CTxLockVote::CheckSignature() const
1108
1108
{
1109
1109
std::string strError;
1110
1110
1111
- masternode_info_t infoMn;
1112
-
1113
- if (!mnodeman.GetMasternodeInfo (outpointMasternode, infoMn)) {
1114
- LogPrintf (" CTxLockVote::CheckSignature -- Unknown Masternode: masternode=%s\n " , outpointMasternode.ToString ());
1111
+ auto dmn = deterministicMNManager->GetListAtChainTip ().GetValidMN (masternodeProTxHash);
1112
+ if (!dmn) {
1113
+ LogPrintf (" CTxLockVote::CheckSignature -- Unknown Masternode: masternode=%s\n " , masternodeProTxHash.ToString ());
1115
1114
return false ;
1116
1115
}
1117
1116
1118
1117
uint256 hash = GetSignatureHash ();
1119
1118
1120
1119
CBLSSignature sig;
1121
1120
sig.SetBuf (vchMasternodeSignature);
1122
- if (!sig.IsValid () || !sig.VerifyInsecure (infoMn. blsPubKeyOperator , hash)) {
1121
+ if (!sig.IsValid () || !sig.VerifyInsecure (dmn-> pdmnState -> pubKeyOperator , hash)) {
1123
1122
LogPrintf (" CTxLockVote::CheckSignature -- VerifyInsecure() failed\n " );
1124
1123
return false ;
1125
1124
}
You can’t perform that action at this time.
0 commit comments