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

dump support via debug_traceBlockByNumber w/ prestateTracer as another option #490

Open
github-actions bot opened this issue Sep 2, 2024 · 0 comments
Assignees
Labels
T-todo Type: todo todo

Comments

@github-actions
Copy link
Contributor

github-actions bot commented Sep 2, 2024

New Codebase TODO

dump support via debug_traceBlockByNumber w/ prestateTracer as another option

Location

// TODO: dump support via `debug_traceBlockByNumber` w/ prestateTracer as another option

    let block_count = block_range.end() - block_range.start() + 1;
    debug!("dumping storage from block range: {:?}", block_range);

    // a quick check to see if the rpc supports trace_ namespace
    // TODO: dump support via `debug_traceBlockByNumber` w/ prestateTracer as another option
    let _ = get_block_state_diff(
        (*block_range.start()).try_into().expect("block number overflow"),
        &args.rpc_url,
    )
    .await
    .map_err(|_| eyre!("failed to `trace_replayBlockTransactions`. does your rpc support it?"))?;

    // create a semaphore with the correct number of permits
    let semaphore = Arc::new(Semaphore::new(args.threads));
    let handles = block_range.map(|block_number| {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-todo Type: todo todo
Projects
None yet
Development

No branches or pull requests

1 participant