Handle error

Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2020-08-09 00:27:28 +02:00
parent 46fd9d5e80
commit ea92f5f1ff
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA
2 changed files with 3 additions and 1 deletions

View File

@ -109,6 +109,9 @@ func (sm *StateManager) CallWithGas(ctx context.Context, msg *types.Message, pri
}
state, _, err := sm.TipSetState(ctx, ts)
if err != nil {
return nil, xerrors.Errorf("computing tipset state: %w", err)
}
r := store.NewChainRand(sm.cs, ts.Cids(), ts.Height())

View File

@ -153,7 +153,6 @@ func (a *GasAPI) GasEstimateGasLimit(ctx context.Context, msgIn *types.Message,
for _, m := range pending {
priorMsgs = append(priorMsgs, m)
}
log.Warnf("added %d prior msgs", len(priorMsgs))
res, err := a.Stmgr.CallWithGas(ctx, &msg, priorMsgs, ts)
if err != nil {