-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Controlc/block api #461
Controlc/block api #461
Conversation
We should have a config option for the node to disable this behavior in production. Otherwise strange things could happen. |
Oh true, wasn't sure how exactly best to do this. Should this endpoint be specifically addressed (ie config option like |
Co-authored-by: Elvis <elvisdedic@outlook.com>
@Voxelot I've updated this to require a config option to enabled (which is disabled by default) for this endpoint to work, and added a negative test to ensure it's off by default |
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.
vgud! ty for being so quick! Just some questions about naming :)
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.
One nit left, otherwise LGTM :)
This PR adds a simple
advance_block
endpoint, which takes in an option of the amount to advance forward the block-height by (defaulting to 1 if nothing is supplied). I then inserts n emptyFuelBlocks
, and returns the new block-height. I was hoping to confirm this was inline with what you were looking for @vnepveu ?Closes #455