Skip to content

Commit c60f7d2

Browse files
Update version to v1.11.0 (#2758)
1 parent 4ee5f19 commit c60f7d2

File tree

9 files changed

+145
-35
lines changed

9 files changed

+145
-35
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,17 @@ jobs:
109109
- name: Build AvalancheGo Binary
110110
shell: bash
111111
run: ./scripts/build.sh
112-
- name: Run e2e tests
113-
shell: bash
114-
run: ./scripts/tests.upgrade.sh
115-
- name: Upload tmpnet network dir
116-
uses: actions/upload-artifact@v4
117-
if: always()
118-
with:
119-
name: upgrade-tmpnet-data
120-
path: ${{ env.tmpnet_data_path }}
121-
if-no-files-found: error
112+
# TODO: Reactivate test once v1.11.0 is published
113+
# - name: Run e2e tests
114+
# shell: bash
115+
# run: ./scripts/tests.upgrade.sh
116+
# - name: Upload tmpnet network dir
117+
# uses: actions/upload-artifact@v4
118+
# if: always()
119+
# with:
120+
# name: upgrade-tmpnet-data
121+
# path: ${{ env.tmpnet_data_path }}
122+
# if-no-files-found: error
122123
Lint:
123124
runs-on: ubuntu-latest
124125
steps:

RELEASES.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,91 @@
11
# Release Notes
22

3+
## [v1.11.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.11.0)
4+
5+
This upgrade consists of the following Avalanche Community Proposals (ACPs):
6+
7+
- [ACP-23](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/23-p-chain-native-transfers.md) P-Chain Native Transfers
8+
- [ACP-24](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/24-shanghai-eips.md) Activate Shanghai EIPs on C-Chain
9+
- [ACP-25](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/25-vm-application-errors.md) Virtual Machine Application Errors
10+
- [ACP-30](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/30-avalanche-warp-x-evm.md) Integrate Avalanche Warp Messaging into the EVM
11+
- [ACP-31](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/31-enable-subnet-ownership-transfer.md) Enable Subnet Ownership Transfer
12+
- [ACP-41](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/41-remove-pending-stakers.md) Remove Pending Stakers
13+
- [ACP-62](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/62-disable-addvalidatortx-and-adddelegatortx.md) Disable AddValidatorTx and AddDelegatorTx
14+
15+
The changes in the upgrade go into effect at 11 AM ET (4 PM UTC) on Wednesday, March 6th, 2024 on Mainnet.
16+
17+
**All Durango supporting Mainnet nodes should upgrade before 11 AM ET, March 6th 2024.**
18+
19+
The plugin version is updated to `33` all plugins must update to be compatible.
20+
21+
### APIs
22+
23+
- Added `platform.getSubnet` API
24+
25+
### Configs
26+
27+
- Deprecated:
28+
- `api-auth-required`
29+
- `api-auth-password`
30+
- `api-auth-password-file`
31+
32+
### Fixes
33+
34+
- Fixed potential deadlock during P-chain shutdown
35+
- Updated the consensus engine to recover from previously misconfigured subnets without requiring a restart
36+
37+
### What's Changed
38+
39+
- `ci`: Upgrade all workflow actions to versions using Node 20 by @marun in https://github.com/ava-labs/avalanchego/pull/2677
40+
- `tmpnet`: Ensure restart after chain creation by @marun in https://github.com/ava-labs/avalanchego/pull/2675
41+
- Publish docker images with race detection by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2680
42+
- `vms/platformvm`: Remove `NewRewardValidatorTx` from `Builder` by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2676
43+
- `ci`: Updated shellcheck script to support autofix by @marun in https://github.com/ava-labs/avalanchego/pull/2678
44+
- Unblock misconfigured subnets by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2679
45+
- Add transfer subnet ownership functionality to wallet by @felipemadero in https://github.com/ava-labs/avalanchego/pull/2659
46+
- Add ACP-62 by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2681
47+
- `vms/platformvm`: Add missing txs to `txs.Builder` by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2663
48+
- `vms/platformvm`: Disable `AddValidatorTx` and `AddDelegatorTx` by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2662
49+
- Remove chain router from node.Config by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2683
50+
- Deprecate the auth API by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2684
51+
- Fix P-chain Shutdown deadlock by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2686
52+
- Cleanup ID initialization by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2690
53+
- Remove unused chains#beacons field by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/2692
54+
- x/sync: Remove duplicated call to TrackBandwidth by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2694
55+
- Move VMAliaser into node from config by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2689
56+
- Fix minor errors in x/sync tests by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2709
57+
- Update minimum golang version to v1.21.7 by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2710
58+
- Check for github action updates in dependabot by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2715
59+
- Update `golangci-lint` to `v1.56.1` by @dhrubabasu in https://github.com/ava-labs/avalanchego/pull/2714
60+
- Add stringer to warp types by @aaronbuchwald in https://github.com/ava-labs/avalanchego/pull/2712
61+
- Refactor `p2p.PeerTracker` by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2701
62+
- Bump actions/stale from 8 to 9 by @dependabot in https://github.com/ava-labs/avalanchego/pull/2719
63+
- Bump github/codeql-action from 2 to 3 by @dependabot in https://github.com/ava-labs/avalanchego/pull/2720
64+
- Bump bufbuild/buf-setup-action from 1.26.1 to 1.29.0 by @dependabot in https://github.com/ava-labs/avalanchego/pull/2721
65+
- Bump aws-actions/configure-aws-credentials from 1 to 4 by @dependabot in https://github.com/ava-labs/avalanchego/pull/2722
66+
- Manually setup golang in codeql action by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2725
67+
- Provide pgo file during compilation by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2724
68+
- P-chain - Tx builder cleanup by @abi87 in https://github.com/ava-labs/avalanchego/pull/2718
69+
- Refactor chain manager subnets by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/2711
70+
- Replace snowball/snowflake interface with single shared snow interface by @aaronbuchwald in https://github.com/ava-labs/avalanchego/pull/2717
71+
- Remove duplicate IP length constant by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2733
72+
- Add `platform.getSubnet` API by @felipemadero in https://github.com/ava-labs/avalanchego/pull/2704
73+
- Provide BLS signature in Handshake message by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2730
74+
- Verify BLS signature provided in Handshake messages by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2735
75+
- Move UTXOs definition from primary to primary/common by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2741
76+
- Minimize Signer interface and document Sign by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2740
77+
- Revert setup-go during unit tests by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2744
78+
- P-chain wallet fees UTs by @abi87 in https://github.com/ava-labs/avalanchego/pull/2734
79+
- `merkledb` -- generalize error case to check state that should never occur by @danlaine in https://github.com/ava-labs/avalanchego/pull/2743
80+
- Revert setup-go to v3 on all arm actions by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2749
81+
- Add AppError to Sender interface by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/2737
82+
- P-chain - Cleaned up fork switch in UTs by @abi87 in https://github.com/ava-labs/avalanchego/pull/2746
83+
- X-chain wallet fees UTs by @abi87 in https://github.com/ava-labs/avalanchego/pull/2747
84+
- Add keys values to bimap by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/2754
85+
- fix test sender by @joshua-kim in https://github.com/ava-labs/avalanchego/pull/2755
86+
87+
**Full Changelog**: https://github.com/ava-labs/avalanchego/compare/v1.10.19...v1.11.0
88+
389
## [v1.10.19](https://github.com/ava-labs/avalanchego/releases/tag/v1.10.19)
490

591
This version is backwards compatible to [v1.10.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.10.0). It is optional, but encouraged.

config/config.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ var (
9494
}
9595

9696
errConflictingACPOpinion = errors.New("supporting and objecting to the same ACP")
97+
errConflictingImplicitACPOpinion = errors.New("objecting to enabled ACP")
9798
errSybilProtectionDisabledStakerWeights = errors.New("sybil protection disabled weights must be positive")
9899
errSybilProtectionDisabledOnPublicNetwork = errors.New("sybil protection disabled on public network")
99100
errAuthPasswordTooWeak = errors.New("API auth password is not strong enough")
@@ -379,6 +380,13 @@ func getNetworkConfig(
379380
if supportedACPs.Overlaps(objectedACPs) {
380381
return network.Config{}, errConflictingACPOpinion
381382
}
383+
if constants.ScheduledACPs.Overlaps(objectedACPs) {
384+
return network.Config{}, errConflictingImplicitACPOpinion
385+
}
386+
387+
// Because this node version has scheduled these ACPs, we should notify
388+
// peers that we support these upgrades.
389+
supportedACPs.Union(constants.ScheduledACPs)
382390

383391
config := network.Config{
384392
ThrottlerConfig: network.ThrottlerConfig{

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/DataDog/zstd v1.5.2
1212
github.com/Microsoft/go-winio v0.5.2
1313
github.com/NYTimes/gziphandler v1.1.1
14-
github.com/ava-labs/coreth v0.12.11-rc.3.0.20240207021717-15431782181b
14+
github.com/ava-labs/coreth v0.13.0-rc.0
1515
github.com/ava-labs/ledger-avalanche/go v0.0.0-20231102202641-ae2ebdaeac34
1616
github.com/btcsuite/btcd/btcutil v1.1.3
1717
github.com/cockroachdb/pebble v0.0.0-20230209160836-829675f94811

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156 h1:eMwmnE/GDgah
6666
github.com/allegro/bigcache v1.2.1-0.20190218064605-e24eb225f156/go.mod h1:Cb/ax3seSYIx7SuZdm2G2xzfwmv3TPSk2ucNfQESPXM=
6767
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
6868
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
69-
github.com/ava-labs/coreth v0.12.11-rc.3.0.20240207021717-15431782181b h1:CG09kjMyp0+5iusoZZVyOc1tL1HtuiJ8cL/5QipQUD8=
70-
github.com/ava-labs/coreth v0.12.11-rc.3.0.20240207021717-15431782181b/go.mod h1:ofm30knZFS5q+y3YS+p2jLa+3ZpgzW5OkM8He5MwZxs=
69+
github.com/ava-labs/coreth v0.13.0-rc.0 h1:V2l3qj2ek3geKDJAnF2M94mYJK8kg2kePixujfJ0bmk=
70+
github.com/ava-labs/coreth v0.13.0-rc.0/go.mod h1:eUMbBLDhlZASJjcbf0gIcD2GMn2rRRCUxC8MXLt5QQk=
7171
github.com/ava-labs/ledger-avalanche/go v0.0.0-20231102202641-ae2ebdaeac34 h1:mg9Uw6oZFJKytJxgxnl3uxZOs/SB8CVHg6Io4Tf99Zc=
7272
github.com/ava-labs/ledger-avalanche/go v0.0.0-20231102202641-ae2ebdaeac34/go.mod h1:pJxaT9bUgeRNVmNRgtCHb7sFDIRKy7CzTQVi8gGNT6g=
7373
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible/go.mod h1:osfaiScAUVup+UC9Nfq76eWqDhXlp+4UYaA8uhTBO6g=

proto/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Avalanche gRPC
22

3-
Now Serving: **Protocol Version 30**
3+
Now Serving: **Protocol Version 33**
44

55
Protobuf files are hosted at
66
[https://buf.build/ava-labs/avalanche](https://buf.build/ava-labs/avalanche) and

utils/constants/acps.go

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,29 @@ package constants
55

66
import "github.com/ava-labs/avalanchego/utils/set"
77

8-
// CurrentACPs is the set of ACPs that are currently, at the time of release,
9-
// marked as implementable and not activated.
10-
//
11-
// See: https://github.com/orgs/avalanche-foundation/projects/1
12-
var CurrentACPs = set.Of[uint32](
13-
23, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/23-p-chain-native-transfers.md
14-
24, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/24-shanghai-eips.md
15-
25, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/25-vm-application-errors.md
16-
30, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/30-avalanche-warp-x-evm.md
17-
31, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/31-enable-subnet-ownership-transfer.md
18-
41, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/41-remove-pending-stakers.md
19-
62, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/62-disable-addvalidatortx-and-adddelegatortx.md
8+
var (
9+
// CurrentACPs is the set of ACPs that are currently, at the time of
10+
// release, marked as implementable and not activated.
11+
//
12+
// See: https://github.com/orgs/avalanche-foundation/projects/1
13+
CurrentACPs = set.Of[uint32](
14+
23, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/23-p-chain-native-transfers.md
15+
24, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/24-shanghai-eips.md
16+
25, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/25-vm-application-errors.md
17+
30, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/30-avalanche-warp-x-evm.md
18+
31, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/31-enable-subnet-ownership-transfer.md
19+
41, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/41-remove-pending-stakers.md
20+
62, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/62-disable-addvalidatortx-and-adddelegatortx.md
21+
)
22+
23+
// ScheduledACPs are the ACPs incuded into the next upgrade.
24+
ScheduledACPs = set.Of[uint32](
25+
23, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/23-p-chain-native-transfers.md
26+
24, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/24-shanghai-eips.md
27+
25, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/25-vm-application-errors.md
28+
30, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/30-avalanche-warp-x-evm.md
29+
31, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/31-enable-subnet-ownership-transfer.md
30+
41, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/41-remove-pending-stakers.md
31+
62, // https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/62-disable-addvalidatortx-and-adddelegatortx.md
32+
)
2033
)

version/compatibility.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"33": [
3+
"v1.11.0"
4+
],
25
"31": [
36
"v1.10.18",
47
"v1.10.19"

version/constants.go

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ const (
1818
// RPCChainVMProtocol should be bumped anytime changes are made which
1919
// require the plugin vm to upgrade to latest avalanchego release to be
2020
// compatible.
21-
RPCChainVMProtocol uint = 31
21+
RPCChainVMProtocol uint = 33
2222
)
2323

2424
// These are globals that describe network upgrades and node versions
2525
var (
2626
Current = &Semantic{
2727
Major: 1,
28-
Minor: 10,
29-
Patch: 19,
28+
Minor: 11,
29+
Patch: 0,
3030
}
3131
CurrentApp = &Application{
3232
Name: Client,
@@ -37,13 +37,13 @@ var (
3737
MinimumCompatibleVersion = &Application{
3838
Name: Client,
3939
Major: 1,
40-
Minor: 10,
40+
Minor: 11,
4141
Patch: 0,
4242
}
4343
PrevMinimumCompatibleVersion = &Application{
4444
Name: Client,
4545
Major: 1,
46-
Minor: 9,
46+
Minor: 10,
4747
Patch: 0,
4848
}
4949

@@ -136,10 +136,9 @@ var (
136136
constants.FujiID: ids.FromStringOrPanic("2D1cmbiG36BqQMRyHt4kFhWarmatA1ighSpND3FeFgz3vFVtCZ"),
137137
}
138138

139-
// TODO: update this before release
140139
DurangoTimes = map[uint32]time.Time{
141-
constants.MainnetID: time.Date(10000, time.December, 1, 0, 0, 0, 0, time.UTC),
142-
constants.FujiID: time.Date(10000, time.December, 1, 0, 0, 0, 0, time.UTC),
140+
constants.MainnetID: time.Date(2024, time.March, 6, 16, 0, 0, 0, time.UTC),
141+
constants.FujiID: time.Date(2024, time.February, 13, 16, 0, 0, 0, time.UTC),
143142
}
144143
)
145144

@@ -245,7 +244,7 @@ func GetCompatibility(networkID uint32) Compatibility {
245244
return NewCompatibility(
246245
CurrentApp,
247246
MinimumCompatibleVersion,
248-
GetCortinaTime(networkID),
247+
GetDurangoTime(networkID),
249248
PrevMinimumCompatibleVersion,
250249
)
251250
}

0 commit comments

Comments
 (0)