mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Fix incorrect handling of decryptedEntries size
This commit is contained in:
parent
983f610e73
commit
31e7e26557
1 changed files with 4 additions and 2 deletions
|
@ -450,10 +450,12 @@ public class P2PService implements SetupListener, MessageListener, ConnectionLis
|
|||
}
|
||||
|
||||
private void processSingleMailboxEntry(Collection<ProtectedMailboxStorageEntry> protectedMailboxStorageEntries) {
|
||||
checkArgument(protectedMailboxStorageEntries.size() == 1);
|
||||
var decryptedEntries = new ArrayList<>(getDecryptedEntries(protectedMailboxStorageEntries));
|
||||
checkArgument(decryptedEntries.size() == 1);
|
||||
if (protectedMailboxStorageEntries.size() == 1) {
|
||||
storeMailboxDataAndNotifyListeners(decryptedEntries.get(0));
|
||||
}
|
||||
}
|
||||
|
||||
// We run the batch processing of all mailbox messages we have received at startup in a thread to not block the UI.
|
||||
// For about 1000 messages decryption takes about 1 sec.
|
||||
|
|
Loading…
Add table
Reference in a new issue