Skip to content

Conversation

@evan-forbes
Copy link
Member

adds the ability to halt via rpc

the endpoints are only added if the config is set to true

this is insanely useful if there ever is a bug in catchup and we need to replicate the issue.

Copy link
Member

@rach-id rach-id left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useful functionality, we just need to be very careful not to mess mutexes in the way or panic in edge cases when handling channels

// Debug halt: wait for unlock signal before saving block.
// This allows forcing the node into catchup mode for debugging.
// Message processing continues while waiting because locks are released.
cs.waitForDebugUnlock()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be more comfortable with this change if we check whether the unsafe flag is set before we call this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

3 participants