You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As found out in #3667, we were loading (and if not found, storing) ourselves to ContactsMap, which shouldn't be done.
I've added required conditions in #3627, but also tracked down all places we were doing this.
To gather this info I've added callstack logging (04675d8) and a python script to analyse output of make test.
Problem
As found out in #3667, we were loading (and if not found, storing) ourselves to
ContactsMap
, which shouldn't be done.I've added required conditions in #3627, but also tracked down all places we were doing this.
To gather this info I've added callstack logging (04675d8) and a python script to analyse output of
make test
.Show me the python script
According to my investigation, there're 4 such places:
1. When receiving a message from ourselves
... with one of following types:
status-go/protocol/messenger.go
Line 3441 in 04675d8
Full call stack
2.
SyncDevices
->sendContactUpdate
with myIDstatus-go/protocol/messenger.go
Line 2393 in 04675d8
Full call stack
3.
updateAcceptedContactRequest
status-go/protocol/messenger_contacts.go
Line 286 in 04675d8
Full call stack
```json { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/protocol/messenger_maps.go:122 +0xb8", "function": "github.com/status-im/status-go/protocol.(*contactMap).Load(0x140028a19e0, {0x14003481b90, 0x84})" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/protocol/messenger_contacts.go:286 +0x364", "function": "github.com/status-im/status-go/protocol.(*Messenger).updateAcceptedContactRequest(0x14000ffe580, 0x0, {0x140034819e0, 0x86})" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/protocol/messenger_handler.go:3229 +0x54", "function": "github.com/status-im/status-go/protocol.(*Messenger).HandleSyncContactRequestDecision(0x102337708?, 0x140016e4660, {0x18925520d0e, {0x140034819e0, 0x86}, 0x0, {}, {0x0, 0x0, 0x0}, ...})" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/protocol/messenger_sync_raw_messages.go:192 +0x1fac", "function": "github.com/status-im/status-go/protocol.(*Messenger).HandleSyncRawMessages(0x14000ffe580, {0x14000646800, 0xf, 0x24?})" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/raw_message_handler.go:125 +0x428", "function": "github.com/status-im/status-go/server/pairing.(*SyncRawMessageHandler).HandleRawMessage(0x14001584fa8?, 0x1021618d0?, 0x14002aca000?, {0x14005194dd0?, 0x800?}, {0x14005194dc0, 0x7}, 0x14000e27b60)" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/payload_receiver.go:258 +0x4c", "function": "github.com/status-im/status-go/server/pairing.(*RawMessageStorer).Store(0x140005b5d50?)" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/payload_receiver.go:66 +0x98", "function": "github.com/status-im/status-go/server/pairing.(*BasePayloadReceiver).Receive(0x140006b7600, {0x14001076000?, 0x102f152e0?, 0x14002bb2f80?})" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/client.go:387 +0x1a8", "function": "github.com/status-im/status-go/server/pairing.(*ReceiverClient).receiveSyncDeviceData(0x140006b78c0)" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/client.go:474 +0x60", "function": "github.com/status-im/status-go/server/pairing.StartUpReceivingClient(0x1030ca438?, {0x1400098c540?, 0x1ace?}, {0x140002d7100?, 0x0?})" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/sync_device_test.go:187 +0x5cc", "function": "github.com/status-im/status-go/server/pairing.(*SyncDeviceSuite).pairAccounts(0x140009aa630, 0x140013d7c20, {0x14000cf8150, 0x70}, 0x140013d7e00, {0x14000cf81c0, 0x70})" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/sync_device_test.go:568 +0x6b4", "function": "github.com/status-im/status-go/server/pairing.(*SyncDeviceSuite).TestPairingThreeDevices(0x140009aa630)" }, ```4.
HandleSyncRawMessages
->saveDataAndPrepareResponse
status-go/protocol/messenger.go
Line 4499 in 04675d8
Full call stack
```json [ { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/protocol/messenger_maps.go:122 +0xb8", "function": "github.com/status-im/status-go/protocol.(*contactMap).Load(0x140028a19e0, {0x14000672120, 0x84})" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/protocol/messenger.go:4499 +0x134", "function": "github.com/status-im/status-go/protocol.(*Messenger).saveDataAndPrepareResponse(0x14000ffe580, 0x140016e4660)" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/protocol/messenger_sync_raw_messages.go:306 +0x2b4c", "function": "github.com/status-im/status-go/protocol.(*Messenger).HandleSyncRawMessages(0x14000ffe580, {0x14000646800, 0xf, 0x24?})" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/raw_message_handler.go:125 +0x428", "function": "github.com/status-im/status-go/server/pairing.(*SyncRawMessageHandler).HandleRawMessage(0x14001584fa8?, 0x1021618d0?, 0x14002aca000?, {0x14005194dd0?, 0x800?}, {0x14005194dc0, 0x7}, 0x14000e27b60)" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/payload_receiver.go:258 +0x4c", "function": "github.com/status-im/status-go/server/pairing.(*RawMessageStorer).Store(0x140005b5d50?)" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/payload_receiver.go:66 +0x98", "function": "github.com/status-im/status-go/server/pairing.(*BasePayloadReceiver).Receive(0x140006b7600, {0x14001076000?, 0x102f152e0?, 0x14002bb2f80?})" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/client.go:387 +0x1a8", "function": "github.com/status-im/status-go/server/pairing.(*ReceiverClient).receiveSyncDeviceData(0x140006b78c0)" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/client.go:474 +0x60", "function": "github.com/status-im/status-go/server/pairing.StartUpReceivingClient(0x1030ca438?, {0x1400098c540?, 0x1ace?}, {0x140002d7100?, 0x0?})" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/sync_device_test.go:187 +0x5cc", "function": "github.com/status-im/status-go/server/pairing.(*SyncDeviceSuite).pairAccounts(0x140009aa630, 0x140013d7c20, {0x14000cf8150, 0x70}, 0x140013d7e00, {0x14000cf81c0, 0x70})" }, { "file": "/Users/igorsirotin/Repositories/Status/status-desktop/vendor/status-go/server/pairing/sync_device_test.go:568 +0x6b4", "function": "github.com/status-im/status-go/server/pairing.(*SyncDeviceSuite).TestPairingThreeDevices(0x140009aa630)" }, ] ```The text was updated successfully, but these errors were encountered: