From 33c4b6868805a65529f89c82edebb4e009dc4ab5 Mon Sep 17 00:00:00 2001 From: fuwa Date: Wed, 26 Jun 2019 22:28:08 +0800 Subject: [PATCH] fix target height in synced state --- cyberwow/lib/state.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyberwow/lib/state.dart b/cyberwow/lib/state.dart index 95f3890..a86cbc3 100644 --- a/cyberwow/lib/state.dart +++ b/cyberwow/lib/state.dart @@ -228,7 +228,7 @@ class SyncedState extends HookedState { final _height = await rpc.height(); // print('re-sync: height ${_height}'); - if (_targetHeight > 0 && _targetHeight != _height) { + if (_targetHeight > _height) { synced = false; break; }