tighter setter for height

This commit is contained in:
fuwa
2019-06-27 16:09:10 +00:00
parent bc164de7b6
commit 7e79d33a16
+2 -1
View File
@@ -182,8 +182,9 @@ class SyncingState extends HookedState {
print('syncing: loop exit');
final _height = await rpc.height();
SyncedState _next = SyncedState(setState, getNotification, stdout, processOutput);
_next.height = await rpc.height();
_next.height = _height;
setState(_next);
return _next;
}