• Joshua Gutow's avatar
    op-node: Simplify Receipts Fetching API (#3639) · c3afadb1
    Joshua Gutow authored
    * op-node: Simplify Receipts Fetching API
    
    The previous API would return a receipts fetcher that the caller
    was responsible for iterating through and then calling `Result` on.
    This moves this inside the `Fetch` function. This simplifies usage
    of the API and does not result in performance regression because
    the receipts hash check requires all receipts to be fetched before
    
    * Cache receipts fetcher rather than receipts
    
    This modifies the refactor to be equivalent to the previous code.
    Caching the receipts fetcher is actually critical for performance
    because the fetcher caches intermediate results. The fetcher typically
    makes lots of calls to fetch all the receipts so if all work is thrown
    out on a single failure it will be very hard for the node to make progress.
    
    * Rename Fetch -> FetchReceipts
    c3afadb1
Name
Last commit
Last update
..
backoff Loading commit data...
client Loading commit data...
cmd Loading commit data...
eth Loading commit data...
flags Loading commit data...
heartbeat Loading commit data...
metrics Loading commit data...
node Loading commit data...
p2p Loading commit data...
rollup Loading commit data...
sources Loading commit data...
testlog Loading commit data...
testutils Loading commit data...
version Loading commit data...
withdrawals Loading commit data...
.gitignore Loading commit data...
Dockerfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
docker.go.work Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...
service.go Loading commit data...