Skip to content

Commit

Permalink
Wait longer until re-requesting recovered sigs and ISLOCKs from other…
Browse files Browse the repository at this point in the history
… peers (#2871)

Observed on testnet that MNs tend to re-request the same objects multiple
times when load becomes high, which results in the same objects being
received multiple times.
  • Loading branch information
codablock authored and UdjinM6 committed Apr 16, 2019
1 parent 2502aad commit b322b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1891,13 +1891,13 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr
// some messages need to be re-requested faster when the first announcing peer did not answer to GETDATA
switch (inv.type) {
case MSG_QUORUM_RECOVERED_SIG:
doubleRequestDelay = 5 * 1000000;
doubleRequestDelay = 15 * 1000000;
break;
case MSG_CLSIG:
doubleRequestDelay = 5 * 1000000;
break;
case MSG_ISLOCK:
doubleRequestDelay = 5 * 1000000;
doubleRequestDelay = 10 * 1000000;
break;
}
pfrom->AskFor(inv, doubleRequestDelay);
Expand Down

0 comments on commit b322b48

Please sign in to comment.