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

Add feature to eosio-blocklog have option to print the blocks.log and ship version #774

Open
matthewdarwin opened this issue Jul 21, 2022 · 6 comments

Comments

@matthewdarwin
Copy link

Add a new feature eosio-blocklog have option to print the blocks.log and ship version.

For the upgrade guide, we want to be able to tell users when they can use the 2.0 blocks / ship and when they can't. We could just say if you're running 2.1 then throw them out and start over, but that's throwing things out that can possibly be used in mandel 3.1

The format of blocks.log and ship is dependent on the version where you created the files, not the last version using them. This makes it difficult to tell what is the current state as you don't remember what you did X time in the past when you did the upgrade to 2.1.

@matthewdarwin
Copy link
Author

If the blocks.log starts with 0002 or 0003 , then it is ok. starting with 0004 is error.

Ship is different where it can start with 2.0 data and then change to 2.1 format later in the file.

@spoonincode
Copy link
Member

If the blocks.log starts with 0002 or 0003 , then it is ok

fwiw blocks.log created with early eosio versions will have 0001. Really anything other than 0004 is okay for now.

@matthewdarwin
Copy link
Author

For better or worse, the draft documentation for 3.1 suggests to use hexdump. This seems reasonable for 3.1.

This feature can be future release.

@stephenpdeos
Copy link
Member

We won't be adding eosio-blocklog but instead the future work targeted for eosio util. Blocked until #765 is complete

@ericpassmore ericpassmore transferred this issue from eosnetworkfoundation/mandel Aug 6, 2022
@ericpassmore ericpassmore transferred this issue from another repository Aug 6, 2022
@matthewdarwin
Copy link
Author

This feature seems already implemented in leap-util.

@heifner
Copy link
Member

heifner commented Nov 14, 2023

Part of leap-util smoke-test of block-log:
./leap-util block-log smoke-test --blocks-dir dd/blocks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Blocked
Development

No branches or pull requests

4 participants