Skip to content

Commit 6be18c6

Browse files
author
Evan Duffield
committed
only update last dseep time when signature is valid
1 parent 38749b0 commit 6be18c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/clientversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#define CLIENT_VERSION_MAJOR 0
1010
#define CLIENT_VERSION_MINOR 10
1111
#define CLIENT_VERSION_REVISION 17
12-
#define CLIENT_VERSION_BUILD 22
12+
#define CLIENT_VERSION_BUILD 23
1313

1414
// Set to true for release, false for prerelease or test build
1515
#define CLIENT_VERSION_IS_RELEASE true

src/masternode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,6 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream
210210
if(mn.vin.prevout == vin.prevout) {
211211
// take this only if it's newer
212212
if(mn.lastDseep < sigTime){
213-
mn.lastDseep = sigTime;
214-
215213
std::string strMessage = mn.addr.ToString() + boost::lexical_cast<std::string>(sigTime) + boost::lexical_cast<std::string>(stop);
216214

217215
std::string errorMessage = "";
@@ -221,6 +219,8 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream
221219
return;
222220
}
223221

222+
mn.lastDseep = sigTime;
223+
224224
if(!mn.UpdatedWithin(MASTERNODE_MIN_DSEEP_SECONDS)){
225225
mn.UpdateLastSeen();
226226
if(stop) {

0 commit comments

Comments
 (0)