Fix IsAncestorOf

This commit is contained in:
Aayush Rajasekaran 2020-09-09 19:09:55 -04:00
parent 8807c75c51
commit 183df4c135

View File

@ -471,7 +471,7 @@ func (cs *ChainStore) IsAncestorOf(a, b *types.TipSet) (bool, error) {
cur := b
for !a.Equals(cur) && cur.Height() > a.Height() {
next, err := cs.LoadTipSet(b.Parents())
next, err := cs.LoadTipSet(cur.Parents())
if err != nil {
return false, err
}