message: [RPC] add moneysupply to getblockchaininfo
diff: @@ -1184,6 +1184,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
  "{\n"
  " \"chain\": \"xxxx\", (string) current network name as defined in BIP70 (main, test, regtest)\n"
  " \"blocks\": xxxxxx, (numeric) the current number of blocks processed in the server\n"
  + " \"moneysupply\": xxxxx, (numeric) the current total coin supply (in satoshis)\n"
  " \"headers\": xxxxxx, (numeric) the current number of headers we have validated\n"
  " \"bestblockhash\": \"...\", (string) the hash of the currently best block\n"
  " \"difficulty\": xxxxxx, (numeric) the current difficulty\n"
  @@ -1257,6 +1258,7 @@ UniValue getblockchaininfo(const JSONRPCRequest& request)
  UniValue obj(UniValue::VOBJ);
  obj.pushKV("chain", Params().NetworkIDString());
  obj.pushKV("blocks", (int)chainActive.Height());
  + obj.pushKV("moneysupply", chainActive.Tip()->nMoneySupply);
  obj.pushKV("headers", pindexBestHeader ? pindexBestHeader->nHeight : -1);
  obj.pushKV("bestblockhash", chainActive.Tip()->GetBlockHash().GetHex());
  obj.pushKV("difficulty_pow", nDiffPoW);
  