You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes: gnolang#5859
Discovered peers are now persisted to a local address book file and
reloaded on node restart, so the node can reconnect to previously
discovered peers without re-running the full discovery process.
---------
Co-authored-by: Thomas <thomas.bruyelle@tendermint.com>
// defaultAddrBookPath is the default relative path for the persisted peer address book
17
+
vardefaultAddrBookPath="config/addrbook.json"
18
+
15
19
// P2PConfig defines the configuration options for the Tendermint peer-to-peer networking layer
16
20
typeP2PConfigstruct {
17
21
RootDirstring`json:"rpc" toml:"home"`
@@ -51,6 +55,10 @@ type P2PConfig struct {
51
55
52
56
// Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
53
57
PrivatePeerIDsstring`json:"private_peer_ids" toml:"private_peer_ids" comment:"Comma separated list of peer IDs to keep private (will not be gossiped to other peers)"`
58
+
59
+
// Path to the address book file used to persist discovered peers across restarts.
60
+
// When empty, a default path relative to the root directory is used.
61
+
AddrBookstring`json:"addr_book_file" toml:"addr_book_file" comment:"Path to the address book file used to persist discovered peers across restarts"`
54
62
}
55
63
56
64
// DefaultP2PConfig returns a default configuration for the peer-to-peer layer
0 commit comments