This commit is contained in:
jl777
2018-09-21 20:25:10 -11:00
parent a4f7b6910f
commit 9a59ff3ff1

View File

@@ -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;