chore: share shard info independently on waku version (#4507)
This commit is contained in:
parent
1317f0c796
commit
9cbfda69da
|
@ -2361,7 +2361,7 @@ func testPrivilegedMemberAcceptsRequestToJoinAfterMemberLeave(base CommunityEven
|
|||
|
||||
// check event sender received member leave update from ControlNode
|
||||
_, err = WaitOnMessengerResponse(
|
||||
base.GetControlNode(),
|
||||
base.GetEventSender(),
|
||||
checkMemberLeave,
|
||||
"event sender did not receive member leave update",
|
||||
)
|
||||
|
|
|
@ -19,12 +19,8 @@ import (
|
|||
)
|
||||
|
||||
func (m *Messenger) sendPublicCommunityShardInfo(community *communities.Community) error {
|
||||
if m.transport.WakuVersion() != 2 {
|
||||
return nil
|
||||
}
|
||||
|
||||
if !community.IsControlNode() {
|
||||
return nil
|
||||
return communities.ErrNotControlNode
|
||||
}
|
||||
|
||||
publicShardInfo := &protobuf.PublicShardInfo{
|
||||
|
|
Loading…
Reference in New Issue