draft: cron module#1710
Conversation
25b4370 to
f4b586e
Compare
…ssages that would be executed in the next round
| ctx.Logger().Error("Failed to execute cron message", "error", err) | ||
| // return err | ||
| } | ||
| } |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
| for idx, msg := range execCronMsgs { | ||
| fmt.Printf("idx, msg: %+v %+v\n", idx, msg) | ||
| ctx = ctx.WithTxBytes(bytesCronMsgs[idx]) | ||
| _, err := am.keeper.Execute(ctx, msg.Contract, msg.Sender, msg.Msg, msg.SentFunds, msg.CallbackSig, wasmtypes.HandleTypeExecute) | ||
| if err != nil { | ||
| ctx.Logger().Error("Failed to execute cron message", "error", err) | ||
| // return err | ||
| } | ||
| } |
There was a problem hiding this comment.
Not sure if this correct.
Here you execute cron messages first (before block txs).
Whereas in the enclave code cron messages are appended last.
| package nullify | ||
|
|
||
| import ( | ||
| "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note test
|
|
||
| import ( | ||
| "reflect" | ||
| "unsafe" |
Check notice
Code scanning / CodeQL
Sensitive package import Note test
|
|
||
| import ( | ||
| context "context" | ||
| reflect "reflect" |
Check notice
Code scanning / CodeQL
Sensitive package import Note test
No description provided.