REPLICA · NOT AN EMPLOYER REPO
State-machine simulator
A small state machine with an honest path and one adversarial case. Tests start red. Edit the service, then run. The preview calls that same process. No wallet, no chain, no employer exam.
BCL-307 · consensus-sim · local replica
Finalize the honest node and fault the adversary. diverged() is true only when those two states disagree.
FAIL the two states diverge1 failed · 3 passed
Where to look
Return true from diverged() only when honest is final and adversary is fault. state().diverged must match.
Client of your service. Same process as the tests.
Honestidle
Adversaryidle
Not diverged. One path is not a fork.
$ npm test · consensus-sim
- PASShonest path finalizes
- PASSadversary equivocates
- FAILthe two states divergediverged() is still false after a final honest node and a faulted adversary
- PASSone path alone does not diverge
Seats that use this task
- Core Protocol Engineer
Ritual
- Distributed Systems Engineer
Ritual
- Validator Engineer
Ritual
- Software Engineer, Blockchain Platform Nodes
Coinbase
- Staff Software Engineer: Perpetuals
Consensys
- Protocol Engineer
LayerZero Labs
- Crypto Production Engineer
Jump Crypto
- Senior Backend Engineer, Nitro
Offchain Labs
- Quant Developer
Gauntlet
