stacks-network / stacks-core

The Stacks blockchain implementation
https://docs.stacks.co
GNU General Public License v3.0
3.01k stars 671 forks source link

feat: refresh sortition view when proposed block has mismatch #5266

Closed hstove closed 1 month ago

hstove commented 1 month ago

Adds a new parameter to check_proposal called reset_view_if_wrong_consensus_hash. Inside check_proposal, if the block's consensus hash doesn't match the signer's sortition view, the chainstate is first refreshed, and then check_proposal is called one more time.

hstove commented 1 month ago

@kantai mind giving this a look over to see if this approach is roughly what you were thinking?

blockstack-devops commented 3 weeks ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.