mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
fixed segfault
This commit is contained in:
parent
f811957208
commit
efe22ea1ae
@ -115,7 +115,6 @@ void ProcessMessageInstantX(CNode* pfrom, std::string& strCommand, CDataStream&
|
||||
if (AcceptToMemoryPool(mempool, state, tx, true, &fMissingInputs))
|
||||
{
|
||||
LogPrintf("ProcessMessageInstantX::txlreq - Transaction Lock Request : accepted (resolved) %s\n",
|
||||
pfrom->addr.ToString().c_str(), pfrom->cleanSubVer.c_str(),
|
||||
tx.GetHash().ToString().c_str()
|
||||
);
|
||||
} else {
|
||||
@ -157,7 +156,7 @@ void ProcessMessageInstantX(CNode* pfrom, std::string& strCommand, CDataStream&
|
||||
|
||||
if(mapUnknownVotes[ctx.vinMasternode.prevout.hash] > GetTime() &&
|
||||
mapUnknownVotes[ctx.vinMasternode.prevout.hash] - GetAverageVoteTime() > 60*10){
|
||||
LogPrintf("ProcessMessageInstantX::txlreq - masternode is spamming transaction votes: %s %s : rejected %s\n",
|
||||
LogPrintf("ProcessMessageInstantX::txlreq - masternode is spamming transaction votes: %s %s\n",
|
||||
ctx.vinMasternode.ToString().c_str(),
|
||||
ctx.txHash.ToString().c_str()
|
||||
);
|
||||
|
@ -720,9 +720,6 @@ bool CMasternodePayments::ProcessBlock(int nBlockHeight)
|
||||
if(!enabled) return false;
|
||||
CMasternodePaymentWinner winner;
|
||||
|
||||
uint256 blockHash = 0;
|
||||
if(!darkSendPool.GetBlockHash(blockHash, nBlockHeight-576)) return false;
|
||||
|
||||
std::vector<CTxIn> vecLastPayments;
|
||||
int c = 0;
|
||||
BOOST_REVERSE_FOREACH(CMasternodePaymentWinner& winner, vWinning){
|
||||
|
Loading…
Reference in New Issue
Block a user