Allow calling MpoolPending with nil TS
This commit is contained in:
parent
96c04fc0a6
commit
2d28bcf057
@ -32,7 +32,7 @@ func (a *MpoolAPI) MpoolPending(ctx context.Context, ts *types.TipSet) ([]*types
|
|||||||
haveCids[m.Cid()] = struct{}{}
|
haveCids[m.Cid()] = struct{}{}
|
||||||
}
|
}
|
||||||
|
|
||||||
if mpts.Height() > ts.Height() {
|
if ts == nil || mpts.Height() > ts.Height() {
|
||||||
return pending, nil
|
return pending, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user