Check migratedWalletToSegwit is true

This commit is contained in:
Oscar Guindzberg 2020-10-08 17:26:24 -03:00
parent 87da2ae349
commit 261e0ec714
No known key found for this signature in database
GPG Key ID: 209796BF2E1D4F75

View File

@ -305,7 +305,11 @@ public class WalletConfig extends AbstractIdleService {
if (migratedWalletToSegwit.get()) {
startPeerGroup();
} else {
migratedWalletToSegwit.addListener((observable, oldValue, newValue) -> startPeerGroup());
migratedWalletToSegwit.addListener((observable, oldValue, newValue) -> {
if (newValue) {
startPeerGroup();
}
});
}
} catch (BlockStoreException e) {