mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Cleanup.
This commit is contained in:
@@ -11,7 +11,6 @@ SETUP_LOG (InboundLedger)
|
|||||||
#define LEDGER_ACQUIRE_TIMEOUT 2000 // millisecond for each ledger timeout
|
#define LEDGER_ACQUIRE_TIMEOUT 2000 // millisecond for each ledger timeout
|
||||||
#define LEDGER_TIMEOUT_COUNT 10 // how many timeouts before we giveup
|
#define LEDGER_TIMEOUT_COUNT 10 // how many timeouts before we giveup
|
||||||
#define LEDGER_TIMEOUT_AGGRESSIVE 6 // how many timeouts before we get aggressive
|
#define LEDGER_TIMEOUT_AGGRESSIVE 6 // how many timeouts before we get aggressive
|
||||||
#define TRUST_NETWORK
|
|
||||||
|
|
||||||
InboundLedger::InboundLedger (uint256 const& hash, uint32 seq)
|
InboundLedger::InboundLedger (uint256 const& hash, uint32 seq)
|
||||||
: PeerSet (hash, LEDGER_ACQUIRE_TIMEOUT)
|
: PeerSet (hash, LEDGER_ACQUIRE_TIMEOUT)
|
||||||
@@ -159,7 +158,7 @@ void InboundLedger::onTimer (bool progress)
|
|||||||
int pc = getPeerCount ();
|
int pc = getPeerCount ();
|
||||||
WriteLog (lsDEBUG, InboundLedger) << "No progress(" << pc << ") for ledger " << pc << mHash;
|
WriteLog (lsDEBUG, InboundLedger) << "No progress(" << pc << ") for ledger " << pc << mHash;
|
||||||
|
|
||||||
if (pc == 0)
|
if (pc < 3)
|
||||||
addPeers ();
|
addPeers ();
|
||||||
else
|
else
|
||||||
trigger (Peer::pointer ());
|
trigger (Peer::pointer ());
|
||||||
|
|||||||
Reference in New Issue
Block a user