chore: share shard info independently on waku version (#4507)

This commit is contained in:
Mykhailo Prakhov 2023-12-22 17:43:38 +01:00 committed by GitHub
parent 1317f0c796
commit 9cbfda69da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -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",
)

View File

@ -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{