A few updates, some per IRC discussion today at http://www.erisian.com.au/bitcoin-core-dev/log-2021-01-07.html#l-87 with respect to -netinfo:
- enable
-netinfo helpto run without a remote server - warn in
-netinfo helpthat -netinfo is not intended to be a stable API - improve the -netinfo invalid argument error message
- make a performance improvement and simplification I noticed after the merge of #20764
- update the -netinfo help doc following the merge of #21192
How to test manually: :microscope: :test_tube: :chart_with_upwards_trend:
- check out and build this branch locally; if you need help, don’t hesitate to refer to https://jonatack.github.io/articles/how-to-review-pull-requests-in-bitcoin-core#pull-down-the-code-locally or https://jonatack.github.io/articles/how-to-compile-bitcoin-core-and-run-the-tests
- while it is compiling, look at the code changes
- stop signet (if it is running) with
./src/bitcoin-cli -signet stop - once the build is completed, run
./src/bitcoin-cli -signet -netinfo help - the help should be printed even though the signet server is not running
- near the top you should see the new warning, “This human-readable interface will change regularly and is not intended to be a stable API” as well as a bit more description about the integer argument values.
- start signet with
./src/bitcoind -signet - test the improved invalid argument error message if you run
./src/bitcoin-cli -signet -netinfo 256or./src/bitcoin-cli -signet -netinfo a(valid values are from 0 to 255) - leave review feedback or
ACK <commit hash>– done :beers:
