op-geth/internal
Sina Mahmoodi 2def62b99b
eth/filters: avoid block body retrieval when no matching logs (#25199)
Logs stored on disk have minimal information. Contextual information such as block
number, index of log in block, index of transaction in block are filled in upon request.
We can fill in all these fields only having the block header and list of receipts.
But determining the transaction hash of a log requires the block body.

The goal of this PR is postponing this retrieval until we are sure we the transaction hash.
It happens often that the header bloom filter signals there might be matches in a block,
but after actually checking them reveals the logs do not match. We want to avoid fetching
the body in this case.

Note that this changes the semantics of Backend.GetLogs. Downstream callers of
GetLogs now assume log context fields have not been derived, and need to call
DeriveFields on the logs if necessary.
2023-02-13 10:59:27 +01:00
..
build build: add static linking support (#25492) 2022-08-10 10:30:59 +02:00
cmdtest build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
debug internal/debug: add --log.file option (#26149) 2022-11-11 11:33:18 +01:00
ethapi eth/filters: avoid block body retrieval when no matching logs (#25199) 2023-02-13 10:59:27 +01:00
flags Use filepath.clean instead of path.clean (#26404) 2023-01-13 09:48:42 -05:00
guide rpc, internal/guide: speed up tests a bit (#26193) 2022-11-17 15:30:53 +01:00
jsre console, internal/jsre: fix autocomplete issues (#26518) 2023-01-19 19:43:29 +01:00
shutdowncheck eth, les: update unclean shutdown markers regularly (#24077) 2021-12-17 15:18:51 +01:00
syncx core: improve shutdown synchronization in BlockChain (#22853) 2021-10-07 15:47:50 +02:00
testlog internal/testlog: print file+line number of log call in test log (#20528) 2020-01-08 17:11:51 +02:00
utesting all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
version all: fix spelling mistakes (#25961) 2022-10-11 09:37:00 +02:00
web3ext core,eth: add `debug_setTrieFlushInterval` to change trie flush frequency (#24785) 2022-12-09 07:40:17 -05:00