Add TipSetKey as a concatenation of block CIDs, and use if for ChainGetTipSet, ChainGetRandomness.

This commit is contained in:
anorth
2019-11-13 15:23:37 +11:00
parent 745df10bec
commit 84a4766d8f
12 changed files with 220 additions and 29 deletions
+1 -1
View File
@@ -319,7 +319,7 @@ var chainListCmd = &cli.Command{
break
}
head, err = api.ChainGetTipSet(ctx, head.Parents())
head, err = api.ChainGetTipSet(ctx, types.NewTipSetKey(head.Parents()...))
if err != nil {
return err
}