mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
The node v1.34.12 canary crash-looped: panic: threshold: scheme BLS already registered Double registration: consensus quasar.go still blank-imported the OLD github.com/luxfi/crypto/threshold/bls (whose init() registers BLS), while node's warp/signature.go imports the NEW github.com/luxfi/threshold/scheme/bls (also registers BLS). Both in one binary -> RegisterScheme panics. The BLS Scheme impl moved crypto/threshold/bls -> luxfi/threshold/scheme/bls in the threshold consolidation; every OTHER consumer repointed, but this one blank import in quasar.go was missed and shipped through v1.35.22. Repoint it. Verified: crypto/threshold/bls leaves the quasar+engine dep closure entirely (go list -deps: 0), only threshold/scheme/bls remains (1) — one registration path, no panic. Builds against crypto v1.19.26's interface (the BLS interface never moved; only the impl did). Co-authored-by: Hanzo Dev <[email protected]>