fix shed
This commit is contained in:
parent
bc384c01e3
commit
66f8f8aff2
@ -84,7 +84,7 @@ var terminationsCmd = &cli.Command{
|
|||||||
cst := cbor.NewCborStore(bs)
|
cst := cbor.NewCborStore(bs)
|
||||||
store := adt.WrapStore(ctx, cst)
|
store := adt.WrapStore(ctx, cst)
|
||||||
|
|
||||||
blk, err := cs.GetBlock(blkCid)
|
blk, err := cs.GetBlock(ctx, blkCid)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -97,14 +97,14 @@ var terminationsCmd = &cli.Command{
|
|||||||
cutoff := blk.Height - abi.ChainEpoch(lbp)
|
cutoff := blk.Height - abi.ChainEpoch(lbp)
|
||||||
|
|
||||||
for blk.Height > cutoff {
|
for blk.Height > cutoff {
|
||||||
pts, err := cs.LoadTipSet(types.NewTipSetKey(blk.Parents...))
|
pts, err := cs.LoadTipSet(ctx, types.NewTipSetKey(blk.Parents...))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
blk = pts.Blocks()[0]
|
blk = pts.Blocks()[0]
|
||||||
|
|
||||||
msgs, err := cs.MessagesForTipset(pts)
|
msgs, err := cs.MessagesForTipset(ctx, pts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user