Skip to content

Move MsgSubmitProposal of group module to non-determinstic gas#104

Open
TxCorpi0x wants to merge 1 commit intomasterfrom
mehdi/group-proposal-withdraw-gas
Open

Move MsgSubmitProposal of group module to non-determinstic gas#104
TxCorpi0x wants to merge 1 commit intomasterfrom
mehdi/group-proposal-withdraw-gas

Conversation

@TxCorpi0x
Copy link
Contributor

@TxCorpi0x TxCorpi0x commented Mar 11, 2026

Description

This pull request updates the deterministic gas configuration for group messages by moving MsgWithdrawProposal from the deterministic to the non-deterministic category. This change ensures more consistent gas estimation logic for proposal-related messages and updates the associated tests to reflect the new categorization.

Changes to gas configuration logic:

  • Removed MsgWithdrawProposal from the deterministic gas mapping in DefaultConfig, so it no longer uses a fixed gas value.
  • Added MsgWithdrawProposal to the list of non-deterministic messages in DefaultConfig, aligning its treatment with other proposal-related messages.

Test updates:

  • Updated TestDeterministicGas_DeterministicMessages to reflect the new counts: increased non-deterministic messages by one and decreased deterministic messages by one.

Reviewers checklist:

  • Try to write more meaningful comments with clear actions to be taken.
  • Nit-picking should be unblocking. Focus on core issues.

Authors checklist

  • Provide a concise and meaningful description
  • Review the code yourself first, before making the PR.
  • Annotate your PR in places that require explanation.
  • Think and try to split the PR to smaller PR if it is big.

This change is Reviewable

@TxCorpi0x TxCorpi0x requested a review from a team as a code owner March 11, 2026 16:38
@TxCorpi0x TxCorpi0x requested review from akhlopiachyi, masihyeganeh, metalarm10, miladz68 and ysv and removed request for a team March 11, 2026 16:38
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.

1 participant