{"action":"created","issue":{"url":"https://api.github.com/repos/paritytech/parity-ethereum/issues/9713","repository_url":"https://api.github.com/repos/paritytech/parity-ethereum","labels_url":"https://api.github.com/repos/paritytech/parity-ethereum/issues/9713/labels{/name}","comments_url":"https://api.github.com/repos/paritytech/parity-ethereum/issues/9713/comments","events_url":"https://api.github.com/repos/paritytech/parity-ethereum/issues/9713/events","html_url":"https://github.com/paritytech/parity-ethereum/issues/9713","id":367585419,"node_id":"MDU6SXNzdWUzNjc1ODU0MTk=","number":9713,"title":"Feature request: parity_allTransactionHashes / parity_watchPendingTransactions","user":{"login":"fanatid","id":2633065,"node_id":"MDQ6VXNlcjI2MzMwNjU=","avatar_url":"https://avatars2.githubusercontent.com/u/2633065?v=4","gravatar_id":"","url":"https://api.github.com/users/fanatid","html_url":"https://github.com/fanatid","followers_url":"https://api.github.com/users/fanatid/followers","following_url":"https://api.github.com/users/fanatid/following{/other_user}","gists_url":"https://api.github.com/users/fanatid/gists{/gist_id}","starred_url":"https://api.github.com/users/fanatid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanatid/subscriptions","organizations_url":"https://api.github.com/users/fanatid/orgs","repos_url":"https://api.github.com/users/fanatid/repos","events_url":"https://api.github.com/users/fanatid/events{/privacy}","received_events_url":"https://api.github.com/users/fanatid/received_events","type":"User","site_admin":false},"labels":[{"id":290482951,"node_id":"MDU6TGFiZWwyOTA0ODI5NTE=","url":"https://api.github.com/repos/paritytech/parity-ethereum/labels/F8-enhancement%20%F0%9F%8E%8A","name":"F8-enhancement 🎊","color":"006b75","default":false},{"id":444761385,"node_id":"MDU6TGFiZWw0NDQ3NjEzODU=","url":"https://api.github.com/repos/paritytech/parity-ethereum/labels/M6-rpcapi%20%F0%9F%93%A3","name":"M6-rpcapi 📣","color":"EEF9F9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/paritytech/parity-ethereum/milestones/24","html_url":"https://github.com/paritytech/parity-ethereum/milestone/24","labels_url":"https://api.github.com/repos/paritytech/parity-ethereum/milestones/24/labels","id":3503556,"node_id":"MDk6TWlsZXN0b25lMzUwMzU1Ng==","number":24,"title":"2.3","description":"","creator":{"login":"5chdn","id":15729797,"node_id":"MDQ6VXNlcjE1NzI5Nzk3","avatar_url":"https://avatars3.githubusercontent.com/u/15729797?v=4","gravatar_id":"","url":"https://api.github.com/users/5chdn","html_url":"https://github.com/5chdn","followers_url":"https://api.github.com/users/5chdn/followers","following_url":"https://api.github.com/users/5chdn/following{/other_user}","gists_url":"https://api.github.com/users/5chdn/gists{/gist_id}","starred_url":"https://api.github.com/users/5chdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5chdn/subscriptions","organizations_url":"https://api.github.com/users/5chdn/orgs","repos_url":"https://api.github.com/users/5chdn/repos","events_url":"https://api.github.com/users/5chdn/events{/privacy}","received_events_url":"https://api.github.com/users/5chdn/received_events","type":"User","site_admin":false},"open_issues":183,"closed_issues":19,"state":"open","created_at":"2018-07-17T17:36:15Z","updated_at":"2018-11-02T19:31:48Z","due_on":"2018-12-10T08:00:00Z","closed_at":null},"comments":11,"created_at":"2018-10-07T19:29:31Z","updated_at":"2018-11-03T18:53:02Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"- **Parity Ethereum version**: 2.0.5\r\n- **Operating system**: Linux\r\n- **Installation**: binaries from vanity-service.parity.io\r\n- **Fully synchronized**: yes\r\n- **Network**: ethereum\r\n\r\nMy Parity instance run with `--tracing on --tx-queue-size=20000`\r\n\r\nI'd like watch on transactions in mempool, I can do this with [eth_newPendingTransactionFilter](https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_newpendingtransactionfilter), but there is no filter for removed transactions, so I decide call [parity_allTransactions](https://wiki.parity.io/JSONRPC-parity-module#parity_alltransactions) in loop ([parity_pendingTransactions](https://wiki.parity.io/JSONRPC-parity-module#parity_pendingtransactions) is very slow).\r\n\r\nMy problem is, that `parity_allTransactions` is slow too, if I run Parity with default tx queue size (8192) -- call usually takes ~0.2-0.3s, but with mempool 20k call takes up to 1.5s. Is there any ways how improve performance? Or maybe right way for observing on transactions in mempool? :)\r\n\r\nCommand for testing:\r\n```bash\r\n$ time curl -s -H \"Content-Type: application/json\" -X POST --data '{\"jsonrpc\":\"2.0\",\"method\":\"parity_allTransactions\",\"params\":[],\"id\":0}' http://localhost:8545 | jq .result | jq length\r\n18860\r\n\r\nreal\t0m1.456s\r\nuser\t0m1.269s\r\nsys\t0m0.137s\r\n```\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/paritytech/parity-ethereum/issues/comments/435612141","html_url":"https://github.com/paritytech/parity-ethereum/issues/9713#issuecomment-435612141","issue_url":"https://api.github.com/repos/paritytech/parity-ethereum/issues/9713","id":435612141,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTYxMjE0MQ==","user":{"login":"fanatid","id":2633065,"node_id":"MDQ6VXNlcjI2MzMwNjU=","avatar_url":"https://avatars2.githubusercontent.com/u/2633065?v=4","gravatar_id":"","url":"https://api.github.com/users/fanatid","html_url":"https://github.com/fanatid","followers_url":"https://api.github.com/users/fanatid/followers","following_url":"https://api.github.com/users/fanatid/following{/other_user}","gists_url":"https://api.github.com/users/fanatid/gists{/gist_id}","starred_url":"https://api.github.com/users/fanatid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanatid/subscriptions","organizations_url":"https://api.github.com/users/fanatid/orgs","repos_url":"https://api.github.com/users/fanatid/repos","events_url":"https://api.github.com/users/fanatid/events{/privacy}","received_events_url":"https://api.github.com/users/fanatid/received_events","type":"User","site_admin":false},"created_at":"2018-11-03T18:53:02Z","updated_at":"2018-11-03T18:53:02Z","author_association":"CONTRIBUTOR","body":"@tomusdrw I think I figured out now how `eth_subscribe` works for `newPendingTransactions`. I also checked `parity_subscribe` and found that method called every 1000ms.\r\nSo, question regarding `parity_watchPendingTransactions`.. it's not fully clear for me right now, how this should work? Should we make call like:\r\n```\r\n{ jsonrpc: '2.0', method: 'parity_watchTransactionPool', params: [], id: 1 }\r\n```\r\nand sent notifications like:\r\n```\r\n{ jsonrpc: '2.0', method: 'parity_watchTransactionPool', 'params': { hash: '0x...', action: 'added/dropped/etc' }\r\n```\r\n\r\nor we should do this in some other way?"}}
{"actor":{"display_login":"fanatid"}}