add flag to choose what to do when looking back tipsets in null rounds

This commit is contained in:
Jeromy
2020-05-05 10:06:05 -07:00
parent 299a017ef5
commit 74510adaaa
4 changed files with 11 additions and 4 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ func (a *ChainAPI) ChainGetTipSetByHeight(ctx context.Context, h abi.ChainEpoch,
if err != nil {
return nil, xerrors.Errorf("loading tipset %s: %w", tsk, err)
}
return a.Chain.GetTipsetByHeight(ctx, h, ts)
return a.Chain.GetTipsetByHeight(ctx, h, ts, true)
}
func (a *ChainAPI) ChainReadObj(ctx context.Context, obj cid.Cid) ([]byte, error) {