-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into bugfix/audit_bnb21
- Loading branch information
Showing
24 changed files
with
2,167 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
--- | ||
name: Report a bug | ||
about: Something with go-ethereum is not working as expected | ||
about: Something with opBNB is not working as expected | ||
title: '' | ||
labels: 'type:bug' | ||
assignees: '' | ||
--- | ||
|
||
#### System information | ||
|
||
Geth version: `geth version` | ||
CL client & version: e.g. lighthouse/nimbus/[email protected] | ||
Network: `mainnet`/`testnet`/`local` | ||
|
||
if you are running a local node, please provide the following information: | ||
op-node version: `op-node version` | ||
op-geth version: `op-geth -v` | ||
OS & Version: Windows/Linux/OSX | ||
Commit hash : (if `develop`) | ||
|
||
#### Expected behaviour | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
### Description | ||
|
||
add a description of your changes here... | ||
|
||
### Rationale | ||
|
||
tell us why we need these changes... | ||
|
||
### Example | ||
|
||
add an example CLI or API response... | ||
|
||
### Changes | ||
|
||
Notable changes: | ||
* add each change in a bullet point here | ||
* ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Review Assign | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, ready_for_review] | ||
|
||
jobs: | ||
assign: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: hkusu/review-assign-action@v1 | ||
with: | ||
reviewers: ${{ vars.REVIEWERS }} | ||
max-num-of-reviewers: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Unit Test | ||
|
||
on: | ||
pull_request: | ||
types: [ opened, synchronize, reopened ] | ||
push: | ||
branches: [main, develop] | ||
|
||
jobs: | ||
unit_test: | ||
name: unit_test | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '^1.21.3' | ||
- run: make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Changelog | ||
|
||
## v0.2.1 | ||
|
||
This is the Fermat Hardfork release for opBNB Mainnet. | ||
It will be activated at block height 9397477, expected to occur on November 28, 2023, at 6 AM UTC. | ||
|
||
All mainnet nodes must upgrade to this release before the hardfork. | ||
Upgrading for other networks is optional. | ||
|
||
### User Facing Changes | ||
|
||
NA | ||
|
||
### Partial Changelog | ||
|
||
- #30: feat: add opbnb mainnet Fermat fork height | ||
|
||
### Docker Images | ||
|
||
- ghcr.io/bnb-chain/op-geth:v0.2.1 | ||
|
||
### Full Changelog | ||
|
||
https://github.com/bnb-chain/op-geth/compare/v0.2.0...v0.2.1 | ||
|
||
## v0.2.0 | ||
|
||
This is a hardfork release for the opBNB Testnet called Fermat. | ||
It will be activated at block height 12113000, expected to occur on November 3, 2023, at 6 AM UTC. | ||
|
||
### User Facing Changes | ||
|
||
- Two new precompiled contracts have been introduced: blsSignatureVerify and cometBFTLightBlockValidate. The purpose of blsSignatureVerify is to verify BLS signatures in smart contracts, while cometBFTLightBlockValidate is designed to validate cometBFT light blocks. Although these contracts were primarily introduced to facilitate cross-chain communication between opBNB and Greenfield, they can also be utilized for other purposes. For instance, blsSignatureVerify can be employed to verify BLS signatures in smart contracts, and cometBFTLightBlockValidate can facilitate cross-chain communication with other blockchains based on the cosmos framework.(#7) | ||
- Enable the layer 2 sync mechanism for opBNB by using the flag `--syncmode=snap` or `--syncmode=full` to choose the sync mode. Make sure to enable the `l2.engine-sync=true` flag on the op-node. (#8) | ||
|
||
### Partial Changelog | ||
|
||
- #7: feat: add precompiled contracts for Greenfield link | ||
- #8: feat: support snap sync for OP chains | ||
- #11: fix: pass a SnapshotOption func when init a new pruner | ||
- #24: snap: fix snap-tests to handle legacy code lookups | ||
- #25: sec: update version of cometbft | ||
|
||
### Docker Images | ||
|
||
- ghcr.io/bnb-chain/op-geth:v0.2.0 | ||
|
||
### Full Changelog | ||
|
||
https://github.com/bnb-chain/op-geth/compare/v0.1.3...v0.2.0 | ||
|
||
## v0.1.3 | ||
|
||
This release adds the preDeployedContract hardfork, which changes the name and symbol of the preDeployed contract WBNB(0x4200000000000000000000000000000000000006). It also removes the preDeployed contract GovernanceToken(0x4200000000000000000000000000000000000042). | ||
|
||
### Changelog | ||
|
||
- ci: add docker release workflow to build and release docker image #3 | ||
- feat: add preDeployedContract hardfork #5 | ||
|
||
## v0.1.2 | ||
|
||
This is the initial release for opBNB Testnet. | ||
|
||
The repo base is [optimism op-geth](https://github.com/ethereum-optimism/op-geth). | ||
|
||
### Changelog | ||
|
||
1. [perf: concurrency and memory improvements for execution layer](https://github.com/bnb-chain/op-geth/commit/f80e72bcd2b00f738326e37c96ae150dbc9fa4d4) | ||
2. [perf: op-node related api improvement](https://github.com/bnb-chain/op-geth/commit/0d9dc40a39242130e71621e081640935afc23a0a) | ||
3. [feat: reannounce local pending transactions](https://github.com/bnb-chain/op-geth/pull/2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2103,6 +2103,13 @@ func TestGolangBindings(t *testing.T) { | |
if out, err := replacer.CombinedOutput(); err != nil { | ||
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out) | ||
} | ||
|
||
replacer = exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/cometbft/[email protected]", "-replace", "github.com/cometbft/cometbft=github.com/bnb-chain/[email protected]") // Repo root | ||
replacer.Dir = pkg | ||
if out, err := replacer.CombinedOutput(); err != nil { | ||
t.Fatalf("failed to replace cometbft dependency to bnb-chain source: %v\n%s", err, out) | ||
} | ||
|
||
tidier := exec.Command(gocmd, "mod", "tidy") | ||
tidier.Dir = pkg | ||
if out, err := tidier.CombinedOutput(); err != nil { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.