-
Notifications
You must be signed in to change notification settings - Fork 668
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
Feat/shadow block tooling #5362
base: fix/5285
Are you sure you want to change the base?
Conversation
@@ -1166,6 +1191,162 @@ simulating a miner. | |||
println!("{:?}", inv); | |||
} | |||
|
|||
if argv[1] == "get-nakamoto-tip" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move these code blocks into another module, like src/shadow_blocks.rs
or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I can add unit tests that way as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
…so we can use them for testing
Co-authored-by: Brice Dobry <[email protected]>
…-network/stacks-blockchain into feat/shadow-block-tooling
…hadow tenure entry
This adds tooling to
stacks-inspect
to generate and insert shadow blocks into a production chainstate.It'll probably get more commits as we test it out, but it's opened here for review so we can start making images off of it and testing it out on Nakamoto testnet.