Skip to content

Commit 8e513f6

Browse files
committed
Merge branch 'v1_12_0-upgrade' into 'main'
Upgrade to v1.12.0
2 parents 0fba4a5 + 9532299 commit 8e513f6

File tree

98 files changed

+2244
-1515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+2244
-1515
lines changed
Lines changed: 58 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: binaries
22

3-
43
on:
54
workflow_dispatch:
65
push:
@@ -12,35 +11,85 @@ env:
1211

1312
jobs:
1413
build:
15-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1615
permissions:
17-
contents: read
16+
contents: write
17+
id-token: write
1818
steps:
1919
- uses: actions/checkout@v3
2020
with:
2121
fetch-depth: 0
22+
2223
- name: Set up Go
2324
uses: actions/setup-go@v3
2425
with:
2526
go-version: ${{ env.go_version }}
2627

27-
- run: echo "IMAGE_TAG=dev" >> $GITHUB_ENV
28-
if: ${{ github.ref_name }} == 'main'
29-
- run: echo "IMAGE_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
30-
if: startsWith(github.ref, 'refs/tags/v')
28+
- name: Set release variables
29+
run: |
30+
if [[ "${{ github.ref_type }}" == "tag" ]]; then
31+
RELEASE_TAG="${{ github.ref_name }}"
32+
else
33+
RELEASE_TAG="dev"
34+
fi
35+
echo "RELEASE_TAG=${RELEASE_TAG}" >> $GITHUB_ENV
36+
echo "ARTIFACT_NAME=go-flare-${RELEASE_TAG}-linux-amd64.zip" >> $GITHUB_ENV
3137
3238
- run: sudo apt-get update -y && sudo apt-get install -y rsync
39+
3340
- name: build
3441
id: build
3542
env:
36-
GOPATH: ${{ github.workspace }}/go
43+
GOPATH: ${{ github.workspace }}/go
3744
run: |
3845
cd avalanchego
3946
./scripts/build.sh
4047
48+
- name: Package build for release
49+
if: github.ref_type == 'tag'
50+
run: |
51+
cd avalanchego/build
52+
zip -r ../../${{ env.ARTIFACT_NAME }} .
53+
54+
- name: Install Cosign
55+
if: github.ref_type == 'tag'
56+
uses: sigstore/cosign-installer@v3.8.1
57+
58+
- name: Sign release binary
59+
if: github.ref_type == 'tag'
60+
shell: bash
61+
env:
62+
COSIGN_EXPERIMENTAL: 1
63+
run: |
64+
cosign sign-blob --yes \
65+
--output-signature ${{ env.ARTIFACT_NAME }}.sig \
66+
--output-certificate ${{ env.ARTIFACT_NAME }}.pem \
67+
${{ env.ARTIFACT_NAME }}
68+
69+
- name: Verify release binary signature
70+
if: github.ref_type == 'tag'
71+
shell: bash
72+
env:
73+
COSIGN_EXPERIMENTAL: 1
74+
run: |
75+
cosign verify-blob \
76+
--certificate ${{ env.ARTIFACT_NAME }}.pem \
77+
--certificate-identity=https://github.com/${{ github.repository }}/.github/workflows/build-binary.yaml@${{ github.ref }} \
78+
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
79+
--signature ${{ env.ARTIFACT_NAME }}.sig \
80+
${{ env.ARTIFACT_NAME }}
81+
82+
- name: Release
83+
uses: softprops/action-gh-release@v1
84+
if: github.ref_type == 'tag'
85+
with:
86+
body: "TODO"
87+
files: ${{ env.ARTIFACT_NAME }}*
88+
4189
- name: Archive production artifacts
90+
if: github.ref_type == 'tag'
4291
uses: actions/upload-artifact@v4
4392
with:
4493
name: dist-bin
4594
path: |
46-
avalanchego/build
95+
${{ env.ARTIFACT_NAME }}

.github/workflows/build-container.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
build-and-push:
1010
name: Build & Push
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-24.04
1212
permissions:
1313
contents: read
1414
packages: write
@@ -24,6 +24,7 @@ jobs:
2424

2525
- run: echo "IMAGE_TAG=dev" >> $GITHUB_ENV
2626
if: github.ref_name == 'main' || startsWith(github.ref_name, 'feature/')
27+
2728
- run: echo "IMAGE_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
2829
if: startsWith(github.ref, 'refs/tags/v')
2930

