Skip to content

Commit

Permalink
Update versions for v1.10.0 (#1282)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph authored Apr 11, 2023
1 parent 4a7ad6a commit 5354562
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 17 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- name: Build the avalanchego binary
shell: bash
run: ./scripts/build.sh
- name: Run upgrade tests
shell: bash
run: scripts/tests.upgrade.sh 1.9.0 ./build/avalanchego
# TODO: re-activate this test after there is a compatible tag to use
# - name: Run upgrade tests
# shell: bash
# run: scripts/tests.upgrade.sh 1.9.0 ./build/avalanchego
60 changes: 60 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,65 @@
# Release Notes

## [v1.10.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.10.0)

[This upgrade](https://medium.com/avalancheavax/cortina-x-chain-linearization-a1d9305553f6) linearizes the X-chain, introduces delegation batching to the P-chain, and increases the maximum block size on the C-chain.

The changes in the upgrade go into effect at 11 AM ET, April 25th 2023 on Mainnet.

**All Mainnet nodes should upgrade before 11 AM ET, April 25th 2023.**

The supported plugin version is `25`.

### What's Changed

- Add CODEOWNERS for the x/ package by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1260
- Feature Spec Template by @richardpringle in https://github.com/ava-labs/avalanchego/pull/1258
- Standardize CI triggers by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1265
- special case no sent/received message in network health check by @ceyonur in https://github.com/ava-labs/avalanchego/pull/1263
- Fix bug template by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1268
- Replace `flags` usage with `pflags` by @danlaine in https://github.com/ava-labs/avalanchego/pull/1270
- Fixed grammatical errors in `README.md` by @krakxn in https://github.com/ava-labs/avalanchego/pull/1102
- Add tests for race conditions in merkledb by @kyl27 in https://github.com/ava-labs/avalanchego/pull/1256
- Add P-chain indexer API example by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1271
- use `require` in `snow/choices` tests by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/1279
- use `require` in `utils/wrappers` tests by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/1280
- add support for tracking delegatee rewards to validator metadata by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/1273
- defer delegatee rewards until end of validator staking period by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/1262
- Initialize UptimeCalculator in TestPeer by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/1283
- Add Avalanche liveness health checks by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1287
- Skip AMI generation with Fuji tags by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1288
- Use `maps.Equal` in `set.Equals` by @danlaine in https://github.com/ava-labs/avalanchego/pull/1290
- return accrued delegator rewards in `GetCurrentValidators` by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/1291
- Add zstd compression by @danlaine in https://github.com/ava-labs/avalanchego/pull/1278
- implement `txs.Visitor` in X chain wallet by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/1299
- Parallelize gzip compression by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1293
- Add zip bomb tests by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1300
- Gossip Avalanche frontier after the linearization by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1303
- Add fine grained metrics+logging for handling, processing, and grab l… by @aaronbuchwald in https://github.com/ava-labs/avalanchego/pull/1301
- Persist stateless block in AVM state by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1305
- Initialize FxID fields in GetBlock and GetBlockByHeight by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1306
- Filterable Health Tags by @ceyonur in https://github.com/ava-labs/avalanchego/pull/1304
- increase health await timeout by @ceyonur in https://github.com/ava-labs/avalanchego/pull/1317
- Expose GetEngineManager from the chain Handler by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1316
- Add BLS benchmarks by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1318
- Encode codec version in merkledb by @danlaine in https://github.com/ava-labs/avalanchego/pull/1313
- Expose consensus-app-concurrency by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1322
- Adjust Logic In Merkle DB History by @dboehm-avalabs in https://github.com/ava-labs/avalanchego/pull/1310
- Fix Concurrency Bug In CommitToParent by @dboehm-avalabs in https://github.com/ava-labs/avalanchego/pull/1320
- Cleanup goroutines on health.Stop by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/1325

### New Contributors

- @richardpringle made their first contribution in https://github.com/ava-labs/avalanchego/pull/1258
- @ceyonur made their first contribution in https://github.com/ava-labs/avalanchego/pull/1263
- @krakxn made their first contribution in https://github.com/ava-labs/avalanchego/pull/1102
- @kyl27 made their first contribution in https://github.com/ava-labs/avalanchego/pull/1256
- @dhrubabasu made their first contribution in https://github.com/ava-labs/avalanchego/pull/1279
- @joshua-kim made their first contribution in https://github.com/ava-labs/avalanchego/pull/1283
- @dboehm-avalabs made their first contribution in https://github.com/ava-labs/avalanchego/pull/1310

**Full Changelog**: https://github.com/ava-labs/avalanchego/compare/v1.9.16...v1.10.0

## [v1.9.16](https://github.com/ava-labs/avalanchego/releases/tag/v1.9.16)

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 `24`.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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.9-rc.0
github.com/ava-labs/coreth v0.12.0-rc.2
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/v4 v4.1.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,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.9-rc.0 h1:7oK5DWtvDEMKEaduw/34r5kdwUssRsFszCl1FFUvvPc=
github.com/ava-labs/coreth v0.11.9-rc.0/go.mod h1:y41I9mWK04s8oObvQeYjkdoidtPhkPqV8prRPN6zrd4=
github.com/ava-labs/coreth v0.12.0-rc.2 h1:UNyGhuC2HxZ8eCLZiZON8xRiJkNHVZ75zknu/xqkKBA=
github.com/ava-labs/coreth v0.12.0-rc.2/go.mod h1:ZGhoIZTWbIaTmzEbprXu0hLtLdoE2PSTEFnCTYr0BRk=
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=
Expand Down
2 changes: 1 addition & 1 deletion proto/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Avalanche gRPC

Now Serving: **Protocol Version 24**
Now Serving: **Protocol Version 25**

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.

Expand Down
2 changes: 1 addition & 1 deletion scripts/constants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.9-rc.0'}
coreth_version=${CORETH_VERSION:-'v0.12.0-rc.2'}

# Set the PATHS
GOPATH="$(go env GOPATH)"
Expand Down
3 changes: 3 additions & 0 deletions version/compatibility.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"25": [
"v1.10.0"
],
"24": [
"v1.9.10",
"v1.9.11",
Expand Down
17 changes: 8 additions & 9 deletions version/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = 24
const RPCChainVMProtocol uint = 25

// These are globals that describe network upgrades and node versions
var (
Current = &Semantic{
Major: 1,
Minor: 9,
Patch: 16,
Minor: 10,
Patch: 0,
}
CurrentApp = &Application{
Major: Current.Major,
Expand All @@ -30,12 +30,12 @@ var (
}
MinimumCompatibleVersion = &Application{
Major: 1,
Minor: 9,
Minor: 10,
Patch: 0,
}
PrevMinimumCompatibleVersion = &Application{
Major: 1,
Minor: 8,
Minor: 9,
Patch: 0,
}

Expand Down Expand Up @@ -95,10 +95,9 @@ var (
}
BanffDefaultTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC)

// TODO: update this before release
CortinaTimes = map[uint32]time.Time{
constants.MainnetID: time.Date(10000, time.December, 1, 0, 0, 0, 0, time.UTC),
constants.FujiID: time.Date(10000, time.December, 1, 0, 0, 0, 0, time.UTC),
constants.MainnetID: time.Date(2023, time.April, 25, 15, 0, 0, 0, time.UTC),
constants.FujiID: time.Date(2023, time.April, 6, 15, 0, 0, 0, time.UTC),
}
CortinaDefaultTime = time.Date(2020, time.December, 5, 5, 0, 0, 0, time.UTC)
)
Expand Down Expand Up @@ -177,7 +176,7 @@ func GetCompatibility(networkID uint32) Compatibility {
return NewCompatibility(
CurrentApp,
MinimumCompatibleVersion,
GetBanffTime(networkID),
GetCortinaTime(networkID),
PrevMinimumCompatibleVersion,
)
}

0 comments on commit 5354562

Please sign in to comment.