From 933cd1d7dc043dfd037b906e63a6355d0e9c93b2 Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Mon, 4 Aug 2014 17:53:49 -0700 Subject: [PATCH] master reset --- src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index ec7bcda6d4..7bb97e0d44 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4160,7 +4160,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) BOOST_FOREACH (PAIRTYPE(int64, CTxIn)& s, vecMasternodesVoted){ if(s.first == nBlockHeight && s.second == vinMasterNodeFrom){ - //printf("dmcv - found prev masternode vote for block\n"); + printf("dmcv - found prev masternode vote for block\n"); return true; } } @@ -6145,6 +6145,12 @@ void CDarkSendPool::CheckTimeout(){ } c++; } + } else if(GetTimeMillis()-lastTimeChanged >= 30000){ + if(fDebug) printf("CDarkSendPool::CheckTimeout() -- SESSION TIMED OUT (30) -- RESETTING\n"); + SetNull(); + + UpdateState(POOL_STATUS_ERROR); + lastMessage = "Signing timed out (30), please resubmit"; } if(state == POOL_STATUS_SIGNING && GetTimeMillis()-lastTimeChanged >= 10000 ) {