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

[testing] Force a stacks fork with two competing miners. #4975

Open
Tracked by #4973
jferrant opened this issue Jul 17, 2024 · 0 comments
Open
Tracked by #4973

[testing] Force a stacks fork with two competing miners. #4975

jferrant opened this issue Jul 17, 2024 · 0 comments

Comments

@jferrant
Copy link
Collaborator

jferrant commented Jul 17, 2024

Force a signer to sign a block A. Before the signed block A is mined. Have a competing miner which won its tenure propose a block B. What should the correct behaviour be? I think you need to ensure that signers maintain a canonical chain by signing only blocks that build on the previously signed last block, but in the case of two proposed blocks that have not technically been mined yet...this would induce a fork. not sure what the next block signed should be...I assume miner 2 will then propose another block Block C and it will be build off their own block B. But what if it handed off to a third miner before this happened ...that miner could choose to build off of either block, no? I think actually he should build off of block A...but I am not 100% sure. Will both blocks be appended? I think @kantai might need to answer this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Status: 💻 In Progress
Development

No branches or pull requests

3 participants