mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Improve handling of peers that aren't synced:
When evaluating the fitness and usefulness of an outbound peer, the code would incorrectly calculate the amount of time that the peer spent in a non-useful state. This commit, if merged, corrects the calculation and makes the timeout values configurable by server operators. Two new options are introduced in the 'overlay' stanza of the config file. The default values, in seconds, are: [overlay] max_unknown_time = 600 max_diverged_time = 300
This commit is contained in:
@@ -707,7 +707,7 @@ struct Peer
|
||||
|
||||
// Basic Sequence number router
|
||||
// A message that will be flooded across the network is tagged with a
|
||||
// seqeuence number by the origin node in a BroadcastMesg. Receivers will
|
||||
// sequence number by the origin node in a BroadcastMesg. Receivers will
|
||||
// ignore a message as stale if they've already processed a newer sequence
|
||||
// number, or will process and potentially relay the message along.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user