MCPcopy Index your code
hub / github.com/raiden-network/raiden / get_status

Method get_status

raiden/api/rest.py:1485–1493  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1483 return result
1484
1485 def get_status(self) -> Response:
1486 if self.available:
1487 return api_response(result=dict(status="ready"))
1488 else:
1489 to_sync = blocks_to_sync(self.rpc_client)
1490 if to_sync > 0:
1491 return api_response(result=dict(status="syncing", blocks_to_sync=to_sync))
1492 else:
1493 return api_response(result=dict(status="unavailable"))
1494
1495 def shutdown(self) -> Response:
1496 shutdown_greenlet = spawn_named("trigger shutdown", self.raiden_api.shutdown)

Callers 15

evaluateMethod · 0.80
make_route_stateFunction · 0.80
get_channelstate_openFunction · 0.80
get_channelstate_closingFunction · 0.80
get_channelstate_closedFunction · 0.80
get_channelstate_settledFunction · 0.80
events_for_balanceproofFunction · 0.80
handle_blockFunction · 0.80

Calls 2

api_responseFunction · 0.90
blocks_to_syncFunction · 0.90

Tested by 4

run_smoketestFunction · 0.64
channel_openedMethod · 0.64