fix propagation of spork messages
This commit is contained in:
parent
23ea75f737
commit
c8c4cc48f2
@ -3,7 +3,7 @@ AC_PREREQ([2.60])
|
||||
define(_CLIENT_VERSION_MAJOR, 0)
|
||||
define(_CLIENT_VERSION_MINOR, 11)
|
||||
define(_CLIENT_VERSION_REVISION, 1)
|
||||
define(_CLIENT_VERSION_BUILD, 20)
|
||||
define(_CLIENT_VERSION_BUILD, 21)
|
||||
define(_CLIENT_VERSION_IS_RELEASE, true)
|
||||
define(_COPYRIGHT_YEAR, 2015)
|
||||
AC_INIT([Darkcoin Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[info@darkcoin.io],[darkcoin])
|
||||
|
@ -12,7 +12,7 @@
|
||||
#define CLIENT_VERSION_MAJOR 0
|
||||
#define CLIENT_VERSION_MINOR 11
|
||||
#define CLIENT_VERSION_REVISION 1
|
||||
#define CLIENT_VERSION_BUILD 20
|
||||
#define CLIENT_VERSION_BUILD 21
|
||||
|
||||
|
||||
|
||||
|
@ -36,7 +36,7 @@ void ProcessSpork(CNode* pfrom, std::string& strCommand, CDataStream& vRecv)
|
||||
if(chainActive.Tip() == NULL) return;
|
||||
|
||||
uint256 hash = spork.GetHash();
|
||||
if(mapSporks.count(hash)) {
|
||||
if(mapSporks.count(hash) && mapSporksActive.count(spork.nSporkID)) {
|
||||
if(mapSporksActive[spork.nSporkID].nTimeSigned >= spork.nTimeSigned){
|
||||
if(fDebug) LogPrintf("spork - seen %s block %d \n", hash.ToString().c_str(), chainActive.Tip()->nHeight);
|
||||
return;
|
||||
@ -53,6 +53,7 @@ void ProcessSpork(CNode* pfrom, std::string& strCommand, CDataStream& vRecv)
|
||||
return;
|
||||
}
|
||||
|
||||
mapSporks[hash] = spork;
|
||||
mapSporksActive[spork.nSporkID] = spork;
|
||||
sporkManager.Relay(spork);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user