Skip to content
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

GoQuorum ATs: run the estimate gas test #2294

Merged
merged 7 commits into from
May 20, 2021

Conversation

macfarla
Copy link
Contributor

@macfarla macfarla commented May 19, 2021

Signed-off-by: Sally MacFarlane sally.macfarlane@consensys.net

Revert #2282
Enabling one more passing GoQuorum AT
See #2282

Changelog

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
@macfarla macfarla changed the title run the estimate gas test GoQuorum ATs: run the estimate gas test May 19, 2021
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
@macfarla macfarla marked this pull request as draft May 19, 2021 02:28
macfarla added 2 commits May 19, 2021 13:16
…)"

This reverts commit 3627662.

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
@macfarla macfarla marked this pull request as ready for review May 19, 2021 03:40
// It is possible to have a data field that has a lower intrinsic value than the PTM hash
// so this checks the tx as if we were to place a PTM hash (with all non-zero values).
// This means a potential over-estimate of gas, rather than the exact cost to run right now.
final Bytes payload =
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't needed now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah this PR is reverting my previous one

@@ -198,6 +179,10 @@ public TransactionSimulator(

final Transaction transaction = transactionBuilder.build();

final ProtocolSpec protocolSpec = protocolSchedule.getByBlockNumber(header.getNumber());

final MainnetTransactionProcessor transactionProcessor =
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the impact of moving this from before, to after the transaction is built?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no impact. I can move it back

Copy link
Contributor

@mark-terry mark-terry left a comment

Choose a reason for hiding this comment

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

LGTM.

macfarla added 2 commits May 20, 2021 11:49
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
@macfarla macfarla enabled auto-merge (squash) May 20, 2021 01:56
@macfarla macfarla merged commit cd88151 into hyperledger:master May 20, 2021
@macfarla macfarla deleted the gas-est-gq-at branch May 20, 2021 02:18
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
* run the estimate gas test
* Revert "Modify Gas estimation logic for GoQuorum mode (hyperledger#2282)"

This reverts commit 3627662.

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

Co-authored-by: mark-terry <36909937+mark-terry@users.noreply.github.com>
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