-
Notifications
You must be signed in to change notification settings - Fork 884
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added zero gasPrice validation for Quorum compatibility mode. #1554
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it worth putting a TODO to say when quorum implements support for non-zero gas we can remove this restriction?
...um/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/MainnetTransactionValidator.java
Outdated
Show resolved
Hide resolved
besu/src/test/java/org/hyperledger/besu/cli/BesuCommandTest.java
Outdated
Show resolved
Hide resolved
as discussed would be good to get the msg about zero gasPrice propagated to RPC response (currently "invalid params") |
Do we have a policy against putting TODO's into the codebase? I'm neutral but if so, we could flag to Nicolas Maurice to ensure we capture this in that work. Let me know if you want to go down that route instead of the TODO. |
Signed-off-by: Mark Terry <mark.terry@consensys.net>
Signed-off-by: Mark Terry <mark.terry@consensys.net>
Signed-off-by: Mark Terry <mark.terry@consensys.net>
Signed-off-by: Mark Terry <mark.terry@consensys.net>
Signed-off-by: Mark Terry <mark.terry@consensys.net>
Signed-off-by: Mark Terry <mark.terry@consensys.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall LGTM - still some instances of Quorum that should be goQuorum
@@ -30,7 +30,8 @@ public static ProtocolSchedule create( | |||
config, | |||
builder -> builder.difficultyCalculator(FixedDifficultyCalculators.calculator(config)), | |||
privacyParameters, | |||
isMetadataEnabled) | |||
isMetadataEnabled, | |||
config.isQuorum()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this be isGoQuorum()
Signed-off-by: Mark Terry mark.terry@consensys.net
PR description
Updates transaction validation to enforce zero gasPrice when
isQuorum
genesis config is set.Fixed Issue(s)
Fixes #1551
Changelog