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 a goal ledger command to dump a block or range of blocks #92

Open
algoradam opened this issue Jun 25, 2019 · 2 comments

Comments

@algoradam
Copy link
Contributor

commented Jun 25, 2019

Right now there's no convenient way to dump and examine a raw block. It'd be nice if there were a command like goal ledger dumpblock 400 to dump block 400 as base64 encoded msgpack to stdout. Perhaps it could have a --json flag to translate it to json, msgpacktool-style.

This would be useful for debugging (what's going on in this block header?) and also just a fun way to see what's going on in the blocks.

@Vervious

This comment has been minimized.

Copy link
Member

commented Jul 13, 2019

What's the rationale for keeping it encoded as canonical msgpack?

@tsachiherman

This comment has been minimized.

Copy link
Contributor

commented Jul 15, 2019

What's the rationale for keeping it encoded as canonical msgpack?

You mean in the sqlite database ? We keep it encoded so that it would be faster when requested by the catchup. That should also align with the way that we received the block from the network.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.