Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(op-node): add rpcKind bsc_fullnode for eth_getTransactionReceiptsByBlockNumber #63

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

welkin22
Copy link
Contributor

Description

Add a new type of rpckind: bsc_fullnode.

This type corresponds to a new method for retrieving receipts: eth_getTransactionReceiptsByBlockNumber.

This method retrieves all receipts within a block height at once, providing high performance. However, it is limited to L1 endpoints that support the bsc fullnode interface.

Rationale

Original default method: EthGetTransactionReceiptBatch performs poorly when the L1 network is busy.

Example

Add the following parameters to op-node
--l1.rpckind=bsc_fullnode

Changes

  • Add a new type of rpckind: bsc_fullnode
  • EthGetTransactionReceiptsByBlockNumber logic in RunAltMethod function

@owen-reorg owen-reorg merged commit 8dd6577 into bnb-chain:develop Oct 10, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants