Skip to content

Commit

Permalink
fix: correct eip2718 network encoding behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed Dec 26, 2023
1 parent ee68856 commit 1a240d0
Show file tree
Hide file tree
Showing 7 changed files with 424 additions and 36 deletions.
19 changes: 18 additions & 1 deletion crates/consensus/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
# alloy-consensus

Consensus logic for the Ethereum blockchain.
Consensus types for the Ethereum blockchain.

This crate contains constants, types, and functions for implementing Ethereum
EL consensus and communication. This includes headers, blocks, transactions,
eip2718 envelopes, eip2930, eip4844, and more. The types in this crate
implement many of the traits found in [alloy_network].

In general a type belongs in this crate if it is committed to in the EL block
header. This includes:

- transactions
- blocks
- headers
- receipts
- [EIP-2718] envelopes.

[alloy-network]: ../network
[EIP-2718]: https://eips.ethereum.org/EIPS/eip-2718

## Provenance

Much of this code was ported from [reth-primitives] as part of ongoing alloy
migrations.

[reth-primitives]: https://github.com/paradigmxyz/reth/tree/main/crates/primitives
1 change: 1 addition & 0 deletions crates/consensus/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ mod pure;
pub use pure::{calc_blob_gasprice, calc_excess_blob_gas, calc_next_block_base_fee};

mod receipt;
pub use receipt::{Receipt, ReceiptEnvelope, ReceiptWithBloom};

mod transaction;
pub use transaction::{
Expand Down
13 changes: 0 additions & 13 deletions crates/consensus/src/receipt.rs

This file was deleted.

Loading

0 comments on commit 1a240d0

Please sign in to comment.