add more tick to slow down rpc requests

lolnode
fuwa 3 years ago
parent 7c3f361135
commit c63408a957

@ -51,6 +51,7 @@ class ReSyncingState extends AppStateAutomata {
final int _height = await rpc.height();
return SyncedState(appHook, _height, pageIndex);
} else {
await tick();
return this;
}

@ -104,6 +104,7 @@ class SyncedState extends AppStateAutomata {
return ReSyncingState(appHook, pageIndex);
}
await tick();
// log.finer('SyncedState: checkSync loop');
height = await rpc.height();
connected = await daemon.isConnected();

@ -47,6 +47,7 @@ class SyncingState extends AppStateAutomata {
final int _height = await rpc.height();
return SyncedState(appHook, _height, config.defaultPageIndex);
} else {
await tick();
return this;
}
}