go-ethereum/accounts/abi/bind
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
..
backends eth/filters: avoid block body retrieval when no matching logs (#25199) 2023-02-13 10:59:27 +01:00
auth.go all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
backend.go accounts/abi/bind: fix bounded contracts and sim backend for 1559 (#23038) 2021-06-15 13:56:14 +03:00
base.go accounts/abi.bind: don't fetch head in transact unless required (#25988) 2022-11-04 22:03:34 +01:00
base_test.go all: add whitespace linter (#25312) 2022-07-25 13:14:03 +03:00
bind.go accounts, build, mobile: remove Andriod and iOS support 2023-02-03 12:29:07 +02:00
bind_test.go accounts, build, mobile: remove Andriod and iOS support 2023-02-03 12:29:07 +02:00
template.go accounts, build, mobile: remove Andriod and iOS support 2023-02-03 12:29:07 +02:00
util.go accounts/abi/bind: improve WaitMined error handling (#24321) 2022-02-01 16:42:51 +01:00
util_test.go accounts/abi/bind: fix bounded contracts and sim backend for 1559 (#23038) 2021-06-15 13:56:14 +03:00