fix an edge case of incorrect target_height in early syncing

master
fuwa 5 years ago
parent 0dcf63493c
commit e099dbc72e

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

Loading…
Cancel
Save