fix: add test for truncating parked with large transactions (#6366)

This commit is contained in:
Dan Cline
2024-02-02 20:39:38 -05:00
committed by GitHub
parent d4dffa2ee4
commit 72b7caa4c4
6 changed files with 200 additions and 29 deletions

View File

@ -500,7 +500,7 @@ impl Transaction {
/// Calculates a heuristic for the in-memory size of the [Transaction].
#[inline]
fn size(&self) -> usize {
pub fn size(&self) -> usize {
match self {
Transaction::Legacy(tx) => tx.size(),
Transaction::Eip2930(tx) => tx.size(),