poolReportIsDegraded function
The Dart mirror of report_is_degraded in
sdk/zec-wallet-core/src/sync_controller.rs ("is at least one pool in the
report refused, lied about, or withheld โ the condition under which the
report earns its own status") โ ONE predicate (ยง4r U-3), so the surface
and the core agree on what "degraded" means. The core publishes
upToDateDegraded exactly when this is true of a current server's report
and carries the report WHOLE on endpointBehind and upToDateUnverified,
degraded or not โ so this is what decides whether those arms render pool
lines at all, and a report with every pool served renders none.
Implementation
bool poolReportIsDegraded(PoolServiceReport report) =>
_poolServiceIsDegraded(report.sapling) ||
_poolServiceIsDegraded(report.orchard) ||
_poolServiceIsDegraded(report.ironwood);