stacks-network / stacks-network/stacks-core
When a new burn block is mined; fast blocks should stop progressing (Integration)
Open
3.0-Testing
- Dominant language
- Rust
- Stars
- 3.1k
- Forks
- 762
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 76
Description
To check:
- tenure height updated + 1
- next_block_consensus_hash != current_block_consensus_hash
- submit burn block -> imediately submit a tx, then wait 5 secs, then new tx.
- check /v2/info / or most recently process blocks.
- good cases:
- 1 old consensus hash and 1 new consensus hash
- both 2 new consensus hash
- bad cases:
- both 2 old consensus hash
TODO: Integration tests that should try the above cases
Look into: multi-miner integration tests
Stall nakamoto-runloop:
- Test 1
- Miner A and B -> when Miner A won the right to mine the tenure
- call miner B runloop to stall
- 80% signers look into miner B -> all signers don't see the update
- Miner A will try to mine blocks but will not be able because the signers don't see them
- => miner and signers don't update block
- Test 2:
- Miner A and B -> when Miner A won the right to mine the tenure
- call miner B runloop to stall
- All signers look into miner A -> all signers see the update
- => only miner B doesn't update blocks, the signers and miner A update
- unfreeze miner B and see if he catches back with the miner A progress
- inventory sync - when will it try to re-sync
- can survive a restart and continue mining?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.