This is a partial backport of bchn#1820
https://gitlab.com/bitcoin-cash-node/bitcoin-cash-node/-/merge_requests/1820/diffs?commit_id=8f435c20698488125a5f4d3759f81237acebff93
Note that I don't like the work reliableness, and reliability is already used in this codebase for another concept, so I went for ReliabilityStatus