Skip to content

Commit 76ecc8f

Browse files
committed
avoid returning error, as it cause consensus failure
1 parent ff64f09 commit 76ecc8f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

x/compute/module.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,11 @@ func (am AppModule) BeginBlock(c context.Context) error {
203203
for idx, msg := range execCronMsgs {
204204
fmt.Printf("idx, msg: %+v %+v\n", idx, msg)
205205
ctx = ctx.WithTxBytes(bytesCronMsgs[idx])
206-
res, err := am.keeper.Execute(ctx, msg.Contract, msg.Sender, msg.Msg, msg.SentFunds, msg.CallbackSig, wasmtypes.HandleTypeExecute)
206+
_, err := am.keeper.Execute(ctx, msg.Contract, msg.Sender, msg.Msg, msg.SentFunds, msg.CallbackSig, wasmtypes.HandleTypeExecute)
207207
if err != nil {
208208
ctx.Logger().Error("Failed to execute cron message", "error", err)
209-
return err
209+
// return err
210210
}
211-
fmt.Printf("res: %+v\n", res)
212211
}
213212

214213
fmt.Printf("setRandomSeed\n")

0 commit comments

Comments
 (0)