Test
This commit is contained in:
@@ -1417,7 +1417,10 @@ UniValue getchaintips(const UniValue& params, bool fHelp)
|
|||||||
of another block. */
|
of another block. */
|
||||||
std::set<const CBlockIndex*, CompareBlocksByHeight> setTips;
|
std::set<const CBlockIndex*, CompareBlocksByHeight> setTips;
|
||||||
BOOST_FOREACH(const PAIRTYPE(const uint256, CBlockIndex*)& item, mapBlockIndex)
|
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)
|
BOOST_FOREACH(const PAIRTYPE(const uint256, CBlockIndex*)& item, mapBlockIndex)
|
||||||
{
|
{
|
||||||
const CBlockIndex* pprev=0;
|
const CBlockIndex* pprev=0;
|
||||||
|
|||||||
Reference in New Issue
Block a user