mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Download all P2P data before announcing P2P ready.
This commit is contained in:
parent
0b59f583ee
commit
b8d1c92cd4
1 changed files with 2 additions and 2 deletions
|
@ -359,17 +359,17 @@ public class RequestDataManager implements MessageListener, ConnectionListener,
|
|||
checkNotNull(listener).onUpdatedDataReceived();
|
||||
}
|
||||
|
||||
checkNotNull(listener).onDataReceived();
|
||||
|
||||
if (wasTruncated) {
|
||||
if (numRepeatedRequests < 10) {
|
||||
log.info("DataResponse did not contain all data, so we repeat request until we got all data");
|
||||
UserThread.runAfter(() -> requestData(nodeAddress, remainingNodeAddresses), 2);
|
||||
} else {
|
||||
log.info("DataResponse still did not contained all data but we requested already 10 times and stop now.");
|
||||
checkNotNull(listener).onDataReceived();
|
||||
}
|
||||
} else {
|
||||
log.info("DataResponse contained all data");
|
||||
checkNotNull(listener).onDataReceived();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue