mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
Track peer "sanity" (RIPD-836)
* Each peer has a "sane/insane/unknown" status * Status updated based on peer ledger sequence * Status reported in peer json * Only sane peers preferred for historical ledgers * Overlay endpoints only accepted from known sane peers * Untrusted proposals not relayed from insane peers * Untrusted validations not relayed from insane peers * Transactions from insane peers are not processed * Periodically drop outbound connections to bad peers * Bad peers get bootcache valence of zero Peer "sanity" is based on the ledger sequence number they are on. We quickly become able to assess this based on current trusted validations. We quarrantine rogue messages and disconnect bad outbound connections to help maintain the configured number of good outbound connections.
This commit is contained in:
committed by
Miguel Portilla
parent
acf2833362
commit
0c134582ca
@@ -293,6 +293,7 @@ JSS ( result ); // RPC
|
||||
JSS ( ripple_lines ); // out: NetworkOPs
|
||||
JSS ( ripple_state ); // in: LedgerEntr
|
||||
JSS ( rt_accounts ); // in: Subscribe, Unsubscribe
|
||||
JSS ( sanity ); // out: PeerImp
|
||||
JSS ( search_depth ); // in: RipplePathFind
|
||||
JSS ( secret ); // in: TransactionSign, WalletSeed,
|
||||
// ValidationCreate, ValidationSeed
|
||||
|
||||
Reference in New Issue
Block a user