reth::transaction_pool::validate

Constant TX_SLOT_BYTE_SIZE

pub const TX_SLOT_BYTE_SIZE: usize = _; // 32_768usize
Expand description

TX_SLOT_BYTE_SIZE is used to calculate how many data slots a single transaction takes up based on its byte size. The slots are used as DoS protection, ensuring that validating a new transaction remains a constant operation (in reality O(maxslots), where max slots are 4 currently).