Merge pull request #306 from filecoin-project/fix/msg-search-back
don't bother looking in genesis block for messages
This commit is contained in:
commit
719f20d091
@ -359,6 +359,11 @@ func (sm *StateManager) searchBackForMsg(ctx context.Context, from *types.TipSet
|
||||
|
||||
cur := from
|
||||
for {
|
||||
if cur.Height() == 0 {
|
||||
// it ain't here!
|
||||
return nil, nil, nil
|
||||
}
|
||||
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return nil, nil, nil
|
||||
@ -390,11 +395,6 @@ func (sm *StateManager) searchBackForMsg(ctx context.Context, from *types.TipSet
|
||||
return ts, r, nil
|
||||
}
|
||||
|
||||
if ts.Height() == 0 {
|
||||
// it ain't here!
|
||||
return nil, nil, nil
|
||||
}
|
||||
|
||||
cur = ts
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user