Trigger an action after proposing block #74
Answered
by
facundomedica
guilherme-brandao
asked this question in
Chain Builders (Cosmos SDK)
-
I would like to trigger a specific action after the leader proposes the block; only the leader needs to do it. I was searching for something similar to |
Beta Was this translation helpful? Give feedback.
Answered by
facundomedica
Feb 28, 2024
Replies: 1 comment 2 replies
-
Hey! I think what you are referring to can be done in PrepareProposal, you can add a custom message in the block that will get executed. You'll also give a chance to the other validators to verify that this custom message is actually valid in ProcessProposal. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
tac0turtle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! I think what you are referring to can be done in PrepareProposal, you can add a custom message in the block that will get executed. You'll also give a chance to the other validators to verify that this custom message is actually valid in ProcessProposal.