Add TestSmokeRPCCompatibilities for RPC compatibility smoke test #298
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Addresses https://github.com/celo-org/celo-blockchain-planning/issues/522
This PR adds smoke test for RPC compatibilities (Block, Transaction, Block Receipt, and Transaction Receipt).
Test retrieves these kinds of data at height 0, the last height of the L1 chain, and heights iterated every 1M blocks.
How to test
Make sure you have WebSocket RPC URLs of L1 and L2 full node.
Please note that TxLookUp must be enabled for all transactions in the nodes.
Optionally
--block-interval
and--random-block
can be given:block-interval
: Number of blocks to skip between each test iteration. For instance, if set to 1,000,000, the test will be executed every 1 million blocks.random-block
: Enables a random block height within a specified range to be selected for each test iteration