Skip to content

Commit f25d209

Browse files
authored
Merge pull request #1890 from carver/re-raise-missing-data-exc
Bugfix: don't resume apply_all_transactions if EVM is missing data
2 parents 193b588 + 53accba commit f25d209

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

eth/vm/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ def apply_all_transactions(
231231
)
232232
except EVMMissingData as exc:
233233
self.state.revert(snapshot)
234+
raise
234235

235236
result_header = self.add_receipt_to_header(previous_header, receipt)
236237
previous_header = result_header

newsfragments/1889.bugfix.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Bug: if data was missing during a call to :meth:`~eth.vm.base.VM.apply_all_transactions`,
2+
then the call would revert and continue processing transactions. Fix: we re-raise
3+
the :class:`~eth.exceptions.EVMMissingData` and do not continue processing transactions.

0 commit comments

Comments
 (0)