Skip to content

Commit eedb158

Browse files
committed
Remove use of mnodeman.GetMasternodeInfo from IX code
1 parent fb13b00 commit eedb158

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/instantx.cpp

+4-5
Original file line numberDiff line numberDiff line change
@@ -1108,18 +1108,17 @@ bool CTxLockVote::CheckSignature() const
11081108
{
11091109
std::string strError;
11101110

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());
11151114
return false;
11161115
}
11171116

11181117
uint256 hash = GetSignatureHash();
11191118

11201119
CBLSSignature sig;
11211120
sig.SetBuf(vchMasternodeSignature);
1122-
if (!sig.IsValid() || !sig.VerifyInsecure(infoMn.blsPubKeyOperator, hash)) {
1121+
if (!sig.IsValid() || !sig.VerifyInsecure(dmn->pdmnState->pubKeyOperator, hash)) {
11231122
LogPrintf("CTxLockVote::CheckSignature -- VerifyInsecure() failed\n");
11241123
return false;
11251124
}

0 commit comments

Comments
 (0)