From e153cf55236751112f9bf108279447a9dfb6de88 Mon Sep 17 00:00:00 2001 From: Stephen Buttolph Date: Wed, 11 Jan 2023 14:51:52 -0500 Subject: [PATCH] Update versions for v1.9.6 (#2440) --- RELEASES.md | 53 ++++++++++++++++++++++++++++++++++++++ go.mod | 2 +- go.sum | 4 +-- proto/README.md | 2 +- scripts/constants.sh | 2 +- version/compatibility.json | 3 +++ version/constants.go | 4 +-- 7 files changed, 63 insertions(+), 7 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 65941319e6b0..2b74e63aacb5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,5 +1,58 @@ # Release Notes +## [v1.9.6](https://github.com/ava-labs/avalanchego/releases/tag/v1.9.6) + +This version is backwards compatible to [v1.9.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.9.0). It is optional, but encouraged. The supported plugin version is `22`. + +### Consensus + +- Added `StateSyncMode` to the return of `StateSummary#Accept` to support syncing chain state while tracking the chain as a light client +- Added `AcceptedFrontier` to `Chits` messages +- Reduced unnecessary confidence resets during consensus by applying `AcceptedFrontier`s during `QueryFailed` handling +- Added EngineType for consensus messages in the p2p message definitions +- Updated `vertex.DAGVM` interface to support linearization + +### Configs + +- Added `--plugin-dir` flag. The default value is `[DATADIR]/plugins` +- Removed `--build-dir` flag. The location of the avalanchego binary is no longer considered when looking for the `plugins` directory. Subnet maintainers should ensure that their node is able to properly discover plugins, as the default location is likely changed. See `--plugin-dir` +- Changed the default value of `--api-keystore-enabled` to `false` +- Added `--track-subnets` flag as a replacement of `--whitelisted-subnets` + +### Fixes + +- Fixed NAT-PMP router discovery and port mapping +- Fixed `--staking-enabled=false` setting to correctly start subnet chains and report healthy +- Fixed message logging in the consensus handler + +### VMs + +- Populated non-trivial logger in the `rpcchainvm` `Server`'s `snow.Context` +- Updated `rpcchainvm` proto definitions to use enums +- Added `Block` format and definition to the `AVM` +- Removed `proposervm` height index reset + +### Metrics + +- Added `avalanche_network_peer_connected_duration_average` metric +- Added `avalanche_api_calls_processing` metric +- Added `avalanche_api_calls` metric +- Added `avalanche_api_calls_duration` metric + +### Documentation + +- Added wallet example to create `stakeable.LockOut` outputs +- Improved ubuntu deb install instructions + +### Miscellaneous + +- Updated ledger-avalanche to v0.6.5 +- Added linter to ban the usage of `fmt.Errorf` without format directives +- Added `List` to the `buffer#Deque` interface +- Added `Index` to the `buffer#Deque` interface +- Added `SetLevel` to the `Logger` interface +- Updated `auth` API to use the new `jwt` standard + ## [v1.9.5](https://github.com/ava-labs/avalanchego/releases/tag/v1.9.5) This version is backwards compatible to [v1.9.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.9.0). It is optional, but encouraged. The supported plugin version is `21`. diff --git a/go.mod b/go.mod index 580cd131abd3..cfe577429957 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/Microsoft/go-winio v0.5.2 github.com/NYTimes/gziphandler v1.1.1 github.com/ava-labs/avalanche-network-runner-sdk v0.3.0 - github.com/ava-labs/coreth v0.11.6-0.20221228194216-966a5923da9b + github.com/ava-labs/coreth v0.11.6-rc.0 github.com/ava-labs/ledger-avalanche/go v0.0.0-20230105152938-00a24d05a8c7 github.com/btcsuite/btcd/btcutil v1.1.3 github.com/decred/dcrd/dcrec/secp256k1/v3 v3.0.0-20200627015759-01fd2de07837 diff --git a/go.sum b/go.sum index aab5cbdf8a74..ec8254a78ee7 100644 --- a/go.sum +++ b/go.sum @@ -57,8 +57,8 @@ github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/ava-labs/avalanche-network-runner-sdk v0.3.0 h1:TVi9JEdKNU/RevYZ9PyW4pULbEdS+KQDA9Ki2DUvuAs= github.com/ava-labs/avalanche-network-runner-sdk v0.3.0/go.mod h1:SgKJvtqvgo/Bl/c8fxEHCLaSxEbzimYfBopcfrajxQk= -github.com/ava-labs/coreth v0.11.6-0.20221228194216-966a5923da9b h1:CeLgWiS56mv5Qu84RqgO78xNPR/ZeMdEMLT3e4KLP7Y= -github.com/ava-labs/coreth v0.11.6-0.20221228194216-966a5923da9b/go.mod h1:xgjjJdl50zhHlWPP+3Ux5LxfvFcbSG60tGK6QUkFDhI= +github.com/ava-labs/coreth v0.11.6-rc.0 h1:P8g/vqVx7nZBUHhM95oq9bcsY37P1Y7NNVb7RPe0mW8= +github.com/ava-labs/coreth v0.11.6-rc.0/go.mod h1:xgjjJdl50zhHlWPP+3Ux5LxfvFcbSG60tGK6QUkFDhI= github.com/ava-labs/ledger-avalanche/go v0.0.0-20230105152938-00a24d05a8c7 h1:EdxD90j5sClfL5Ngpz2TlnbnkNYdFPDXa0jDOjam65c= github.com/ava-labs/ledger-avalanche/go v0.0.0-20230105152938-00a24d05a8c7/go.mod h1:XhiXSrh90sHUbkERzaxEftCmUz53eCijshDLZ4fByVM= github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A= diff --git a/proto/README.md b/proto/README.md index 0c8b6997eb1d..1b334e1fe797 100644 --- a/proto/README.md +++ b/proto/README.md @@ -1,6 +1,6 @@ # Avalanche gRPC -Now Serving: **Protocol Version 21** +Now Serving: **Protocol Version 22** Protobuf files are hosted at [https://buf.build/ava-labs/avalanche](https://buf.build/ava-labs/avalanche) and can be used as dependencies in other projects. diff --git a/scripts/constants.sh b/scripts/constants.sh index 661259034c12..7dea9237edd3 100755 --- a/scripts/constants.sh +++ b/scripts/constants.sh @@ -9,7 +9,7 @@ AVALANCHE_PATH=$( cd "$( dirname "${BASH_SOURCE[0]}" )"; cd .. && pwd ) # Direct avalanchego_path="$AVALANCHE_PATH/build/avalanchego" plugin_dir=${PLUGIN_DIR:-$HOME/.avalanchego/plugins} evm_path=${EVM_PATH:-$plugin_dir/evm} -coreth_version=${CORETH_VERSION:-'v0.11.6-0.20221228194216-966a5923da9b'} +coreth_version=${CORETH_VERSION:-'v0.11.6-rc.0'} # Set the PATHS GOPATH="$(go env GOPATH)" diff --git a/version/compatibility.json b/version/compatibility.json index 7f4f5dc221bc..7bb0c3c67fd6 100644 --- a/version/compatibility.json +++ b/version/compatibility.json @@ -1,4 +1,7 @@ { + "22": [ + "v1.9.6" + ], "21": [ "v1.9.5" ], diff --git a/version/constants.go b/version/constants.go index a2270957347a..0397275a5fae 100644 --- a/version/constants.go +++ b/version/constants.go @@ -14,14 +14,14 @@ import ( // RPCChainVMProtocol should be bumped anytime changes are made which require // the plugin vm to upgrade to latest avalanchego release to be compatible. -const RPCChainVMProtocol uint = 21 +const RPCChainVMProtocol uint = 22 // These are globals that describe network upgrades and node versions var ( Current = &Semantic{ Major: 1, Minor: 9, - Patch: 5, + Patch: 6, } CurrentApp = &Application{ Major: Current.Major,