This commit is contained in:
jl777
2018-09-21 20:33:54 -11:00
parent 35506c9ae6
commit a4602c8956

View File

@@ -1410,6 +1410,7 @@ UniValue getchaintips(const UniValue& params, bool fHelp)
+ HelpExampleRpc("getchaintips", "")
);
{
LOCK(cs_main);
/* 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)
setTips.erase(pprev);
}
}
// Always report the currently active tip.
setTips.insert(chainActive.LastTip());