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

Neon node mining error #5157

Closed obycode closed 3 weeks ago

obycode commented 2 months ago

I observed this situation on testnet:

So basically miner M3 is intentionally reorging block B2 -- risking its block getting reorged (which it does) just to get a couple more transactions included in the block. This is not the best default strategy and was likely a mistake in the code. It should only prefer the block with more transactions if they are at the same height.

It hits this case and does not resubmit a new block commit, though the change should likely be made inside get_mine_attempt.

https://github.com/stacks-network/stacks-core/blob/1c5315606ae0cd006b27617302223b164b6f362f/testnet/stacks-node/src/neon_node.rs#L2634-L2639

Note: this problem is not present after epoch 3.0.

blockstack-devops commented 2 weeks ago

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