Browse Source

Test

pull/4/head
jl777 6 years ago
parent
commit
9a59ff3ff1
  1. 5
      src/rpcblockchain.cpp

5
src/rpcblockchain.cpp

@ -1417,7 +1417,10 @@ UniValue getchaintips(const UniValue& params, bool fHelp)
of another block. */
std::set<const CBlockIndex*, CompareBlocksByHeight> setTips;
BOOST_FOREACH(const PAIRTYPE(const uint256, CBlockIndex*)& item, mapBlockIndex)
setTips.insert(item.second);
{
if ( item != 0 )
setTips.insert(item.second);
}
BOOST_FOREACH(const PAIRTYPE(const uint256, CBlockIndex*)& item, mapBlockIndex)
{
const CBlockIndex* pprev=0;

Loading…
Cancel
Save