@@ -87,7 +88,6 @@ jobs:
8788
DIG=$(cat dless.digest)
8889
echo "DLESS_IMAGE_DIGEST=$DIG" >> $GITHUB_ENV
8990
90-
9191
- name: Install Cosign
9292
uses: sigstore/cosign-installer@v3.8.1
9393

@@ -98,7 +98,7 @@ jobs:
9898
run: |
9999
cosign sign --yes ghcr.io/${{ github.repository }}@${{ env.IMAGE_DIGEST }}
100100
cosign sign --yes ghcr.io/${{ github.repository }}@${{ env.DLESS_IMAGE_DIGEST }}
101-
101+
102102
- name: Sign docker hub images
103103
if: ${{ env.USE_DOCKER_HUB == 'true' }}
104104
shell: bash
@@ -122,7 +122,7 @@ jobs:
122122
--certificate-identity=https://github.com/${{ github.repository }}/.github/workflows/build-container.yml@${{ github.ref }} \
123123
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
124124
"ghcr.io/${{ github.repository }}@${{ env.DLESS_IMAGE_DIGEST }}"
125-
125+
126126
- name: Verify docker hub image signatures
127127
if: ${{ env.USE_DOCKER_HUB == 'true' }}
128128
shell: bash

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea/

README.md

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

