Skip to content

Commit b275bdf

Browse files
committed
Updating timeouts related to sync operations
1 parent dc60bfa commit b275bdf

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

node/MwcNode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ void MwcNode::nodeOutputGenericEvent( tries::NODE_OUTPUT_EVENT event, QString me
600600
case tries::NODE_OUTPUT_EVENT::RECEIVE_BLOCK_LISTEN:
601601
case tries::NODE_OUTPUT_EVENT::RECEIVE_BLOCK_START: {
602602
// expected no break
603-
nextTimeLimit += int64_t(MWC_NODE_SYNC_MESSAGES * config::getTimeoutMultiplier());
603+
nextTimeLimit += int64_t(RECEIVE_BLOCK_LISTEN * config::getTimeoutMultiplier());
604604
nodeOutOfSyncCounter = 0;
605605
break;
606606
}

node/MwcNode.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ const int64_t START_TOR_TIMEOUT = 60*10*1000; // Tor can start for a very long t
4343

4444
// messages from NodeOutputParser
4545
const int64_t MWC_NODE_STARTED_TIMEOUT = 180*1000; // It can take some time to find peers
46-
const int64_t MWC_NODE_SYNC_MESSAGES = 60*1000; // Sync supposed to be agile
47-
const int64_t PIBD_IS_DONE = 30*60*1000; // That might take a while (10 minutes for Debug mwc app on MacBook Pro)
46+
const int64_t MWC_NODE_SYNC_MESSAGES = 5*60*1000; // Sync supposed to be agile
4847
const int64_t RECEIVE_BLOCK_LISTEN = 10*60*1000; // 10 minutes can be delay due non consistancy. API call expected to catch non sync cases
4948
const int64_t NETWORK_ISSUES = 0; // Let's not consider network issues. API call will restart the node
5049

0 commit comments

Comments
 (0)