Skip to content
Snippets Groups Projects
Unverified Commit 5c853272 authored by Benjamin Loison's avatar Benjamin Loison
Browse files

Use `int(cli([getblockcount])` instead of `cli_json([getblockchaininfo])[headers]`

parent cf229090
No related branches found
No related tags found
Loading
Loading
  • Owner

    Note that on a not blocks synchronized node:

    • int(cli(['getblockcount'])) returns the number of synchronized blocks
    • cli_json(['getblockchaininfo'])['headers'] returns the number of synchronized headers
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment