Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix camelCase and syncing condition #782

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions proxy/neon_rpc_api_model/neon_rpc_api_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,13 +662,13 @@ def eth_syncing(self) -> Union[bool, dict]:
first_slot = self._db.get_starting_block_slot()

self.debug(f'slots_behind: {slots_behind}, latest_slot: {latest_slot}, first_slot: {first_slot}')
if (slots_behind is None) or (latest_slot is None) or (first_slot is None):
if (slots_behind == 0) or (slots_behind is None) or (latest_slot is None) or (first_slot is None):
return False

return {
'startingblock': first_slot,
'currentblock': latest_slot,
'highestblock': latest_slot + slots_behind
'startingBlock': first_slot,
'currentBlock': latest_slot,
'highestBlock': latest_slot + slots_behind
}
except (Exception,):
return False
Expand Down