go-pulse/accounts
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
..
abi eth/filters: avoid block body retrieval when no matching logs (#25199) 2023-02-13 10:59:27 +01:00
external all: more linters (#24783) 2022-06-13 16:24:45 +02:00
keystore all: use github.com/deckarep/golang-set/v2 (generic set) (#26159) 2022-11-14 15:16:52 +01:00
scwallet accounts/scwallet: fix keycard data signing error (#25331) 2022-10-27 10:06:28 +02:00
usbwallet accounts/usbwallet: support Ledger Nano S Plus and FTS (#25933) 2022-10-11 09:31:32 +02:00
accounts_test.go all: update author list and licenses 2019-07-22 12:17:27 +03:00
accounts.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
errors.go accounts: fix typo in comments (#24805) 2022-05-03 08:49:41 +02:00
hd_test.go accounts, signer: fix Ledger Live account derivation path (clef) (#21757) 2020-11-29 13:43:15 +01:00
hd.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
manager.go all: fix spelling mistakes (#25961) 2022-10-11 09:37:00 +02:00
sort.go accounts, console: frendly card errors, support pin unblock 2019-04-08 13:19:37 +02:00
url_test.go accounts: increase parseURL test coverage (#25033) 2022-06-07 12:46:27 +02:00
url.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00