mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-02 20:36:44 +00:00
compute latest block on open
This commit is contained in:
parent
9ba4458f48
commit
e5e94c3ea6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue