mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-19 01:41:11 +01:00
Download all P2P data before announcing P2P ready.
This commit is contained in:
parent
0b59f583ee
commit
b8d1c92cd4
@ -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…
Reference in New Issue
Block a user