Skip to content
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
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
131 changes: 93 additions & 38 deletions based/Cargo.lock

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

24 changes: 14 additions & 10 deletions based/crates/common/src/p2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ pub type ExtraData = VariableList<u8, MaxExtraDataSize>;
#[derive(Debug, Clone, PartialEq, Eq, TreeHash, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct EnvV0 {
number: u64,
parent_hash: B256,
beneficiary: Address,
timestamp: u64,
gas_limit: u64,
basefee: u64,
difficulty: U256,
prevrandao: B256,
pub number: u64,
pub parent_hash: B256,
pub beneficiary: Address,
pub timestamp: u64,
pub gas_limit: u64,
pub basefee: u64,
pub difficulty: U256,
pub prevrandao: B256,
#[serde(with = "ssz_types::serde_utils::hex_var_list")]
extra_data: ExtraData,
parent_beacon_block_root: B256,
pub extra_data: ExtraData,
pub parent_beacon_block_root: B256,
}

impl EnvV0 {
Expand Down Expand Up @@ -81,6 +81,10 @@ impl FragV0 {
let txs = builder_txs.map(|tx| tx.encode().to_vec()).map(Transaction::from).collect::<Vec<_>>();
Self { block_number, seq, txs: Transactions::from(txs), is_last, blob_gas_used }
}

pub fn is_first(&self) -> bool {
self.seq == 0
}
}

/// A message sealing a sequence of frags, with fields from the block header
Expand Down
20 changes: 20 additions & 0 deletions based/crates/reth/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "reth"
edition.workspace = true
repository.workspace = true
rust-version.workspace = true
version.workspace = true

[dependencies]
alloy-network.workspace = true
alloy-primitives.workspace = true
alloy-rpc-types.workspace = true
tracing.workspace = true
bop-common.workspace = true
op-alloy-rpc-types.workspace = true
alloy-consensus.workspace = true
alloy-eips.workspace = true
thiserror.workspace = true
tokio.workspace = true
anyhow = "1.0.98"

Loading
Loading