int(cli(['getblockcount'])) returns the number of synchronized blocks
cli_json(['getblockchaininfo'])['headers'] returns the number of synchronized headers
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