jaros1 / Money-Network

Demo with complementary and alternative money. Implemented in ZeroNet and AngularJS. Focus on privacy, encryption, max data in client and min data on ZeroNet. Work in progress.
GNU General Public License v2.0
4 stars 4 forks source link

jro test on old lap - many lost messages ... #225

Closed jaros1 closed 6 years ago

jaros1 commented 7 years ago

screenshot from 2017-10-16 10-53-44

jaros1 commented 7 years ago

jro-test-on-old-laptop.log jro-on-new-laptop.log

jaros1 commented 7 years ago

jro on new laptop log. No problem with 5699. Why was lost message notification in jro test on old laptop not fixed?

jro: feedback from jro test - many lost messages (-5701,-5708,-5709,-5711,-5712,-5706,-5707, -5699)

10:50:43.395 all.js:1789 MoneyNetworkService.process_incoming_message: feedback = {"received":[5678,-5701,-5708,-5709,-5711,-5712,-5706,-5707,5712,5711,5709,5708,5701,-5699],"sent":[1056]}
10:50:43.398 all.js:10584 MoneyNetworkService.receive_feedback_info: todo: check also sent group chat messages to contact with unique id be4e96172fe3a8cafdf30057a8e8f4409c7b538383b3d7e1b3c35603eaa076d5
10:50:43.398 all.js:10683 MoneyNetworkService.receive_feedback_info:
Error in feedback.received array. Messages with local_msg_seq [5712,5711,5709,5708,5701] were not found in outbox or in deleted_outbox_messages. Feedback = {"received":[5678,-5701,-5708,-5709,-5711,-5712,-5706,-5707,5712,5711,5709,5708,5701,-5699],"sent":[1056]}. Error should only occur after using deleted contact button. contact2.deleted_outbox_messages = {"5676":1507979580578,"5678":1508143843397,"5679":1507979580640}, Object.keys(contact2.deleted_outbox_messages) = ["5676","5678","5679"]
jaros1 commented 7 years ago
                if (received.length) {
                    // error: received feedback info for one or more messages not in outbox and not in deleted_outbox_messages
                    error =
                        'Error in feedback.received array. Messages with local_msg_seq ' + JSON.stringify(received) +
                        ' were not found in outbox or in deleted_outbox_messages. Feedback = ' + JSON.stringify(feedback) +
                        '. Error should only occur after using deleted contact button. ';
                    for (i=0 ; i<ls_contacts.length ; i++) {
                        contact2 = ls_contacts[i] ;
                        if (contact2.pubkey != contact.pubkey) continue ;
                        if (contact2.deleted_outbox_messages) {
                            error +=
                                'contact2.deleted_outbox_messages = ' + JSON.stringify(contact2.deleted_outbox_messages) +
                                ', Object.keys(contact2.deleted_outbox_messages) = ' + JSON.stringify(Object.keys(contact2.deleted_outbox_messages)) ;
                        }
                    } // i
                    console.log(pgm + error) ;
                }
jaros1 commented 7 years ago

Retest with lost_message = true in debug options

jaros1 commented 6 years ago

Fixed long time ago. Was an error in MN ls_save_contacts function