thenewboston-blockchain / Bank

Bank for thenewboston digital currency.
https://thenewboston.com
MIT License
87 stars 42 forks source link

Update get_(clean|crawl)_info() #82

Closed buckyroberts closed 4 years ago

buckyroberts commented 4 years ago

Update get_clean_info() and get_crawl_info() on both the Bank and Validator repos to include address information for each node. This is because on the client app, they can be cleaning or crawling multiple nodes at a time and when the notifications comes back they need to know which node the notification is for.

Old

{
  "crawl_last_completed": "2020-09-04 23:17:48.877648+00:00",
  "crawl_status": "not_crawling"
}

New

{
  "crawl_last_completed": "2020-09-04 23:17:48.877648+00:00",
  "crawl_status": "not_crawling",
  "ip_address": "143.110.137.54",
  "port": "8000",
  "protocol": "http"
}