mirror of
https://github.com/luxfi/chains.git
synced 2026-09-24 00:26:00 +00:00
I-Chain accepted credentials and never built a block from them. WaitForEvent answered with <-ctx.Done(), which never returns, so BuildBlock was never called and the chain could not leave genesis however many credentials were issued. IssueCredential now signals, and WaitForEvent is the shared latch. BuildBlock also built a block whatever was pending, including nothing. An empty block says nothing and still has to be voted on, and every other chain here refuses one, so it refuses too. Three tests built a block off an empty VM as setup rather than as a claim about empty blocks; they now issue a credential first, which exercises more than they did before. The liveness test fails without the signal, waiting its full timeout for a wake that never comes. Co-authored-by: Hanzo Dev <[email protected]>