From a649deb6eea327ff568c1248a2a174710fb72cec Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 15 Aug 2018 12:52:43 +0400 Subject: [PATCH 1/3] add a changelog entry --- CHANGELOG_PENDING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 305c25b20..40fd2644a 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -13,6 +13,7 @@ BREAKING CHANGES: - [blockchain] fix go-amino routes for blockchain messages - [crypto] Rename AminoRoute variables to no longer be prefixed by signature type. - [config] Replace MaxNumPeers with MaxNumInboundPeers and MaxNumOutboundPeers +- [node] NewNode now accepts a `*p2p.NodeKey` FEATURES: - [types] allow genesis file to have 0 validators ([#2015](https://github.com/tendermint/tendermint/issues/2015)) From 684e3cb4460f33c89cdd71a00a3ea588bb20aebb Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 15 Aug 2018 12:53:00 +0400 Subject: [PATCH 2/3] add upgrading guides --- UPGRADING.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 UPGRADING.md diff --git a/UPGRADING.md b/UPGRADING.md new file mode 100644 index 000000000..a290d57d7 --- /dev/null +++ b/UPGRADING.md @@ -0,0 +1,32 @@ +# Upgrading Tendermint Core + +This guide provides steps to be followed when you upgrade your applications to +a newer version of Tendermint Core. + +## Upgrading from 0.23.0 to 0.24.0 + +New 0.24.0 release contains a lot of changes to the state and types. It's not +compatible to the old versions. + +To reset the state do: + +``` +$ tendermint unsafe_reset_all +``` + +### Config changes + +`p2p.max_num_peers` was removed in favor of `p2p.max_num_inbound_peers` and +`p2p.max_num_outbound_peers`. + +``` +# Maximum number of inbound peers +max_num_inbound_peers = 40 + +# Maximum number of outbound peers to connect to, excluding persistent peers +max_num_outbound_peers = 10 +``` + +As you can see, the default ratio of inbound/outbound peers is 4/1. The reason +as we want it to be easier for new nodes to connect to the network. You can +tweak these parameters to alter the network topology. From 4e78badac961445a07db9f573e8896f19de62645 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 15 Aug 2018 12:54:20 +0400 Subject: [PATCH 3/3] docs: note max outbound peers excludes persistent --- docs/tendermint-core/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tendermint-core/configuration.md b/docs/tendermint-core/configuration.md index 6fb72c44c..5b5c4a29a 100644 --- a/docs/tendermint-core/configuration.md +++ b/docs/tendermint-core/configuration.md @@ -120,7 +120,7 @@ flush_throttle_timeout = 100 # Maximum number of inbound peers max_num_inbound_peers = 40 -# Maximum number of outbound peers to connect to +# Maximum number of outbound peers to connect to, excluding persistent peers max_num_outbound_peers = 10 # Maximum size of a message packet payload, in bytes