Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
134 changes: 0 additions & 134 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,6 @@ client = [
"reth-rpc-eth-api/client",
]

[dev-dependencies]
# E2E test-suite support
reth-e2e-test-utils = { git = "https://github.com/clydemeng/reth.git", branch = "6487f0b-bsc-patch" }
# (all other reth crates are pulled in automatically via workspace deps)

# For unit tests
uuid = { version = "1.0", features = ["v4"] }


[profile.release]
opt-level = 3
lto = "thin"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This is a **Work in Progress** project that requires community contributions to

### Sync Status (as of August 5, 2025)

- **BSC Mainnet**: Synced to block 42,159,275 and still syncing 🔄 (11TB disk usage)
- **BSC Mainnet**: Synced to block 47,000,000 and still syncing 🔄 (7.7TB disk usage)
- **BSC Testnet**: Synced to the tip ✅ (780GB disk usage)

## Getting Started
Expand Down
19 changes: 0 additions & 19 deletions src/chainspec/bsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ use alloy_primitives::{BlockHash, U256};
use reth_chainspec::{
make_genesis_header, BaseFeeParams, BaseFeeParamsKind, Chain, ChainSpec, Head, NamedChain,
};
use alloy_eips::{eip7840::BlobParams, eip7892::BlobScheduleBlobParams};
use alloy_eips::eip4844::BLOB_TX_MIN_BLOB_GASPRICE;
use reth_primitives::SealedHeader;
use std::str::FromStr;

Expand All @@ -21,23 +19,6 @@ pub fn bsc_mainnet() -> ChainSpec {
hardforks: BscHardfork::bsc_mainnet(),
deposit_contract: None,
base_fee_params: BaseFeeParamsKind::Constant(BaseFeeParams::new(1, 1)),
blob_params: BlobScheduleBlobParams {
cancun: BlobParams {
target_blob_count: 3,
max_blob_count: 6,
update_fraction: 3_338_477,
min_blob_fee: BLOB_TX_MIN_BLOB_GASPRICE,
max_blobs_per_tx: 6,
},
prague: BlobParams {
target_blob_count: 3, // BSC keeps same values in Prague
max_blob_count: 6,
update_fraction: 3_338_477,
min_blob_fee: BLOB_TX_MIN_BLOB_GASPRICE,
max_blobs_per_tx: 6,
},
..Default::default()
},
prune_delete_limit: 3500,
genesis_header: SealedHeader::new(
make_genesis_header(&genesis, &hardforks),
Expand Down
19 changes: 0 additions & 19 deletions src/chainspec/bsc_chapel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ use alloy_primitives::{BlockHash, B256, U256};
use reth_chainspec::{
make_genesis_header, BaseFeeParams, BaseFeeParamsKind, Chain, ChainSpec, Head, NamedChain,
};
use alloy_eips::{eip7840::BlobParams, eip7892::BlobScheduleBlobParams};
use alloy_eips::eip4844::BLOB_TX_MIN_BLOB_GASPRICE;
use reth_primitives::SealedHeader;
use std::str::FromStr;

Expand All @@ -21,23 +19,6 @@ pub fn bsc_testnet() -> ChainSpec {
hardforks: BscHardfork::bsc_testnet(),
deposit_contract: None,
base_fee_params: BaseFeeParamsKind::Constant(BaseFeeParams::new(1, 1)),
blob_params: BlobScheduleBlobParams {
cancun: BlobParams {
target_blob_count: 3,
max_blob_count: 6,
update_fraction: 3_338_477,
min_blob_fee: BLOB_TX_MIN_BLOB_GASPRICE,
max_blobs_per_tx: 6,
},
prague: BlobParams {
target_blob_count: 3, // BSC testnet keeps same values as mainnet
max_blob_count: 6,
update_fraction: 3_338_477,
min_blob_fee: BLOB_TX_MIN_BLOB_GASPRICE,
max_blobs_per_tx: 6,
},
..Default::default()
},
prune_delete_limit: 3500,
genesis_header: SealedHeader::new(
make_genesis_header(&genesis, &hardforks),
Expand Down
3 changes: 2 additions & 1 deletion src/evm/precompiles/double_sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ fn double_sign_evidence_validation_run(input: &[u8], gas_limit: u64) -> Precompi
return Err(BscPrecompileError::DoubleSignInvalidEvidence.into());
}

if header1.extra.len() < EXTRA_SEAL_LENGTH || header1.extra.len() < EXTRA_SEAL_LENGTH {

if header1.extra.len() < EXTRA_SEAL_LENGTH || header2.extra.len() < EXTRA_SEAL_LENGTH {
return Err(BscPrecompileError::DoubleSignInvalidEvidence.into());
}

Expand Down
4 changes: 2 additions & 2 deletions src/evm/precompiles/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ pub enum BscPrecompileError {
CometBftApplyBlockFailed,
/// The cometbft consensus state encoding failed.
CometBftEncodeConsensusStateFailed,
/// The double sign invalid evidence.
DoubleSignInvalidEvidence,
/// The double sign invalid evidence.
DoubleSignInvalidEvidence,
}

impl From<BscPrecompileError> for PrecompileError {
Expand Down