-
Notifications
You must be signed in to change notification settings - Fork 10
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
Create blockchain management command #463
Comments
@dmugtasimov |
@olegtropinin thank you, merged. I may add some improvements now |
@olegtropinin I decided to rename the command |
@olegtropinin made many changes. let's discuss them tomorrow: #482 I looks like only implementation of get-blockchain-state for remote blockchain is left to do |
TODO:
Command nameblockchain
Subcommandsget-block
(print block JSON by block number),get-blocks
(print range of block JSONs by block numbers),get-blockchain-state
(print by block number) (use subparsers)--api <network-address>
option (use APIBlockchain in that case) -> submit in the second PR, so we can get locally operating management command earlierdef yield_blocks_slice(self, from_block_number: int, to_block_number: int):
for bothget-block
andget-blocks
in API mode to save development time (put corresponding TODO to refactor it later)The text was updated successfully, but these errors were encountered: