openethereum/ethcore
Fabio Lama 3f61f2d8d9 Add filtering capability to parity_pendingTransactions (issue 8269) (#10506)
* expand parameters for pending_transactions()

* move ready_transactions content into filtered method

* apply filter based on tx_hash, sender or receiver

* call filtered transactions from RPC interface

* attempt at testing...

* replace parameters with _ on light client

* addes some comments

* removed uncompleted tests in miner.rs

* attempt at testing, needs more work...

* Formatting for ready_transactions_filtered

Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com>

* Use map_or instead of if-let

Co-Authored-By: Tomasz Drwięga <tomusdrw@users.noreply.github.com>

* additional map_or replacement

* change receiver type to Option<Option<Address>>

* remove faulty MiningService tests, test RPC later

* remove tx hash from pending transaction filtering

* as_unsigned() method for SignedTransaction

* implement Deserialize for FilterOptions

* implement Validate for MapAccess type

* additional formatting

* directly name cover in pattern matching

* test valid vull deserialization

* test valid sender operators

* test valid receiver operators

* test valid gas operators

* test valid gas price operators

* test valid value operators

* test valid nonce operators

* additional tsets for defaults, unknown filter types, unknown operators and some renames

* move filter_options to ethcore to avoid package cycling

* adjusted function/method parameters for FilterOptions

* implement filter for sender and receiver

* implement filter for gas

* implement filter for gas price, tx value and nonce

* improve filtering implementation; use common function, use combinators

* improved documentation for FilterOptions

* small documentation adjustments

* remove warnings

* replace FilterOperator::ContractCreation with FilterOperator::Eq(None)

* implement validate_receiver

* make small changes like renames, preamble

* cleanup code according to suggestions, add docs

* small improvements like formatting and newline
2019-06-28 09:27:59 +01:00
..
benches Removed machine abstraction from ethcore (#10791) 2019-06-26 14:16:05 +02:00
blockchain updated project to ansi_term 0.11 (#10799) 2019-06-27 13:34:40 +02:00
call-contract docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
db Remove calls to heapsize (#10432) 2019-06-19 13:54:05 +02:00
evm docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
light removed EthEngine alias (#10805) 2019-06-28 10:18:18 +02:00
node-filter docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
private-tx docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
res added new ropsten-bootnode and removed old one (#10794) 2019-06-27 18:10:00 +08:00
service updated project to ansi_term 0.11 (#10799) 2019-06-27 13:34:40 +02:00
src Add filtering capability to parity_pendingTransactions (issue 8269) (#10506) 2019-06-28 09:27:59 +01:00
sync Do not drop the peer with None difficulty (#10772) 2019-06-27 17:45:21 +02:00
types Add filtering capability to parity_pendingTransactions (issue 8269) (#10506) 2019-06-28 09:27:59 +01:00
vm Cleanup unused vm dependencies (#10787) 2019-06-26 14:17:17 +02:00
wasm docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
Cargo.toml Add filtering capability to parity_pendingTransactions (issue 8269) (#10506) 2019-06-28 09:27:59 +01:00