clean rpc exception log

This commit is contained in:
fuwa
2019-06-25 22:58:15 +08:00
parent ad312faec8
commit a9ffc1b052
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ Future<http.Response> rpc(String method) async {
);
}
catch (e) {
print(e);
// print(e);
}
return response;
+2
View File
@@ -156,12 +156,14 @@ class SyncingState extends HookedState {
// final _offline = await rpc.offline();
// print('syncing: offline ${_offline}');
final bool initState = line.contains('Initializing core');
if (initState)
print('is init state');
if (_targetHeight == 0 && (!initState) && _height > minimumHeight) break;
}
print('syncing: loop exit');
SyncedState _next = SyncedState(setState, getNotification, stdout, processOutput);
_next.height = await rpc.height();