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() {
|
||||
parseBlockChainComplete = true;
|
||||
|
||||
// Now we need to trigger the onParseBlockComplete to update the state in the app
|
||||
getLastBlock().ifPresent(this::onParseBlockComplete);
|
||||
getLastBlock().ifPresent(block -> {
|
||||
daoStateListeners.forEach(l -> l.onParseTxsCompleteAfterBatchProcessing(block));
|
||||
});
|
||||
|
||||
daoStateListeners.forEach(DaoStateListener::onParseBlockChainComplete);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue