-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add genesis, system contracts and bin for bsc (#2)
- Loading branch information
1 parent
fede7b9
commit e771b4f
Showing
128 changed files
with
2,462 additions
and
233 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#![allow(missing_docs)] | ||
|
||
// We use jemalloc for performance reasons. | ||
#[cfg(all(feature = "jemalloc", unix))] | ||
#[global_allocator] | ||
static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc; | ||
|
||
#[cfg(all(feature = "optimism", not(test)))] | ||
compile_error!("Cannot build the `reth` binary with the `optimism` feature flag enabled. Did you mean to build `op-reth`?"); | ||
|
||
#[cfg(feature = "bsc")] | ||
fn main() { | ||
use reth::cli::Cli; | ||
use reth_node_bsc::BscNode; | ||
|
||
reth::sigsegv_handler::install(); | ||
|
||
// Enable backtraces unless a RUST_BACKTRACE value has already been explicitly provided. | ||
if std::env::var_os("RUST_BACKTRACE").is_none() { | ||
std::env::set_var("RUST_BACKTRACE", "1"); | ||
} | ||
|
||
if let Err(err) = Cli::parse_args().run(|builder, _| async { | ||
let handle = builder.launch_node(BscNode::default()).await?; | ||
handle.node_exit_future.await | ||
}) { | ||
eprintln!("Error: {err:?}"); | ||
std::process::exit(1); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
//! BSC EVM support | ||
|
||
#[doc(inline)] | ||
pub use reth_evm_ethereum::execute::EthExecutorProvider; // TODO: bsc executor provider | ||
#[doc(inline)] | ||
pub use reth_evm_ethereum::EthEvmConfig; // TODO: bsc evm config |
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 @@ | ||
//! Standalone crate for ethereum-specific Reth configuration and builder types. | ||
|
||
#![doc( | ||
html_logo_url = "https://raw.githubusercontent.com/paradigmxyz/reth/main/assets/reth-docs.png", | ||
html_favicon_url = "https://avatars0.githubusercontent.com/u/97369466?s=256", | ||
issue_tracker_base_url = "https://github.com/paradigmxyz/reth/issues/" | ||
)] | ||
#![cfg_attr(not(test), warn(unused_crate_dependencies))] | ||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))] | ||
|
||
pub use reth_ethereum_engine_primitives::EthEngineTypes; | ||
|
||
pub mod evm; | ||
pub use evm::{EthEvmConfig, EthExecutorProvider}; | ||
|
||
pub mod node; | ||
pub use node::BscNode; |
Oops, something went wrong.