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

traceReplayBlockTransactions does not work at block 0 #17

Closed
ankitchiplunkar opened this issue Jun 4, 2018 · 1 comment
Closed

traceReplayBlockTransactions does not work at block 0 #17

ankitchiplunkar opened this issue Jun 4, 2018 · 1 comment
Milestone

Comments

@ankitchiplunkar
Copy link
Contributor

Describe the bug
traceReplayBlockTransactions does not work at block 0. This is due to an error in Parity openethereum/parity-ethereum#8762

To Reproduce
With an archive parity node run the command

ether_sql --settings=PersonalParitySettings scrape_block --block_number=0

See error

Traceback (most recent call last):
  File "/home/ankit/ether_sql/venv/bin/ether_sql", line 11, in <module>
    load_entry_point('ether-sql', 'console_scripts', 'ether_sql')()
  File "/home/ankit/ether_sql/venv/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/ankit/ether_sql/venv/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/ankit/ether_sql/venv/lib/python3.6/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/ankit/ether_sql/venv/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/ankit/ether_sql/venv/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/ankit/ether_sql/venv/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/ankit/ether_sql/ether_sql/cli/__init__.py", line 69, in scrape_block_range
    end_block_number=end_block_number)
  File "/home/ankit/ether_sql/ether_sql/scrapper.py", line 34, in scrape_blocks
    ether_sql_session=ether_sql_session)
  File "/home/ankit/ether_sql/ether_sql/scrapper.py", line 64, in add_block_number
    mode=['trace'])
  File "/home/ankit/ether_sql/venv/src/web3/web3/parity.py", line 40, in traceReplayBlockTransactions
    [block_identifier, mode]
  File "/home/ankit/ether_sql/venv/src/web3/web3/manager.py", line 110, in request_blocking
    raise ValueError(response["error"])
ValueError: {'code': -32000, 'message': 'This request is not supported because your node is running with state pruning. Run with --pruning=archive.'}

Expected behavior
Either the parity needs to be able to run the above command at block 0 or ether_sql needs to skip trace and stateDiff calculation at block 0

Desktop (please complete the following information):

  • OS: Ubuntu 18.4
  • Version 0.1.0
@ankitchiplunkar ankitchiplunkar added this to the 0.1.0 milestone Jun 6, 2018
@ankitchiplunkar
Copy link
Contributor Author

Pull request to correct this issue has been merged into the parity node.
openethereum/parity-ethereum#8891

Should update the current code when this issue gets released with a stable release

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