-
- Downloads
Use `int(cli([getblockcount])` instead of `cli_json([getblockchaininfo])[headers]`
Loading
Note that on a not blocks synchronized node:
int(cli(['getblockcount']))
returns the number of synchronized blockscli_json(['getblockchaininfo'])['headers']
returns the number of synchronized headers