-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #391 from jacobkaufmann/feat-electra-block-processing
feat: electra block processing
- Loading branch information
Showing
8 changed files
with
1,144 additions
and
444 deletions.
There are no files selected for viewing
1,061 changes: 1,050 additions & 11 deletions
1,061
ethereum-consensus/src/electra/block_processing.rs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
use crate::{ | ||
deneb::polynomial_commitments::VersionedHash, electra::ExecutionPayload, | ||
execution_engine::PayloadRequest, primitives::Root, | ||
}; | ||
|
||
pub struct NewPayloadRequest< | ||
const BYTES_PER_LOGS_BLOOM: usize, | ||
const MAX_EXTRA_DATA_BYTES: usize, | ||
const MAX_BYTES_PER_TRANSACTION: usize, | ||
const MAX_TRANSACTIONS_PER_PAYLOAD: usize, | ||
const MAX_WITHDRAWALS_PER_PAYLOAD: usize, | ||
const MAX_DEPOSIT_RECEIPTS_PER_PAYLOAD: usize, | ||
const MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD: usize, | ||
> { | ||
pub execution_payload: ExecutionPayload< | ||
BYTES_PER_LOGS_BLOOM, | ||
MAX_EXTRA_DATA_BYTES, | ||
MAX_BYTES_PER_TRANSACTION, | ||
MAX_TRANSACTIONS_PER_PAYLOAD, | ||
MAX_WITHDRAWALS_PER_PAYLOAD, | ||
MAX_DEPOSIT_RECEIPTS_PER_PAYLOAD, | ||
MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD, | ||
>, | ||
pub versioned_hashes: Vec<VersionedHash>, | ||
pub parent_beacon_block_root: Root, | ||
} | ||
|
||
impl< | ||
const BYTES_PER_LOGS_BLOOM: usize, | ||
const MAX_EXTRA_DATA_BYTES: usize, | ||
const MAX_BYTES_PER_TRANSACTION: usize, | ||
const MAX_TRANSACTIONS_PER_PAYLOAD: usize, | ||
const MAX_WITHDRAWALS_PER_PAYLOAD: usize, | ||
const MAX_DEPOSIT_RECEIPTS_PER_PAYLOAD: usize, | ||
const MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD: usize, | ||
> PayloadRequest | ||
for NewPayloadRequest< | ||
BYTES_PER_LOGS_BLOOM, | ||
MAX_EXTRA_DATA_BYTES, | ||
MAX_BYTES_PER_TRANSACTION, | ||
MAX_TRANSACTIONS_PER_PAYLOAD, | ||
MAX_WITHDRAWALS_PER_PAYLOAD, | ||
MAX_DEPOSIT_RECEIPTS_PER_PAYLOAD, | ||
MAX_WITHDRAWAL_REQUESTS_PER_PAYLOAD, | ||
> | ||
{ | ||
} |
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
Oops, something went wrong.