mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
req version, payment signatures
This commit is contained in:
parent
748121a890
commit
dda5768026
@ -1323,7 +1323,7 @@ bool CMasternodePayments::AddWinningMasternode(CMasternodePaymentWinner& winnerI
|
||||
|
||||
void CMasternodePayments::CleanPaymentList()
|
||||
{
|
||||
if(pindexBest == NULL);
|
||||
if(pindexBest == NULL) return;
|
||||
|
||||
vector<CMasternodePaymentWinner>::iterator it;
|
||||
for(it=vWinning.begin();it<vWinning.end();it++){
|
||||
@ -1389,7 +1389,7 @@ void CMasternodePayments::Relay(CMasternodePaymentWinner& winner)
|
||||
|
||||
void CMasternodePayments::Sync(CNode* node)
|
||||
{
|
||||
BOOST_FOREACH(CMasternodePaymentWinner winner, vWinning)
|
||||
BOOST_FOREACH(CMasternodePaymentWinner& winner, vWinning)
|
||||
if(winner.nBlockHeight >= pindexBest->nHeight-10 && winner.nBlockHeight <= pindexBest->nHeight + 20)
|
||||
node->PushMessage("mnw", winner);
|
||||
}
|
||||
|
@ -4222,7 +4222,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
|
||||
|
||||
if(!masternodePayments.CheckSignature(winner)){
|
||||
LogPrintf("mnw - invalid signature\n");
|
||||
pfrom->Misbehaving(100);
|
||||
//pfrom->Misbehaving(100);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -184,7 +184,7 @@ Value masternode(const Array& params, bool fHelp)
|
||||
darkSendPool.RegisterAsMasterNode(false);
|
||||
pwalletMain->Lock();
|
||||
|
||||
if(darkSendPool.isCapableMasterNode == MASTERNODE_INPUT_TOO_NEW) return "masternode input must have at least 200 confirmations";
|
||||
if(darkSendPool.isCapableMasterNode == MASTERNODE_INPUT_TOO_NEW) return "masternode input must have at least 15 confirmations";
|
||||
if(darkSendPool.isCapableMasterNode == MASTERNODE_STOPPED) return "masternode is stopped";
|
||||
if(darkSendPool.isCapableMasterNode == MASTERNODE_IS_CAPABLE) return "successfully started masternode";
|
||||
if(darkSendPool.masternodePortOpen == MASTERNODE_PORT_NOT_OPEN) return "inbound port is not open. Please open it and try again. (19999 for testnet and 9999 for mainnet)";
|
||||
@ -196,7 +196,7 @@ Value masternode(const Array& params, bool fHelp)
|
||||
|
||||
if (strCommand == "debug")
|
||||
{
|
||||
if(darkSendPool.isCapableMasterNode == MASTERNODE_INPUT_TOO_NEW) return "masternode input must have at least 200 confirmations";
|
||||
if(darkSendPool.isCapableMasterNode == MASTERNODE_INPUT_TOO_NEW) return "masternode input must have at least 15 confirmations";
|
||||
if(darkSendPool.isCapableMasterNode == MASTERNODE_IS_CAPABLE) return "successfully started masternode";
|
||||
if(darkSendPool.isCapableMasterNode == MASTERNODE_STOPPED) return "masternode is stopped";
|
||||
if(darkSendPool.masternodePortOpen == MASTERNODE_PORT_NOT_OPEN) return "inbound port is not open. Please open it and try again. (19999 for testnet and 9999 for mainnet)";
|
||||
|
@ -31,7 +31,7 @@ static const int PROTOCOL_VERSION = 70041;
|
||||
static const int INIT_PROTO_VERSION = 209;
|
||||
|
||||
// disconnect from peers older than this proto version
|
||||
static const int MIN_PEER_PROTO_VERSION = 70039;
|
||||
static const int MIN_PEER_PROTO_VERSION = 70041;
|
||||
|
||||
// nTime field added to CAddress, starting with this version;
|
||||
// if possible, avoid requesting addresses nodes older than this
|
||||
|
Loading…
Reference in New Issue
Block a user