diff --git a/src/main/java/com/sparrowwallet/sparrow/whirlpool/dataSource/SparrowChainSupplier.java b/src/main/java/com/sparrowwallet/sparrow/whirlpool/dataSource/SparrowChainSupplier.java index ea46aa90..93142b82 100644 --- a/src/main/java/com/sparrowwallet/sparrow/whirlpool/dataSource/SparrowChainSupplier.java +++ b/src/main/java/com/sparrowwallet/sparrow/whirlpool/dataSource/SparrowChainSupplier.java @@ -15,10 +15,10 @@ public class SparrowChainSupplier implements ChainSupplier { public SparrowChainSupplier(Integer storedBlockHeight) { this.storedBlockHeight = AppServices.getCurrentBlockHeight() == null ? (storedBlockHeight != null ? storedBlockHeight : 0) : AppServices.getCurrentBlockHeight(); - this.latestBlock = computeLatestBlock(); } public void open() { + this.latestBlock = computeLatestBlock(); EventManager.get().register(this); }