Skip to content

Conversation

@zsfelfoldi
Copy link
Contributor

Add "local" parameter for adding transactions which circumvents gas price checking against local miner minimum

@robotally
Copy link

Vote Count Reviewers
👍 2 @obscuren @zelig
👎 0

Updated: Wed Dec 16 15:14:48 UTC 2015

@zsfelfoldi zsfelfoldi self-assigned this Nov 21, 2015
@codecov-io
Copy link

Current coverage is 43.79%

Merging #1997 into develop will increase coverage by +0.01% as of 4346ab7

Powered by Codecov. Updated on successful CI builds.

@alexvandesande
Copy link

👏🏻👏🏻👏🏻 Extremely needed!

Copy link
Member

Choose a reason for hiding this comment

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

Maybe consider instead providing a local bool flag to AddTransactions? I'm not sure we need to separate method calls for it. Similarly, if the old one is AddTransactions, a new version should be AddLocalTransactions (note, plural) to keep the naming and parametrization consistent.

Edit: Maintaining a single method would also solve the issue that you didn't write any error handling :P (logs, etc).

@obscuren obscuren modified the milestone: 1.4.0 Nov 25, 2015
@obscuren
Copy link
Contributor

👎 Please go with the single method approach and add some tests for this newly created behaviour.

@obscuren obscuren changed the title Fix gas price issues core: tx pool skip price validation for "owned" transactions Nov 25, 2015
@alexvandesande
Copy link

@obscuren what do you mean by "single method approach"?

@obscuren
Copy link
Contributor

@alexvandesande AddLocal(tx) vs Add(tx, local)

@zsfelfoldi
Copy link
Contributor Author

Locality of a transaction is now marked in a map instead of passing a flag when adding the transaction. The reason for this is that transactions are sometimes put back into the tx pool when reorganizing chain so we need to remember which one was local.
Still need to add some tests and remove old entries from the map.

@zsfelfoldi
Copy link
Contributor Author

ready for review

@obscuren
Copy link
Contributor

obscuren commented Dec 7, 2015

Please squash and format commit

@obscuren
Copy link
Contributor

👍

Copy link
Member

Choose a reason for hiding this comment

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

@zsfelfoldi, could you rebase and add this line in the new RPC method since XEth will be removed?
Location is eth/api.go.

Should this line also be added to the sendRawTransaction?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bas-vk done, added it to sendRawTransaction too. I think you're right about that, a raw transaction might have been signed somewhere else but if a local application intends to add it then the local client should always accept it.

@zelig
Copy link
Contributor

zelig commented Dec 16, 2015

👍 LGTM

obscuren added a commit that referenced this pull request Dec 17, 2015
core: tx pool skip price validation for "owned" transactions
@obscuren obscuren merged commit 82a024d into ethereum:develop Dec 17, 2015
@obscuren obscuren removed the review label Dec 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

8 participants