[bisq-network/bisq] periodical UpdateDataReq for Seednodes (#3202)
Florian Reimair
notifications at github.com
Thu Sep 5 10:07:36 UTC 2019
freimair commented on this pull request.
> @@ -337,11 +340,13 @@ public void onPreliminaryDataReceived() {
@Override
public void onUpdatedDataReceived() {
- isBootstrapped = true;
- maybeProcessAllMailboxEntries();
- p2pServiceListeners.stream().forEach(P2PServiceListener::onUpdatedDataReceived);
- if(!isBootstrapped)
- p2PDataStorage.onBootstrapComplete();
+ if (!isBootstrapped() || Capabilities.app.containsAll(Capability.SEED_NODE)) {
+ isBootstrapped = true;
+ maybeProcessAllMailboxEntries();
+ p2pServiceListeners.stream().forEach(P2PServiceListener::onUpdatedDataReceived);
+ if (!isBootstrapped)
+ p2PDataStorage.onBootstrapComplete();
+ }
fixed by doing
```
if (!isBootstrapped() || Capabilities.app.containsAll(Capability.SEED_NODE)) {
maybeProcessAllMailboxEntries();
p2pServiceListeners.stream().forEach(P2PServiceListener::onUpdatedDataReceived);
}
if (!isBootstrapped()) {
isBootstrapped = true;
p2PDataStorage.onBootstrapComplete();
}
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/3202#discussion_r321177403
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190905/25ecea7b/attachment.html>
More information about the bisq-github
mailing list