[Chronik] Add -chronik and -chronikbind command line options
Summary:
Unless -chronik is specified, Chronik now will not be started.
-chronikbind tells Chronik to bind its HTTP server to the given addresses. Currently, this only logs, in a future diff this will be parsed and listened to.
Test Plan:
- ninja
- ./src/bitcoind -regtest -> No Chronik log
- ./src/bitcoind -regtest -chronik -> Starting Chronik bound to [127.0.0.1:18442, [::1]:18442]
- ./src/bitcoind -regtest -chronik -chronikbind=0.0.0.0:1234 -> Starting Chronik bound to [0.0.0.0:1234]
- ./src/bitcoind -regtest -chronik -chronikbind=1.2.3.4 -chronikbind=\[::5\]:6789 -> Starting Chronik bound to [1.2.3.4:18442, [::0.0.0.5]:6789]
- ./src/bitcoind -regtest -chronik -chronikbind=invalid -> Error: Invalid Chronik host address "invalid": invalid IP address syntax
Reviewers: Fabien, #bitcoin_abc
Reviewed By: Fabien, #bitcoin_abc
Differential Revision: https://reviews.bitcoinabc.org/D12676