Allow calling MpoolPending with nil TS

This commit is contained in:
Łukasz Magiera 2019-12-03 20:34:31 +01:00
parent 96c04fc0a6
commit 2d28bcf057

View File

@ -32,7 +32,7 @@ func (a *MpoolAPI) MpoolPending(ctx context.Context, ts *types.TipSet) ([]*types
haveCids[m.Cid()] = struct{}{}
}
if mpts.Height() > ts.Height() {
if ts == nil || mpts.Height() > ts.Height() {
return pending, nil
}