-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Allow specifying local accounts via CLI #9960
Conversation
It looks like @insipx hasn't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement at the following URL: https://cla.parity.io Once you've signed, please reply to this thread with Many thanks, Parity Technologies CLA Bot |
[clabot:check] |
It looks like @insipx signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
d758b77
to
6aba887
Compare
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!
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.
Test would be nice
ethcore/src/miner/miner.rs
Outdated
let sender = pending.sender(); | ||
let treat_as_local = trusted | ||
|| !self.options.tx_queue_no_unfamiliar_locals | ||
|| self.accounts.as_ref().map(|accts| accts.has_account(sender)).unwrap_or(false); | ||
|| self.accounts.as_ref().map(|accts| accts.has_account(sender)).unwrap_or(false) | ||
|| self.options.tx_queue_locals.iter().any(|addr| *addr == sender); |
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.
Most likely the set should be considered even if tx_queue_no_unfamiliar_locals
is enabled
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.
Looks like that's the current behavior.
👍 needs a 2nd review |
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.
Looks good overall. Minor nits and maybe improved test.
Are you still working on this @insipx? |
Yep, |
d32e7fa
to
f37089b
Compare
@dvdplm could you have a look at this again? |
@insipx could you rebase? |
* Add `tx-queue-locals` CLI option * ethcore: modify miner to check options vec before importing transaction * modify tests (ethcore/parity) Resolves openethereum#9634
Co-Authored-By: insipx <aplaza@liquidthink.net>
f37089b
to
a7680c6
Compare
…nsi-local-priority-txs
Restarted CI |
…local-priority-txs
@tomusdrw could you look at this again? |
tx-queue-locals
CLI optionResolves #9634