diff --git a/sim/signing/fake.go b/sim/signing/fake.go index ae7dac59..bbcb5f4b 100644 --- a/sim/signing/fake.go +++ b/sim/signing/fake.go @@ -37,6 +37,8 @@ func (s *FakeBackend) GenerateKey() (gpbft.PubKey, any) { } func (s *FakeBackend) Allow(i int) gpbft.PubKey { + s.mu.Lock() + defer s.mu.Unlock() pubKey := gpbft.PubKey(fmt.Sprintf("pubkey::%08x", i)) s.allowed[string(pubKey)] = struct{}{} return pubKey