Skip to content

Instantly share code, notes, and snippets.

@assafmo
Created October 11, 2022 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save assafmo/bb6aa244517071eaf2e04ff46ae7f9d9 to your computer and use it in GitHub Desktop.
Save assafmo/bb6aa244517071eaf2e04ff46ae7f9d9 to your computer and use it in GitHub Desktop.
Last block
watch $'curl -s localhost:26657/status |
jq .result.sync_info.latest_block_time |
perl -pe "s/\.\d+Z/Z/" |
jq -r \'"Last block: " + (now - (. | fromdate) | floor | tostring) + " seconds ago"\''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment