Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
chia farm summary
aborting early if no local full node present (#…
…16387) * Fix `chia farm summary` aborting early if no local full node present Before 2.0, even if no local full node was present, `chia farm summary` would still show useful information: $ chia farm summary Farming status: Not available Local Harvester 1 plots of size: 101.320 GiB on-disk, 101.400 GiBe (effective) Plot count for all harvesters: 1 Total size of plots: 101.320 GiB, 101.400 GiBe (effective) Estimated network space: Unknown Expected time to win: Unknown For details on farmed rewards and fees you should run 'chia start wallet' and 'chia wallet show' However, since 2.0, that is no longer the case. `chia farm summary` simply aborts with an exception: $ chia farm summary Error: Connection error: ClientConnectorError: Cannot connect to host localhost:8555 ssl:<ssl.SSLContext object at 0x7fe0edd533c0> [Connect call failed ('127.0.0.1', 8555)] Check if full node rpc is running at 8555 This is normal if full node is still starting up This fixes this particular regression which is rather annoying for farmers farming to a remote node. Fixes #16164. Related to issue #9615, but that issue is wider in scope. * Improve exception reporting for `chia farm summary` With this change, only the exceptions when failing to connect to a local full node and/or wallet are suppressed, as these cases are already properly handled by adjusted command output. Any other exception is printed to stderr.
- Loading branch information