Skip to content

Conversation

@halibobo1205
Copy link
Contributor

What does this PR do?
Disable market transaction since 4.8.1.
Why are these changes required?
Market transaction is not used.
This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

testAllowTvmSelfdestructRestrictionProposal();

thrown = assertThrows(ContractValidateException.class, r1);
assertEquals("Bad chain parameter id [ALLOW_MARKET_TRANSACTION]", thrown.getMessage());
Copy link

Choose a reason for hiding this comment

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

Should the boundary version be explicitly set here?

forkUtils.getManager().getDynamicPropertiesStore().statsByVersion(
        ForkBlockVersionEnum.VERSION_4_8_1.getValue(), stats);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

ThrowingRunnable open = () -> ProposalUtil.validator(dynamicPropertiesStore, forkUtils,
ProposalType.ALLOW_MARKET_TRANSACTION.getCode(), 1);

ContractValidateException thrown = assertThrows(ContractValidateException.class, open);
Copy link

Choose a reason for hiding this comment

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

Is there implicit version information here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Bad chain parameter id [ALLOW_MARKET_TRANSACTION] since 4.8.1, like this?
I noticed that the previous notice lacked version information. Is the newly added version information meant to distinguish between versions before 4.1 and versions 4.8.1 and later?

Copy link

Choose a reason for hiding this comment

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

It’s also fine to keep it as is now.

Copy link
Contributor

@waynercheung waynercheung left a comment

Choose a reason for hiding this comment

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

LGTM

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.

3 participants