-
Notifications
You must be signed in to change notification settings - Fork 20
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
Conversation
@@ -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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
crates/bsc/consensus/src/abi.rs
Outdated
@@ -4494,6 +4507,19 @@ lazy_static! { | |||
], | |||
"stateMutability": "view" | |||
}, | |||
{ |
There was a problem hiding this comment.
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
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:
Potential Impacts
n/a