mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-30 01:28:21 -05:00
(fix)db commit on debug_traceCallMany (#4219)
Co-authored-by: Ubuntu <user@ubuntu.com>
This commit is contained in:
@@ -420,7 +420,9 @@ where
|
||||
&mut db,
|
||||
)?;
|
||||
|
||||
if bundles.peek().is_none() && transactions.peek().is_none() {
|
||||
// If there is more transactions, commit the database
|
||||
// If there is no transactions, but more bundles, commit to the database too
|
||||
if transactions.peek().is_some() || bundles.peek().is_some() {
|
||||
db.commit(state);
|
||||
}
|
||||
results.push(trace);
|
||||
|
||||
Reference in New Issue
Block a user