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
|
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