mirror of
https://github.com/dashpay/dash.git
synced 2024-12-30 14:25:53 +01:00
masternode sync fix
This commit is contained in:
parent
9dd3930721
commit
b5f1a03a63
@ -9,7 +9,7 @@
|
|||||||
#define CLIENT_VERSION_MAJOR 0
|
#define CLIENT_VERSION_MAJOR 0
|
||||||
#define CLIENT_VERSION_MINOR 9
|
#define CLIENT_VERSION_MINOR 9
|
||||||
#define CLIENT_VERSION_REVISION 4
|
#define CLIENT_VERSION_REVISION 4
|
||||||
#define CLIENT_VERSION_BUILD 4
|
#define CLIENT_VERSION_BUILD 5
|
||||||
|
|
||||||
// Set to true for release, false for prerelease or test build
|
// Set to true for release, false for prerelease or test build
|
||||||
#define CLIENT_VERSION_IS_RELEASE true
|
#define CLIENT_VERSION_IS_RELEASE true
|
||||||
|
@ -51,7 +51,7 @@ bool fImporting = false;
|
|||||||
bool fReindex = false;
|
bool fReindex = false;
|
||||||
bool fBenchmark = false;
|
bool fBenchmark = false;
|
||||||
bool fTxIndex = false;
|
bool fTxIndex = false;
|
||||||
bool fRequestedMasterNodeList = false;
|
int RequestedMasterNodeList = 0;
|
||||||
unsigned int nCoinCacheSize = 5000;
|
unsigned int nCoinCacheSize = 5000;
|
||||||
|
|
||||||
// create DarkSend pools
|
// create DarkSend pools
|
||||||
@ -3889,11 +3889,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
|
|||||||
|
|
||||||
|
|
||||||
if (pfrom->nVersion >= darkSendPool.MIN_PEER_PROTO_VERSION) {
|
if (pfrom->nVersion >= darkSendPool.MIN_PEER_PROTO_VERSION) {
|
||||||
if(!fRequestedMasterNodeList) {
|
if(RequestedMasterNodeList <= 5) {
|
||||||
bool fIsInitialDownload = IsInitialBlockDownload();
|
bool fIsInitialDownload = IsInitialBlockDownload();
|
||||||
if(!fIsInitialDownload) {
|
if(!fIsInitialDownload) {
|
||||||
pfrom->PushMessage("dseg");
|
pfrom->PushMessage("dseg");
|
||||||
fRequestedMasterNodeList = true;
|
RequestedMasterNodeList++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4050,8 +4050,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
|
|||||||
mn.UpdateLastSeen();
|
mn.UpdateLastSeen();
|
||||||
darkSendMasterNodes.push_back(mn);
|
darkSendMasterNodes.push_back(mn);
|
||||||
|
|
||||||
fRequestedMasterNodeList = true;
|
|
||||||
|
|
||||||
if(count == -1)
|
if(count == -1)
|
||||||
RelayDarkSendElectionEntry(vin, addr, vchSig, sigTime, pubkey, pubkey2, count, current);
|
RelayDarkSendElectionEntry(vin, addr, vchSig, sigTime, pubkey, pubkey2, count, current);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user