-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Re-enable gas price #624
Re-enable gas price #624
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.
I've done some initial testing and found one issue (on raft) - if I submit a transaction with zero gasPrice, it goes into pending state and is never completed, e.g.:
eth.sendTransaction({from:"0xed9d02e382b34818e88b88a309c7fe71e65f419d",to:"0xcc71c7546429a13796cf1bf9228bff213e7ae9cc",value:1,gasPrice:0,gas:21000})
Also, the changes are causing a number of acceptance tests to fail (https://github.com/jpmorganchase/quorum-acceptance-tests). I'll try and dig deeper into the reasons for these - but it may just be due to some transactions getting stuck in pending and causing following tests to fail.
Thanks @SatpalSandhu61 |
Further to Satpal's comment above, this is due to the transactions not being accepted on remote nodes due to a too low gas price. See txpool.go:172 for the condition, which should be reviewed. The check should compare against a Price Limit of 0. |
I have adjusted the flow in tx_pool.go to reset the default Transaction price limit for Quorum to zero and all tests are passing. Do check and let me know if the changes are ok |
Note that this PR is on our backlog, pending some associated changes that are being worked on, and some further testing. |
Great to here @SatpalSandhu61 . As soon as this pull is in we'll be able to migrate to Quorum because I need transactions to require Eth. As there is no mining I am keen to know where the transaction fee goes: to the Validator? |
@pjworrall the account where the fees go is actually the bit we're working on. It will be the coinbase account, or the account associated with the minting node. There are some nuances which are currently being ironed out, around the relationship of the account on the type of consensus used. |
Note that this PR should not be merged as it's not complete. Work to enable gas price is ongoing on a different branch. |
Aravind Oommen seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Any news on this? |
Superseded by #1446 |
The changes here allow users to specify a non-zero gas price for Quorum transactions. Previously Quorum only worked with a zero gas price. This is useful to enable network metering especially in consortium projects where the network enablers can be compensated for their costs. It's backward compatible in that the gas price can still be zero.
@fixanoid @joelburget I have incorporated code changes from the below pull request
#288