Fix getchaintips rpc crash. Thanks mike tout!!

This commit is contained in:
jl777
2019-06-07 08:51:38 -11:00
parent b71ed3b95e
commit 439e7cb5d7
2 changed files with 197 additions and 1 deletions

View File

@@ -1853,7 +1853,6 @@ UniValue getchaintips(const UniValue& params, bool fHelp)
/* Construct the output array. */
UniValue res(UniValue::VARR); const CBlockIndex *forked;
BOOST_FOREACH(const CBlockIndex* block, setTips)
BOOST_FOREACH(const CBlockIndex* block, setTips)
{
UniValue obj(UniValue::VOBJ);