Skip to content

go/consensus/cometbft/api: Remove message execution from context#6535

Merged
peternose merged 2 commits into
masterfrom
peternose/trivial/rename-msg-execution
May 26, 2026
Merged

go/consensus/cometbft/api: Remove message execution from context#6535
peternose merged 2 commits into
masterfrom
peternose/trivial/rename-msg-execution

Conversation

@peternose
Copy link
Copy Markdown
Collaborator

@peternose peternose commented May 22, 2026

Application roothash uses a message execution context when processing and executing runtime messages. This context was introduced solely to reject runtime escrow messages when they are forbidden by consensus. Therefore, it should not be used in other applications. However, since the vault application can also process and execute messages, the current naming implies that it should use the aforementioned context as well. To avoid this ambiguity, we are renaming the message execution context to roothash execution context, emphasizing that only roothash messages are executed within this context.

UPDATE: Since renaming was a bad idea, this PR introduces sender of application messages and uses it to figure out the origin of the message and then decide if it comes from roothash or not.

@peternose peternose requested review from kostko and ptrus as code owners May 22, 2026 16:33
@netlify
Copy link
Copy Markdown

netlify Bot commented May 22, 2026

Deploy Preview for oasisprotocol-oasis-core canceled.

Name Link
🔨 Latest commit ed64c05
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-oasis-core/deploys/6a15b1bf9a30790007339187

@peternose peternose force-pushed the peternose/trivial/rename-msg-execution branch from 6b133a0 to 8c4c2f1 Compare May 22, 2026 16:39
Copy link
Copy Markdown
Member

@kostko kostko left a comment

Choose a reason for hiding this comment

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

I don't think I like this as the context should be more general than an individual app (roothash)?

@peternose peternose force-pushed the peternose/trivial/rename-msg-execution branch from 8c4c2f1 to 0a904bc Compare May 25, 2026 23:00
@peternose peternose changed the title go/consensus/cometbft/api/context: Rename message execution go/consensus/cometbft/api: Remove message execution from context May 26, 2026
@peternose peternose force-pushed the peternose/trivial/rename-msg-execution branch from 0a904bc to ed64c05 Compare May 26, 2026 14:44
@peternose peternose merged commit 4e40f52 into master May 26, 2026
5 checks passed
@peternose peternose deleted the peternose/trivial/rename-msg-execution branch May 26, 2026 15:35
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.

2 participants