Skip to content
This repository was archived by the owner on Apr 11, 2021. It is now read-only.

rpc: debug_ingestTransactions #198

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

tynes
Copy link
Collaborator

@tynes tynes commented Jan 21, 2021

Description

Adds a new rpc endpoint debug_ingestTransactions that takes a list of JSON RPC Transactions and applies them to the state. This will enable the creation of a deterministic state in geth via RPC. The debug RPC namespace must not be made public. Data to ingest can be collected by using eth_getBlockByNumber with the second param set to true so that it returns the full JSON of a tx. It is expected that JSON with the same keys is sent. Note that the same chainid settings must be configured locally as the remote node, which makes this unsafe when it comes to replay protection. If you ingest mainnet in this way, do not send transactions against it that you would not want to be replayed.

Contributing Agreement

@tynes tynes requested a review from karlfloersch January 21, 2021 23:58
@tynes tynes force-pushed the feat/debug_ingestTransactions branch from b07f4bd to 109dbb6 Compare February 28, 2021 22:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant