mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
M-Chain's committee is the validator set, and RunKeygen refuses a policy needing more parties than the committee has. mainnet's mchain.json asked for 7-of-10 against five genesis validators, so a custody key could never have been generated — the failure would have surfaced the first time someone tried to bridge, not at deploy. Adds the invariant as a test over every network's built genesis, and picks up luxfi/genesis v1.16.4 where the policies are sized to fit (3-of-5 on mainnet/testnet/devnet, 2-of-3 on localnet). Co-authored-by: Hanzo Dev <dev@hanzo.ai>