Skip to content

Commit

Permalink
Update versions for v1.12.0-fuji
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed Nov 18, 2024
1 parent 049be36 commit cd19b65
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 24 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,21 @@ jobs:
- name: Build AvalancheGo Binary
shell: bash
run: ./scripts/build.sh
- name: Run e2e tests
uses: ./.github/actions/run-monitored-tmpnet-cmd
with:
run: ./scripts/tests.upgrade.sh
filter_by_owner: avalanchego-e2e
prometheus_id: ${{ secrets.PROMETHEUS_ID || '' }}
prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }}
loki_id: ${{ secrets.LOKI_ID || '' }}
loki_password: ${{ secrets.LOKI_PASSWORD || '' }}
- name: Upload tmpnet network dir
uses: ./.github/actions/upload-tmpnet-artifact
if: always()
with:
name: upgrade-tmpnet-data
# TODO: Reactivate test once v1.12.0 is published
# - name: Run e2e tests
# uses: ./.github/actions/run-monitored-tmpnet-cmd
# with:
# run: ./scripts/tests.upgrade.sh
# filter_by_owner: avalanchego-e2e
# prometheus_id: ${{ secrets.PROMETHEUS_ID || '' }}
# prometheus_password: ${{ secrets.PROMETHEUS_PASSWORD || '' }}
# loki_id: ${{ secrets.LOKI_ID || '' }}
# loki_password: ${{ secrets.LOKI_PASSWORD || '' }}
# - name: Upload tmpnet network dir
# uses: ./.github/actions/upload-tmpnet-artifact
# if: always()
# with:
# name: upgrade-tmpnet-data
Lint:
runs-on: ubuntu-latest
steps:
Expand Down
18 changes: 18 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Release Notes

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

**Please note that this release is unable to run mainnet - and will display "mainnet is not supported" if attempted to run with a mainnet configuration.**

This upgrade consists of the following Avalanche Community Proposals (ACPs):
- [ACP-77](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/77-reinventing-subnets/README.md) Reinventing Subnets
- [ACP-103](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/103-dynamic-fees/README.md) Add Dynamic Fees to the P-Chain
- [ACP-118](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/118-warp-signature-request/README.md) Warp Signature Interface Standard
- [ACP-125](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/125-basefee-reduction/README.md) Reduce C-Chain minimum base fee from 25 nAVAX to 1 nAVAX
- [ACP-131](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/131-cancun-eips/README.md) Activate Cancun EIPs on C-Chain and Subnet-EVM chains
- [ACP-151](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/151-use-current-block-pchain-height-as-context/README.md) Use current block P-Chain height as context for state verification

The changes in the upgrade go into effect at 11 AM ET (4 PM UTC) on Monday, November 25th, 2024 on the Fuji testnet.

**All Fuji nodes must upgrade before 11 AM ET, November 25th 2024.**

**Full Changelog**: https://github.com/ava-labs/avalanchego/compare/v1.11.13...v1.12.0-fuji

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

This version is backwards compatible to [v1.11.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.11.0). It is optional, but encouraged.
Expand Down
4 changes: 4 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1301,6 +1301,10 @@ func GetNodeConfig(v *viper.Viper) (node.Config, error) {
return node.Config{}, err
}

if nodeConfig.NetworkID == constants.MainnetID {
return node.Config{}, errors.New("mainnet is not supported")
}

// Database
nodeConfig.DatabaseConfig, err = getDatabaseConfig(v, nodeConfig.NetworkID)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ func (n *Node) initNetworking(reg prometheus.Registerer) error {

n.Net, err = network.NewNetwork(
&n.Config.NetworkConfig,
n.Config.UpgradeConfig.DurangoTime,
n.Config.UpgradeConfig.EtnaTime,
n.msgCreator,
reg,
n.Log,
Expand Down
6 changes: 2 additions & 4 deletions upgrade/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var (
// Ref: https://subnets-test.avax.network/x-chain/block/0
CortinaXChainStopVertexID: ids.FromStringOrPanic("2D1cmbiG36BqQMRyHt4kFhWarmatA1ighSpND3FeFgz3vFVtCZ"),
DurangoTime: time.Date(2024, time.February, 13, 16, 0, 0, 0, time.UTC),
EtnaTime: UnscheduledActivationTime,
EtnaTime: time.Date(2024, time.November, 25, 16, 0, 0, 0, time.UTC),
}
Default = Config{
ApricotPhase1Time: InitiallyActiveTime,
Expand All @@ -70,9 +70,7 @@ var (
CortinaTime: InitiallyActiveTime,
CortinaXChainStopVertexID: ids.Empty,
DurangoTime: InitiallyActiveTime,
// Etna is left unactivated by default on local networks. It can be configured to
// activate by overriding the activation time in the upgrade file.
EtnaTime: UnscheduledActivationTime,
EtnaTime: InitiallyActiveTime,
}

ErrInvalidUpgradeTimes = errors.New("invalid upgrade configuration")
Expand Down
3 changes: 2 additions & 1 deletion version/compatibility.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"38": [
"v1.11.13"
"v1.11.13",
"v1.12.0"
],
"37": [
"v1.11.11",
Expand Down
8 changes: 4 additions & 4 deletions version/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const (
var (
Current = &Semantic{
Major: 1,
Minor: 11,
Patch: 13,
Minor: 12,
Patch: 0,
}
CurrentApp = &Application{
Name: Client,
Expand All @@ -34,13 +34,13 @@ var (
MinimumCompatibleVersion = &Application{
Name: Client,
Major: 1,
Minor: 11,
Minor: 12,
Patch: 0,
}
PrevMinimumCompatibleVersion = &Application{
Name: Client,
Major: 1,
Minor: 10,
Minor: 11,
Patch: 0,
}

Expand Down

0 comments on commit cd19b65

Please sign in to comment.