3-
go-flare is a modified version of [avalanchego@v1.11.13](https://github.com/ava-labs/avalanchego/releases/tag/v1.11.13) and [coreth@v0.13.9 rc1](https://github.com/ava-labs/coreth/releases/tag/v0.13.9-rc.1), incorporating specific features for Flare and Songbird networks. These features include prioritized contract handling and the invocation of the daemon contract.
3+
go-flare is a modified version of [avalanchego@v1.12.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.12.0) and [coreth@v0.13.9 rc1](https://github.com/ava-labs/coreth/releases/tag/v0.13.9-rc.1), incorporating specific features for Flare and Songbird networks. These features include prioritized contract handling and the invocation of the daemon contract.
44

55
See [release notes](./RELEASES-flare.md) for more info.
66

RELEASES-flare.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
Here are listed specific changes to the code for the Flare and Songbird networks. For a comprehensive list of general changes, see [here](./avalanchego/RELEASES.md) for the AvalancheGo project and [here](./coreth/RELEASES.md) for the Coreth project.
44

5+
## v1.12.0
6+
7+
The changes go into effect
8+
* November 13, 2025 at 10 AM UTC for the Coston network,
9+
* November 13, 2025 at 2 PM UTC for the Coston2 network,
10+
* November 25, 2025 at 12 PM UTC for the Songbird network,
11+
* December 2, 2025 at 12 PM UTC for the Flare network.
12+
13+
### Note:
14+
15+
* In contrast to Avalanche, the minimum C-chain base fee after the fork remains at 25 GWei.
16+
* Minimum price per unit of gas used in P-chain [dynamic transaction fee calculation](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/103-dynamic-fees) is set to 250 nFLR.
17+
518
## v1.11.0
619

720
The changes go into effect

avalanchego/CONTRIBUTING.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# How to Contribute to Avalanche
2+
3+
## Setup
4+
5+
To start developing on AvalancheGo, you'll need a few things installed.
6+
7+
- Golang version >= 1.22.8
8+
- gcc
9+
- g++
10+
11+
## Issues
12+
13+
### Security
14+
15+
- Do not open up a GitHub issue if it relates to a security vulnerability in AvalancheGo, and instead refer to our [security policy](./SECURITY.md).
16+
17+
### Did you fix whitespace, format code, or make a purely cosmetic patch?
18+
19+
- Changes from the community that are cosmetic in nature and do not add anything substantial to the stability, functionality, or testability of `avalanchego` will generally not be accepted.
20+
21+
### Making an Issue
22+
23+
- Check that the issue you're filing doesn't already exist by searching under [issues](https://github.com/ava-labs/avalanchego/issues).
24+
- If you're unable to find an open issue addressing the problem, [open a new one](https://github.com/ava-labs/avalanchego/issues/new/choose). Be sure to include a *title and clear description* with as much relevant information as possible.
25+
26+
## Features
27+
28+
- If you want to start a discussion about the development of a new feature or the modification of an existing one, start a thread under GitHub [discussions](https://github.com/ava-labs/avalanchego/discussions/categories/ideas).
29+
- Post a thread about your idea and why it should be added to AvalancheGo.
30+
- Don't start working on a pull request until you've received positive feedback from the maintainers.
31+
32+
## Pull Request Guidelines
33+
34+
- Open a new GitHub pull request containing your changes.
35+
- Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
36+
- The PR should be opened against the `master` branch.
37+
- If your PR isn't ready to be reviewed just yet, you can open it as a draft to collect early feedback on your changes.
38+
- Once the PR is ready for review, mark it as ready-for-review and request review from one of the maintainers.
39+
40+
### Autogenerated code
41+
42+
- Any changes to protobuf message types require that protobuf files are regenerated.
43+
44+
```sh
45+
./scripts/protobuf_codegen.sh
46+
```
47+
48+
- To add or remove an interface that needs a corresponding mock generated, add it to the mock file [here](./scripts/mocks.mockgen.txt). You can regenerate the mocks by running the following script.
49+
50+
```sh
51+
./scripts/mock.gen.sh
52+
```
53+
54+
### Testing
55+
56+
#### Local
57+
58+
- Build the avalanchego binary
59+
60+
```sh
61+
./scripts/build.sh
62+
```
63+
64+
- Run unit tests
65+
66+
```sh
67+
./scripts/build_test.sh
68+
```
69+
70+
- Run the linter
71+
72+
```sh
73+
./scripts/lint.sh
74+
```
75+
76+
### Continuous Integration (CI)
77+
78+
- Pull requests will generally not be approved or merged unless they pass CI.
79+
80+
## Other
81+
82+
### Do you have questions about the source code?
83+
84+
- Ask any question about AvalancheGo under GitHub [discussions](https://github.com/ava-labs/avalanchego/discussions/categories/q-a).
85+
86+
### Do you want to contribute to the Avalanche documentation?
87+
88+
- Please check out the `avalanche-docs` repository [here](https://github.com/ava-labs/avalanche-docs).

avalanchego/RELEASES.md

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

3+
## [v1.12.0](https://github.com/ava-labs/avalanchego/releases/tag/v1.12.0)
4+
5+
This upgrade consists of the following Avalanche Community Proposals (ACPs):
6+
- [ACP-77](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/77-reinventing-subnets/README.md) Reinventing Subnets
7+
- [ACP-103](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/103-dynamic-fees/README.md) Add Dynamic Fees to the P-Chain
8+
- [ACP-118](https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/118-warp-signature-request/README.md) Warp Signature Interface Standard
9+
- [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
10+
- [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
11+
- [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
12+
13+
The changes in the upgrade go into effect at 12 AM ET (5 PM UTC) on Monday, December 16th, 2024 on Mainnet.
14+
15+
**All Etna supporting Mainnet nodes should upgrade before 12 AM ET, December 16th 2024.**
16+
17+
The plugin version is unchanged at `38` and is compatible with version `v1.11.13`.
18+
19+
### APIs
20+
21+
- Allowed `platform.issueTx` to be called, for non-ImportTx transactions, while partial syncing
22+
23+
### What's Changed
24+
25+
- Fix SubnetToL1ConversionData typo by @cam-schultz in https://github.com/ava-labs/avalanchego/pull/3555
26+
- Refactor `logging.Format` to expose constants by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/3561
27+
- [testing] Switch to logging with zap by @marun in https://github.com/ava-labs/avalanchego/pull/3557
28+
- Use JSON logs during Antithesis runs by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/3562
29+
- Antithesis: Skip checks if tx confirmation fails by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/3563
30+
- chore: fix some function names in comment by @wanxiangchwng in https://github.com/ava-labs/avalanchego/pull/3566
31+
- update api docs by @ashucoder9 in https://github.com/ava-labs/avalanchego/pull/3558
32+
- Remove unused wallet interface by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/3568
33+
- Remove required fields from config by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/3569
34+
- Remove redundant field in platformVM/network's Network by @yacovm in https://github.com/ava-labs/avalanchego/pull/3571
35+
- Remove observedSubnetUptime from Info Docs by @samliok in https://github.com/ava-labs/avalanchego/pull/3575
36+
- Allow issuing transactions when using partial-sync by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/3570
37+
- Add partial-sync support to the wallet by @StephenButtolph in https://github.com/ava-labs/avalanchego/pull/3567
38+
39+
### New Contributors
40+
41+
- @wanxiangchwng made their first contribution in https://github.com/ava-labs/avalanchego/pull/3566
42+
- @ashucoder9 made their first contribution in https://github.com/ava-labs/avalanchego/pull/3558
43+
44+
**Full Changelog**: https://github.com/ava-labs/avalanchego/compare/v1.11.13...v1.12.0
45+
346
## [v1.11.13](https://github.com/ava-labs/avalanchego/releases/tag/v1.11.13)
447

548
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.

0 commit comments

Comments
 (0)