don't bother looking in genesis block for messages
This commit is contained in:
parent
a71772ae18
commit
8e51ab8375
@ -359,6 +359,11 @@ func (sm *StateManager) searchBackForMsg(ctx context.Context, from *types.TipSet
|
|||||||
|
|
||||||
cur := from
|
cur := from
|
||||||
for {
|
for {
|
||||||
|
if cur.Height() == 0 {
|
||||||
|
// it ain't here!
|
||||||
|
return nil, nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return nil, nil, nil
|
return nil, nil, nil
|
||||||
@ -390,11 +395,6 @@ func (sm *StateManager) searchBackForMsg(ctx context.Context, from *types.TipSet
|
|||||||
return ts, r, nil
|
return ts, r, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if ts.Height() == 0 {
|
|
||||||
// it ain't here!
|
|
||||||
return nil, nil, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
cur = ts
|
cur = ts
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user