Skip to content

Commit 63e3b9e

Browse files
committed
fix: (p2p.go) initialize activeSubnets for the case of SubscribeRandoms that updates activeSubnets.
1 parent d1c1505 commit 63e3b9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

network/p2p/p2p.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ func New(
136136
msgValidator: cfg.MessageValidator,
137137
state: stateClosed,
138138
activeCommittees: hashmap.New[string, validatorStatus](),
139+
activeSubnets: make([]byte, commons.SubnetsCount),
139140
nodeStorage: cfg.NodeStorage,
140141
operatorPKHashToPKCache: hashmap.New[string, []byte](),
141142
operatorSigner: cfg.OperatorSigner,

0 commit comments

Comments
 (0)