status-im / status-mobile

a free (libre) open source, mobile OS for Ethereum
https://status.app
Mozilla Public License 2.0
3.88k stars 984 forks source link

Investigation on community request to join missing #18948

Open cammellos opened 7 months ago

cammellos commented 7 months ago

No manual approval required community stucks in Pending after sending request to join when light client is disabled

hey. Currently E2E is failing in case when the light client disabled. I was able to reproduce this issue manually, but only when both nodes return from being offline as described in the steps below.

Steps:

  1. User A creates no manual approval community and shares to User B
  2. User A goes offline
  3. User B requests to join
  4. User B goes offline
  5. Both users return to online

Actual result:

The community is in 'pending' status for User B

https://github.com/status-im/status-mobile/assets/52490791/e428da92-7f07-4561-b815-da0092385023

Expected result:

The community is in 'joined' status

Additional info:

Current issue is also reproducible when User A is a Desktop User

Logs:

User A logs: logs.zip

User B logs: Status-debug-logs.zip

cammellos commented 7 months ago
INFO [02-20|13:05:12.996|github.com/status-im/status-go/wakuv2/waku.go:1043]                                                                publishing message via relay             envelopeHash=0x0cf464bdffcfd5e82fb535a4dfbd138d7f1d251c69f50e13791a4fb486b99815 pubsubTopic=/waku/2/rs/16/64 contentTopic=/waku/1/0xfd3c9e7c/rfc26 timestamp=1,708,434,312,995,714,848 peerCnt=6

Is the message hash of the request to join. This was not present in the logs of the receiver.