mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 07:07:43 +01:00
Fix onParseBlockChainComplete handler
We had 2 times the onParseTxsComplete called in the version before
This commit is contained in:
parent
df685ceb55
commit
4868b0e5df
1 changed files with 3 additions and 2 deletions
|
@ -220,8 +220,9 @@ public class DaoStateService implements DaoSetupService {
|
||||||
public void onParseBlockChainComplete() {
|
public void onParseBlockChainComplete() {
|
||||||
parseBlockChainComplete = true;
|
parseBlockChainComplete = true;
|
||||||
|
|
||||||
// Now we need to trigger the onParseBlockComplete to update the state in the app
|
getLastBlock().ifPresent(block -> {
|
||||||
getLastBlock().ifPresent(this::onParseBlockComplete);
|
daoStateListeners.forEach(l -> l.onParseTxsCompleteAfterBatchProcessing(block));
|
||||||
|
});
|
||||||
|
|
||||||
daoStateListeners.forEach(DaoStateListener::onParseBlockChainComplete);
|
daoStateListeners.forEach(DaoStateListener::onParseBlockChainComplete);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue