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: implement anvil_reorg API endpoint #453

Open
itegulov opened this issue Nov 29, 2024 · 0 comments
Open

feat: implement anvil_reorg API endpoint #453

itegulov opened this issue Nov 29, 2024 · 0 comments

Comments

@itegulov
Copy link
Contributor

itegulov commented Nov 29, 2024

A method to rollback depth blocks back and then seal depth new blocks with different transactions:

struct ReorgOptions {
    pub depth: u64,
    pub tx_block_pairs: Vec<(TransactionData, u64)>,
}

enum TransactionData {
    Json(TransactionRequest),
    Raw(Bytes),
}

#[rpc(name = "anvil_reorg")]
fn reorg(&self, options: ReorgOptions) -> RpcResult<()>;

I think there is nothing blocking here, we just need to spend some engineering time on this

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

No branches or pull requests

1 participant