Open Ivshti opened 4 years ago
Good catch! I think even in the Rust impl it will cause similar issue.
is_finalized()
, since we call the Leader
is_initializing()
for the Follower
.These are the 2 places we need to fix.
I propose the following:
get_status()
{}/last-approved
call should handle Http Status: 404
None(?)
case for Leader
None(?)
case for Follower
Regarding the status @Ivshti , there shouldn't be a problem. We return the Leader
BalancesMap
with the Status::Initializing
and we can just return an empty one.
Behavior
When the channel is not submitted to one of the validators, an exception occurs:
Expected behavior
Either catch the 404 and don't set a status (skip it) or set a status that's appropriate, e.g Initializing - the problem with this is that the other properties will be missing.
To be discussed.