mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 17:18:08 -05:00
docs: add additional documentation to TxType (#3996)
This commit is contained in:
@@ -17,6 +17,12 @@ pub const EIP1559_TX_TYPE_ID: u8 = 2;
|
||||
pub(crate) const EIP4844_TX_TYPE_ID: u8 = 3;
|
||||
|
||||
/// Transaction Type
|
||||
///
|
||||
/// Currently being used as 2-bit type when encoding it to [`Compact`] on
|
||||
/// [`crate::TransactionSignedNoHash`]. Adding more transaction types will break the codec and
|
||||
/// database format.
|
||||
///
|
||||
/// Other required changes when adding a new type can be seen on [PR#3953](https://github.com/paradigmxyz/reth/pull/3953/files).
|
||||
#[derive_arbitrary(compact)]
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Default, Serialize, Deserialize)]
|
||||
pub enum TxType {
|
||||
|
||||
Reference in New Issue
Block a user