mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-12-25 07:19:30 -05:00
walletAndNetworkReady does not wait for sufficient broadcast peers
This commit is contained in:
parent
e0929653af
commit
a0bc57c893
@ -73,14 +73,14 @@ public class AppStartupState {
|
|||||||
|
|
||||||
p2pNetworkAndWalletInitialized = EasyBind.combine(updatedDataReceived,
|
p2pNetworkAndWalletInitialized = EasyBind.combine(updatedDataReceived,
|
||||||
isBlockDownloadComplete,
|
isBlockDownloadComplete,
|
||||||
hasSufficientPeersForBroadcast,
|
hasSufficientPeersForBroadcast, // TODO: consider sufficient number of peers?
|
||||||
allDomainServicesInitialized,
|
allDomainServicesInitialized,
|
||||||
(a, b, c, d) -> {
|
(a, b, c, d) -> {
|
||||||
log.info("p2pNetworkAndWalletInitialized = {} = updatedDataReceived={} && isBlockDownloadComplete={} && hasSufficientPeersForBroadcast={} && allDomainServicesInitialized={}", (a && b && c && d), updatedDataReceived.get(), isBlockDownloadComplete.get(), hasSufficientPeersForBroadcast.get(), allDomainServicesInitialized.get());
|
log.info("Combined initialized state = {} = updatedDataReceived={} && isBlockDownloadComplete={} && hasSufficientPeersForBroadcast={} && allDomainServicesInitialized={}", (a && b && c && d), updatedDataReceived.get(), isBlockDownloadComplete.get(), hasSufficientPeersForBroadcast.get(), allDomainServicesInitialized.get());
|
||||||
if (a && b && c) {
|
if (a && b) {
|
||||||
walletAndNetworkReady.set(true);
|
walletAndNetworkReady.set(true);
|
||||||
}
|
}
|
||||||
return a && d; // app fully initialized before daemon connection and wallet by default
|
return a && d; // app fully initialized before daemon connection and wallet by default // TODO: rename variable
|
||||||
});
|
});
|
||||||
p2pNetworkAndWalletInitialized.subscribe((observable, oldValue, newValue) -> {
|
p2pNetworkAndWalletInitialized.subscribe((observable, oldValue, newValue) -> {
|
||||||
if (newValue) {
|
if (newValue) {
|
||||||
|
Loading…
Reference in New Issue
Block a user