Test
This commit is contained in:
@@ -1410,6 +1410,7 @@ UniValue getchaintips(const UniValue& params, bool fHelp)
|
|||||||
+ HelpExampleRpc("getchaintips", "")
|
+ HelpExampleRpc("getchaintips", "")
|
||||||
);
|
);
|
||||||
|
|
||||||
|
{
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
|
|
||||||
/* Build up a list of chain tips. We start with the list of all
|
/* Build up a list of chain tips. We start with the list of all
|
||||||
@@ -1431,7 +1432,7 @@ UniValue getchaintips(const UniValue& params, bool fHelp)
|
|||||||
if (pprev)
|
if (pprev)
|
||||||
setTips.erase(pprev);
|
setTips.erase(pprev);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Always report the currently active tip.
|
// Always report the currently active tip.
|
||||||
setTips.insert(chainActive.LastTip());
|
setTips.insert(chainActive.LastTip());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user