-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: op-node related api improvement
This PR is mainly aimed at optimizing the API of the op-node block issuing process to op-geth, mainly divided into two parts: 1. Improvement of prepareWork: - Added block and receipt cache after block import - Improved the getBlockByHash api to reduce repetitive loops 2. Improvement of newPayload: - The state was saved in advance after sealingBlock. When op-node confirmed the block, the efficiency of writing the block was improved. In summary, this PR optimizes the API interaction between op-node and op-geth in the block issuance process, mainly including: 1. Caching blocks and receipts after importing blocks to avoid repetitive queries 2. Optimizing the getBlockByHash API to reduce repetitive loops 3. Saving the state in advance after sealing the block so that the efficiency of writing the block can be improved after op-node confirms the block. --------- Co-authored-by: j75689 <[email protected]>
- Loading branch information
Showing
6 changed files
with
226 additions
and
97 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
Oops, something went wrong.