Partially backport bitcoin#10838 for bitcoin_cli.py
Partially backport bitcoin#10838 for bitcoin_cli.py

This allows further backports while postponing removal of "getinfo"

nmarley/dash,UdjinM6/dash,nmarley/dash,nmarley/dash,dashpay/dash,ionomy/ion,thelazier/dash,nmarley/dash,thelazier/dash,UdjinM6/dash,nmarley/dash,thelazier/dash,thelazier/dash,nmarley/dash,dashpay/dash,UdjinM6/dash,ionomy/ion,ionomy/ion,dashpay/dash,dashpay/dash,nmarley/dash,dashpay/dash,ionomy/ion,thelazier/dash,UdjinM6/dash,UdjinM6/dash,ionomy/ion,ionomy/ion