Fix bug in network transport readiness check function
This commit is contained in:
@@ -754,9 +754,7 @@ bool NodeService::networkIsReady(uint64_t net_id) const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
auto netState = n->second;
|
auto netState = n->second;
|
||||||
if (netState.config.assignedAddressCount == 0) {
|
return netState.config.assignedAddressCount > 0;
|
||||||
return ZTS_ERR_NO_RESULT;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int NodeService::addressCount(uint64_t net_id) const
|
int NodeService::addressCount(uint64_t net_id) const
|
||||||
|
|||||||
Reference in New Issue
Block a user