Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement the Bohr upgrade of BSC #86

Merged
merged 29 commits into from
Aug 5, 2024

Conversation

yutianwu
Copy link
Contributor

Description

This pr will implement the below beps of BSC and introduce the Bohr upgrade:

bnb-chain/BEPs#341
bnb-chain/BEPs#402
bnb-chain/BEPs#404

You can refer to the PRs of BSC:

bnb-chain/bsc#2482
bnb-chain/bsc#2502
bnb-chain/bsc#2558

Rationale

Implement the BEPs of BSC

Example

n/a

Changes

Notable changes:

  • implement the Bohr upgrade of BSC

Potential Impacts

n/a

@@ -8,6 +8,8 @@ use std::collections::{BTreeMap, HashMap};

/// Number of blocks after which to save the snapshot to the database
pub const CHECKPOINT_INTERVAL: u64 = 1024;
/// Default turn length before Bohr upgrade
pub const DEFAULT_TURN_LENGTH: u8 = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There're 2 DEFAULT_TURN_LENGTH definition

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are not the same, one is the size of the variable, one is the default value of turn_length

@@ -4494,6 +4507,19 @@ lazy_static! {
],
"stateMutability": "view"
},
{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no getTurnLength for STAKE_HUB_ABI

@unclezoro unclezoro added this pull request to the merge queue Aug 5, 2024
Merged via the queue into bnb-chain:develop with commit ad739f7 Aug 5, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants