From bf8e9b4d66d6cae6f414a77b3263421a6459c419 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 21 Sep 2018 20:36:22 -1100 Subject: [PATCH] Test --- src/rpcblockchain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp index 0ce01d09f..3cfa22282 100644 --- a/src/rpcblockchain.cpp +++ b/src/rpcblockchain.cpp @@ -1410,6 +1410,7 @@ UniValue getchaintips(const UniValue& params, bool fHelp) + HelpExampleRpc("getchaintips", "") ); + UniValue res(UniValue::VARR); { LOCK(cs_main); @@ -1436,7 +1437,7 @@ UniValue getchaintips(const UniValue& params, bool fHelp) setTips.insert(chainActive.LastTip()); /* Construct the output array. */ - UniValue res(UniValue::VARR); const CBlockIndex *forked; + const CBlockIndex *forked; BOOST_FOREACH(const CBlockIndex* block, setTips) BOOST_FOREACH(const CBlockIndex* block, setTips) {