diff --git a/cyberwow/lib/config.dart b/cyberwow/lib/config.dart index 155bb85..d8cd174 100644 --- a/cyberwow/lib/config.dart +++ b/cyberwow/lib/config.dart @@ -26,3 +26,4 @@ const config = cryptoConfig.config; const arch = 'arm64'; // const arch = 'x86_64'; +const minimumHeight = 10000; diff --git a/cyberwow/lib/state.dart b/cyberwow/lib/state.dart index 7efe19f..55e4630 100644 --- a/cyberwow/lib/state.dart +++ b/cyberwow/lib/state.dart @@ -147,8 +147,9 @@ class SyncingState extends HookedState { print(line); final _targetHeight = await rpc.targetHeight(); + final _height = await rpc.height(); - if (_targetHeight == 0) break; + if (_targetHeight == 0 && _height > minimumHeight) break; }