-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpcdaemon: Split BorEvent gRPC into BorEvents and BorTxnLookup (#11877)
- `BorEventResponse` was pulling double duty by being used for block number lookups as well as event lookups. - As a result, we were using `EventsByBlock` instead of `EventLookup` and interpreting the presence of the bor TX hash in `kv.BorTxLookup` by the absence of returned events. - This PR refactors the code so that remote calls to `EventLookup` use `BlockReader.EventLookup`, preventing any discrepancies between the two. - Naming has also been updated to be clearer. Depends on: erigontech/interfaces#231
- Loading branch information
Showing
9 changed files
with
524 additions
and
273 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
195 changes: 142 additions & 53 deletions
195
erigon-lib/gointerfaces/remoteproto/ethbackend_grpc.pb.go
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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