diff options
Diffstat (limited to 'dex/peer.go')
-rw-r--r-- | dex/peer.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dex/peer.go b/dex/peer.go index 67a59348d..97f42ccac 100644 --- a/dex/peer.go +++ b/dex/peer.go @@ -958,6 +958,9 @@ func (ps *peerSet) Close() { } func (ps *peerSet) BuildConnection(round uint64) { + ps.lock.Lock() + defer ps.lock.Unlock() + dkgLabel := peerLabel{set: dkgset, round: round} if _, ok := ps.label2Nodes[dkgLabel]; !ok { dkgPKs, err := ps.gov.DKGSet(round) |