Browse Source

set allow_duplicate_ip to false

* in `tendermint testnet`, set allow_duplicate_ip to true

Refs #2712
pull/3021/head
Anton Kaliaev 6 years ago
parent
commit
24c1094ebc
No known key found for this signature in database GPG Key ID: 7B6881D965918214
4 changed files with 5 additions and 2 deletions
  1. +2
    -0
      CHANGELOG_PENDING.md
  2. +1
    -0
      cmd/tendermint/commands/testnet.go
  3. +1
    -1
      config/config.go
  4. +1
    -1
      docs/tendermint-core/configuration.md

+ 2
- 0
CHANGELOG_PENDING.md View File

@ -7,6 +7,7 @@ Special thanks to external contributors on this release:
### BREAKING CHANGES:
* CLI/RPC/Config
- [config] `allow_duplicate_ip` is now set to false
* Apps
@ -15,6 +16,7 @@ Special thanks to external contributors on this release:
* Blockchain Protocol
* P2P Protocol
- multiple connections from the same IP are now disabled by default (see `allow_duplicate_ip` config option)
### FEATURES:


+ 1
- 0
cmd/tendermint/commands/testnet.go View File

@ -145,6 +145,7 @@ func testnetFiles(cmd *cobra.Command, args []string) error {
nodeDir := filepath.Join(outputDir, fmt.Sprintf("%s%d", nodeDirPrefix, i))
config.SetRoot(nodeDir)
config.P2P.AddrBookStrict = false
config.P2P.AllowDuplicateIP = true
if populatePersistentPeers {
config.P2P.PersistentPeers = persistentPeers
}


+ 1
- 1
config/config.go View File

@ -434,7 +434,7 @@ func DefaultP2PConfig() *P2PConfig {
RecvRate: 5120000, // 5 mB/s
PexReactor: true,
SeedMode: false,
AllowDuplicateIP: true, // so non-breaking yet
AllowDuplicateIP: false,
HandshakeTimeout: 20 * time.Second,
DialTimeout: 3 * time.Second,
TestDialFail: false,


+ 1
- 1
docs/tendermint-core/configuration.md View File

@ -170,7 +170,7 @@ seed_mode = false
private_peer_ids = ""
# Toggle to disable guard against peers connecting from the same ip.
allow_duplicate_ip = true
allow_duplicate_ip = false
# Peer connection configuration.
handshake_timeout = "20s"


Loading…
Cancel
Save