GUI: Refactor formatServicesStr to warn when a ServicesFlag is missing
Summary:
Backport of core PR17474.
This has been adapted to match our codebase changes from core.
It introduces one change to the way the unknown service bits are displayed,
to make them consistenly display as a bit number. This matches what core does
when the backports are up-to-date and makes the code simpler.
Test Plan:
ninja check ./src/qt/bitcoin-qt
Check the service bit display correctly.
Reviewers: #bitcoin_abc, deadalnix
Reviewed By: #bitcoin_abc, deadalnix
Subscribers: deadalnix
Differential Revision: https://reviews.bitcoinabc.org/D8516