first pass, ready for review

This commit is contained in:
Lucas Molas
2020-08-03 12:20:04 -03:00
parent 43491cb7ed
commit 76d40ec408
14 changed files with 1179 additions and 1045 deletions
+4
View File
@@ -224,3 +224,7 @@ func (ts *TipSet) Contains(oc cid.Cid) bool {
}
return false
}
func (ts *TipSet) IsChildOf(parent *TipSet) bool {
return CidArrsEqual(ts.Parents().Cids(), parent.Cids())
}