fix target height in synced state

pull/1/head
fuwa 5 years ago
parent 2f4600896d
commit 33c4b68688

@ -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;
}