zingolabs / zingolib_original

ZingoLib
MIT License
1 stars 1 forks source link

In the `cli`, output for `syncstatus` could be made more meaningful to an end user. #88

Open dannasessha opened 2 years ago

dannasessha commented 2 years ago

Currently, running syncstatus in the cli results with a JSON output, an example of which would be:

{
  "sync_id": 4,
  "in_progress": false,
  "last_error": null
}

While "last_error": null might suggest there is no problem, I think a more useful message would include a simple assertion of if a sync has been achieved from the application's perspective, such as "Zingo cli has been synced to the blockchain successfully!" or "Zingo cli is not successfully synced!".

This would likely involve some logic to read and interpret the JSON that is now offered to the end user.

dannasessha commented 2 years ago

78 possibly relevant.