rename private_peers to private_peer_ids to distinguish from peers

This commit is contained in:
Anton Kaliaev
2018-03-15 11:55:30 +04:00
parent 8bef3eb1f4
commit a39aec0bae
7 changed files with 67 additions and 20 deletions
+2 -2
View File
@@ -289,8 +289,8 @@ type P2PConfig struct {
// Authenticated encryption
AuthEnc bool `mapstructure:"auth_enc"`
// Comma separated list of nodes to keep private (will not be gossiped to other peers) connections to
PrivatePeers string `mapstructure:"private_peers"`
// Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
PrivatePeerIDs string `mapstructure:"private_peer_ids"`
}
// DefaultP2PConfig returns a default configuration for the peer-to-peer layer
+2 -2
View File
@@ -162,8 +162,8 @@ seed_mode = {{ .P2P.SeedMode }}
# Authenticated encryption
auth_enc = {{ .P2P.AuthEnc }}
# Comma separated list of nodes to keep private (will not be gossiped to other peers) connections to
private_peers = {{ .P2P.PrivatePeers }}
# Comma separated list of peer IDs to keep private (will not be gossiped to other peers)
private_peer_ids = {{ .P2P.PrivatePeerIDs }}
##### mempool configuration options #####
[mempool]