Skip to content

Conversation

@cboh4
Copy link
Contributor

@cboh4 cboh4 commented Apr 10, 2025

No description provided.

@cboh4 cboh4 force-pushed the cron-module branch 2 times, most recently from 25b4370 to f4b586e Compare April 14, 2025 12:57
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

path flow from Begin/EndBlock to a panic call
path flow from Begin/EndBlock to a panic call
path flow from Begin/EndBlock to a panic call
path flow from Begin/EndBlock to a panic call
path flow from Begin/EndBlock to a panic call
Copy link
Contributor

@valdok valdok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be removed?

Comment on lines 200 to 208
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
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this correct.
Here you execute cron messages first (before block txs).
Whereas in the enclave code cron messages are appended last.

iKapitonau
iKapitonau previously approved these changes May 30, 2025
package nullify

import (
"reflect"

Check notice

Code scanning / CodeQL

Sensitive package import Note test

Certain system packages contain functions which may be a possible source of non-determinism

import (
"reflect"
"unsafe"

Check notice

Code scanning / CodeQL

Sensitive package import Note test

Certain system packages contain functions which may be a possible source of non-determinism

import (
context "context"
reflect "reflect"

Check notice

Code scanning / CodeQL

Sensitive package import Note test

Certain system packages contain functions which may be a possible source of non-determinism
@valdok valdok merged commit 508c03a into master Jul 28, 2025
8 of 12 checks passed
@valdok valdok deleted the cron-module branch July 28, 2025 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants