The bug it guardsOne insolvent and one solvent vault used to flip the chain.A insolvent → HALTB solvent → openA insolvent → HALTB solvent → openfix already on develop (86fad7343d); this MR adds the test only
The rule on developInsolvent sets halt = block; solvent unhalts only older halts.halt ≥ block or halt == 1 → returninsolvent: halt = blocksolvent: halt = 0handler_solvency_helpers.go L254-295
Test setupTwo 1000 ETH vaults, 4 nodes; two signers reach consensus.vault1 = Avault2 = Bwallet 100 → insolventwallet 1000 → solvent2 of 4 signers
Same block holdsA refreshes halt to 101, so B can't unhalt in 101.100: A → 100101: A → 101101: B → 101
Solvent first unhaltsIn block 102 B unhalts before A re-halts; test calls it correct.102: B → 0 (open)102: A → 102across blocks only bifrost's all-solvent rule stops this
Steady state, then recoveryThree blocks stay halted; A's solvent report unhalts at 106.103104105106 open
Manual halt staysHalt value 1 is neither overwritten nor lifted for two blocks.insolvent keeps 1solvent keeps 1fails only if both the == 1 and > 1 guards go
What the test catchesCatches refresh and same-block mutants; three single-guard mutants survive.drop refresh → fails L420>= → > → fails L428drop both manual guards → fails L491survive: drop > 1 only · drop == 1 only · >= → ==