mirror of
https://github.com/wownero/cyberwow.git
synced 2026-12-03 13:43:59 +01:00
fix an edge case of incorrect target_height in early syncing
This commit is contained in:
@@ -26,3 +26,4 @@ const config = cryptoConfig.config;
|
||||
|
||||
const arch = 'arm64';
|
||||
// const arch = 'x86_64';
|
||||
const minimumHeight = 10000;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user