py-evm
py-evm copied to clipboard
Journal / JournalDB could use a refactor
This came during in a review of a PR which touched this file. The current implementation duplicates some logic which could probably be pulled out into a helper function. The duplication caused a bug in JournalDB.diff().
A different abstraction also might make this code simpler to understand.