-
Notifications
You must be signed in to change notification settings - Fork 865
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
Conversation
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
…)" This reverts commit 3627662. Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
// 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 = |
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.
This isn't needed now?
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.
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 = |
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.
What's the impact of moving this from before, to after the transaction is built?
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.
no impact. I can move it back
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.
LGTM.
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
* 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>
Signed-off-by: Sally MacFarlane sally.macfarlane@consensys.net
Revert #2282
Enabling one more passing GoQuorum AT
See #2282
Changelog