-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Existing prune had some confusing logic (thanks to me). In PR, change the logic to: if receipt, or any individual log in the receipt contains an address in `noPruneContracts` the entire log must be stored and indexed. Also fixes a regression that logs were not getting indexed - this was due to ``` if l.BlockNumber < pruneBlock && cfg.noPruneContracts != nil && !cfg.noPruneContracts[l.Address] { ``` Since the individual log object didn't have the block number - something that shouldn't matter. In PR, change the logic to: Use `blockNum` from outer loop
- Loading branch information
Showing
2 changed files
with
48 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters