tighter setter for height

pull/1/head
fuwa 5 years ago
parent bc164de7b6
commit 7e79d33a16

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