Skip to content

Commit

Permalink
Check migratedWalletToSegwit is true
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarguindzberg committed Oct 8, 2020
1 parent 87da2ae commit 261e0ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/main/java/bisq/core/btc/setup/WalletConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,11 @@ protected void startUp() throws Exception {
if (migratedWalletToSegwit.get()) {
startPeerGroup();
} else {
migratedWalletToSegwit.addListener((observable, oldValue, newValue) -> startPeerGroup());
migratedWalletToSegwit.addListener((observable, oldValue, newValue) -> {
if (newValue) {
startPeerGroup();
}
});
}

} catch (BlockStoreException e) {
Expand Down

0 comments on commit 261e0ec

Please sign in to comment.