mirror of
https://github.com/wownero/cyberwow.git
synced 2026-12-03 21:53:58 +01:00
update minimumHeight
This commit is contained in:
@@ -26,4 +26,4 @@ const config = cryptoConfig.config;
|
||||
|
||||
const arch = 'arm64';
|
||||
// const arch = 'x86_64';
|
||||
const minimumHeight = 10000;
|
||||
const minimumHeight = 118361;
|
||||
|
||||
@@ -150,7 +150,7 @@ class SyncingState extends HookedState {
|
||||
print(line);
|
||||
|
||||
final _targetHeight = await rpc.targetHeight();
|
||||
// final _height = await rpc.height();
|
||||
final _height = await rpc.height();
|
||||
// print('syncing: target height ${_targetHeight}');
|
||||
// print('syncing: height ${_height}');
|
||||
|
||||
@@ -158,7 +158,7 @@ class SyncingState extends HookedState {
|
||||
// print('syncing: offline ${_offline}');
|
||||
final bool initState = line.contains('Initializing core');
|
||||
print('is init state');
|
||||
if (_targetHeight == 0 && (!initState)) break;
|
||||
if (_targetHeight == 0 && (!initState) && _height > minimumHeight) break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user