Skip to content

Commit

Permalink
chore: remove logs, and uncomment the new thread for warp sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ablax committed Aug 29, 2024
1 parent 5918e0f commit 8e200af
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/main/java/com/limechain/sync/warpsync/WarpSyncMachine.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ public void start() {
.compareTo(initState.getFinalizedBlockHeader().getBlockNumber()) < 0) {
this.syncState.setLightSyncState(initState);
}
System.out.println(this.syncState.getLastFinalizedBlockHash());
System.out.println(this.syncState.getLastFinalizedBlockNumber());

final Hash256 initStateHash = this.syncState.getLastFinalizedBlockHash();

Expand All @@ -79,14 +77,14 @@ public void start() {
this.networkService.updateCurrentSelectedPeerWithNextBootnode();
this.warpSyncAction = new RequestFragmentsAction(initStateHash);

// new Thread(() -> {
while (this.warpSyncAction.getClass() != FinishedAction.class) {
this.handleState();
this.nextState();
}
new Thread(() -> {
while (this.warpSyncAction.getClass() != FinishedAction.class) {
this.handleState();
this.nextState();
}

finishWarpSync();
// }).start();
finishWarpSync();
}).start();
}

public void stop() {
Expand Down

0 comments on commit 8e200af

Please sign in to comment.