{"action":"created","comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/comments/37052088","id":37052088,"diff_hunk":"@@ -757,6 +761,16 @@ UniValue getchaintips(const UniValue& params, bool fHelp)\n     return res;\n }\n \n+UniValue mempoolInfoToJSON()\n+{\n+    UniValue ret(UniValue::VOBJ);\n+    ret.push_back(Pair(\"size\", (int64_t) mempool.size()));","path":"src/rpcblockchain.cpp","position":102,"original_position":102,"commit_id":"70180b2e576ebcb675c905ef4bd9d5b4fd378b6c","original_commit_id":"70180b2e576ebcb675c905ef4bd9d5b4fd378b6c","user":{"login":"paveljanik","id":6848764,"avatar_url":"https://avatars.githubusercontent.com/u/6848764?v=3","gravatar_id":"","url":"https://api.github.com/users/paveljanik","html_url":"https://github.com/paveljanik","followers_url":"https://api.github.com/users/paveljanik/followers","following_url":"https://api.github.com/users/paveljanik/following{/other_user}","gists_url":"https://api.github.com/users/paveljanik/gists{/gist_id}","starred_url":"https://api.github.com/users/paveljanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paveljanik/subscriptions","organizations_url":"https://api.github.com/users/paveljanik/orgs","repos_url":"https://api.github.com/users/paveljanik/repos","events_url":"https://api.github.com/users/paveljanik/events{/privacy}","received_events_url":"https://api.github.com/users/paveljanik/received_events","type":"User","site_admin":false},"body":"Eh? Please read the whole diff (I did not change that code at all).\r\n\r\nSpace before the cast? I hope we do not have a rule do not add a space after comma...\r\n","created_at":"2015-08-14T06:17:32Z","updated_at":"2015-08-14T06:17:32Z","html_url":"https://github.com/bitcoin/bitcoin/pull/6013#discussion_r37052088","pull_request_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6013","_links":{"self":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/comments/37052088"},"html":{"href":"https://github.com/bitcoin/bitcoin/pull/6013#discussion_r37052088"},"pull_request":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6013"}}},"pull_request":{"url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6013","id":33290596,"html_url":"https://github.com/bitcoin/bitcoin/pull/6013","diff_url":"https://github.com/bitcoin/bitcoin/pull/6013.diff","patch_url":"https://github.com/bitcoin/bitcoin/pull/6013.patch","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6013","number":6013,"state":"open","locked":false,"title":"[REST] Add memory pool API","user":{"login":"paveljanik","id":6848764,"avatar_url":"https://avatars.githubusercontent.com/u/6848764?v=3","gravatar_id":"","url":"https://api.github.com/users/paveljanik","html_url":"https://github.com/paveljanik","followers_url":"https://api.github.com/users/paveljanik/followers","following_url":"https://api.github.com/users/paveljanik/following{/other_user}","gists_url":"https://api.github.com/users/paveljanik/gists{/gist_id}","starred_url":"https://api.github.com/users/paveljanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paveljanik/subscriptions","organizations_url":"https://api.github.com/users/paveljanik/orgs","repos_url":"https://api.github.com/users/paveljanik/repos","events_url":"https://api.github.com/users/paveljanik/events{/privacy}","received_events_url":"https://api.github.com/users/paveljanik/received_events","type":"User","site_admin":false},"body":"As requested in #5844, memory pool API added.\r\n\r\nGet TX mempool info:\r\n\r\n```shell\r\n$ curl localhost:8332/rest/mempool/info.json 2>/dev/null | json_pp\r\n{\r\n   \"bytes\" : 877,\r\n   \"size\" : 2\r\n}\r\n$\r\n```\r\n\r\nGet TX mempool contents:\r\n\r\n```shell\r\n$ curl localhost:8332/rest/mempool/contents.json 2>/dev/null | json_pp\r\n{\r\n   \"d84fb825b54442d737f9026ac52c4208f48eae8e1aaf9c942acede7ee8457f35\" : {\r\n      \"currentpriority\" : 8060141.48717949,\r\n      \"time\" : 1429038596,\r\n      \"fee\" : 0.0001,\r\n      \"height\" : 352141,\r\n      \"depends\" : [],\r\n      \"startingpriority\" : 8060141.48717949,\r\n      \"size\" : 225\r\n   },\r\n...\r\n$ \r\n```\r\n\r\n","created_at":"2015-04-14T19:21:18Z","updated_at":"2015-08-14T06:17:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b116a4c26b1b86d9e2b7c2dd8cd624534af0124b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6013/commits","review_comments_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6013/comments","review_comment_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/6013/comments","statuses_url":"https://api.github.com/repos/bitcoin/bitcoin/statuses/70180b2e576ebcb675c905ef4bd9d5b4fd378b6c","head":{"label":"paveljanik:rest_mempool","ref":"rest_mempool","sha":"70180b2e576ebcb675c905ef4bd9d5b4fd378b6c","user":{"login":"paveljanik","id":6848764,"avatar_url":"https://avatars.githubusercontent.com/u/6848764?v=3","gravatar_id":"","url":"https://api.github.com/users/paveljanik","html_url":"https://github.com/paveljanik","followers_url":"https://api.github.com/users/paveljanik/followers","following_url":"https://api.github.com/users/paveljanik/following{/other_user}","gists_url":"https://api.github.com/users/paveljanik/gists{/gist_id}","starred_url":"https://api.github.com/users/paveljanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paveljanik/subscriptions","organizations_url":"https://api.github.com/users/paveljanik/orgs","repos_url":"https://api.github.com/users/paveljanik/repos","events_url":"https://api.github.com/users/paveljanik/events{/privacy}","received_events_url":"https://api.github.com/users/paveljanik/received_events","type":"User","site_admin":false},"repo":{"id":26064416,"name":"bitcoin","full_name":"paveljanik/bitcoin","owner":{"login":"paveljanik","id":6848764,"avatar_url":"https://avatars.githubusercontent.com/u/6848764?v=3","gravatar_id":"","url":"https://api.github.com/users/paveljanik","html_url":"https://github.com/paveljanik","followers_url":"https://api.github.com/users/paveljanik/followers","following_url":"https://api.github.com/users/paveljanik/following{/other_user}","gists_url":"https://api.github.com/users/paveljanik/gists{/gist_id}","starred_url":"https://api.github.com/users/paveljanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paveljanik/subscriptions","organizations_url":"https://api.github.com/users/paveljanik/orgs","repos_url":"https://api.github.com/users/paveljanik/repos","events_url":"https://api.github.com/users/paveljanik/events{/privacy}","received_events_url":"https://api.github.com/users/paveljanik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paveljanik/bitcoin","description":"Bitcoin Core integration/staging tree","fork":true,"url":"https://api.github.com/repos/paveljanik/bitcoin","forks_url":"https://api.github.com/repos/paveljanik/bitcoin/forks","keys_url":"https://api.github.com/repos/paveljanik/bitcoin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paveljanik/bitcoin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paveljanik/bitcoin/teams","hooks_url":"https://api.github.com/repos/paveljanik/bitcoin/hooks","issue_events_url":"https://api.github.com/repos/paveljanik/bitcoin/issues/events{/number}","events_url":"https://api.github.com/repos/paveljanik/bitcoin/events","assignees_url":"https://api.github.com/repos/paveljanik/bitcoin/assignees{/user}","branches_url":"https://api.github.com/repos/paveljanik/bitcoin/branches{/branch}","tags_url":"https://api.github.com/repos/paveljanik/bitcoin/tags","blobs_url":"https://api.github.com/repos/paveljanik/bitcoin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paveljanik/bitcoin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paveljanik/bitcoin/git/refs{/sha}","trees_url":"https://api.github.com/repos/paveljanik/bitcoin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paveljanik/bitcoin/statuses/{sha}","languages_url":"https://api.github.com/repos/paveljanik/bitcoin/languages","stargazers_url":"https://api.github.com/repos/paveljanik/bitcoin/stargazers","contributors_url":"https://api.github.com/repos/paveljanik/bitcoin/contributors","subscribers_url":"https://api.github.com/repos/paveljanik/bitcoin/subscribers","subscription_url":"https://api.github.com/repos/paveljanik/bitcoin/subscription","commits_url":"https://api.github.com/repos/paveljanik/bitcoin/commits{/sha}","git_commits_url":"https://api.github.com/repos/paveljanik/bitcoin/git/commits{/sha}","comments_url":"https://api.github.com/repos/paveljanik/bitcoin/comments{/number}","issue_comment_url":"https://api.github.com/repos/paveljanik/bitcoin/issues/comments{/number}","contents_url":"https://api.github.com/repos/paveljanik/bitcoin/contents/{+path}","compare_url":"https://api.github.com/repos/paveljanik/bitcoin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paveljanik/bitcoin/merges","archive_url":"https://api.github.com/repos/paveljanik/bitcoin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paveljanik/bitcoin/downloads","issues_url":"https://api.github.com/repos/paveljanik/bitcoin/issues{/number}","pulls_url":"https://api.github.com/repos/paveljanik/bitcoin/pulls{/number}","milestones_url":"https://api.github.com/repos/paveljanik/bitcoin/milestones{/number}","notifications_url":"https://api.github.com/repos/paveljanik/bitcoin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paveljanik/bitcoin/labels{/name}","releases_url":"https://api.github.com/repos/paveljanik/bitcoin/releases{/id}","created_at":"2014-11-01T21:53:59Z","updated_at":"2015-04-15T20:16:54Z","pushed_at":"2015-08-14T05:02:57Z","git_url":"git://github.com/paveljanik/bitcoin.git","ssh_url":"git@github.com:paveljanik/bitcoin.git","clone_url":"https://github.com/paveljanik/bitcoin.git","svn_url":"https://github.com/paveljanik/bitcoin","homepage":"https://bitcoin.org/en/download","size":52768,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bitcoin:master","ref":"master","sha":"87f37e259d6deb52ee464edde7aece687eea97a5","user":{"login":"bitcoin","id":528860,"avatar_url":"https://avatars.githubusercontent.com/u/528860?v=3","gravatar_id":"","url":"https://api.github.com/users/bitcoin","html_url":"https://github.com/bitcoin","followers_url":"https://api.github.com/users/bitcoin/followers","following_url":"https://api.github.com/users/bitcoin/following{/other_user}","gists_url":"https://api.github.com/users/bitcoin/gists{/gist_id}","starred_url":"https://api.github.com/users/bitcoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitcoin/subscriptions","organizations_url":"https://api.github.com/users/bitcoin/orgs","repos_url":"https://api.github.com/users/bitcoin/repos","events_url":"https://api.github.com/users/bitcoin/events{/privacy}","received_events_url":"https://api.github.com/users/bitcoin/received_events","type":"Organization","site_admin":false},"repo":{"id":1181927,"name":"bitcoin","full_name":"bitcoin/bitcoin","owner":{"login":"bitcoin","id":528860,"avatar_url":"https://avatars.githubusercontent.com/u/528860?v=3","gravatar_id":"","url":"https://api.github.com/users/bitcoin","html_url":"https://github.com/bitcoin","followers_url":"https://api.github.com/users/bitcoin/followers","following_url":"https://api.github.com/users/bitcoin/following{/other_user}","gists_url":"https://api.github.com/users/bitcoin/gists{/gist_id}","starred_url":"https://api.github.com/users/bitcoin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitcoin/subscriptions","organizations_url":"https://api.github.com/users/bitcoin/orgs","repos_url":"https://api.github.com/users/bitcoin/repos","events_url":"https://api.github.com/users/bitcoin/events{/privacy}","received_events_url":"https://api.github.com/users/bitcoin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bitcoin/bitcoin","description":"Bitcoin Core integration/staging tree","fork":false,"url":"https://api.github.com/repos/bitcoin/bitcoin","forks_url":"https://api.github.com/repos/bitcoin/bitcoin/forks","keys_url":"https://api.github.com/repos/bitcoin/bitcoin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bitcoin/bitcoin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bitcoin/bitcoin/teams","hooks_url":"https://api.github.com/repos/bitcoin/bitcoin/hooks","issue_events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/events{/number}","events_url":"https://api.github.com/repos/bitcoin/bitcoin/events","assignees_url":"https://api.github.com/repos/bitcoin/bitcoin/assignees{/user}","branches_url":"https://api.github.com/repos/bitcoin/bitcoin/branches{/branch}","tags_url":"https://api.github.com/repos/bitcoin/bitcoin/tags","blobs_url":"https://api.github.com/repos/bitcoin/bitcoin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bitcoin/bitcoin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bitcoin/bitcoin/git/refs{/sha}","trees_url":"https://api.github.com/repos/bitcoin/bitcoin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bitcoin/bitcoin/statuses/{sha}","languages_url":"https://api.github.com/repos/bitcoin/bitcoin/languages","stargazers_url":"https://api.github.com/repos/bitcoin/bitcoin/stargazers","contributors_url":"https://api.github.com/repos/bitcoin/bitcoin/contributors","subscribers_url":"https://api.github.com/repos/bitcoin/bitcoin/subscribers","subscription_url":"https://api.github.com/repos/bitcoin/bitcoin/subscription","commits_url":"https://api.github.com/repos/bitcoin/bitcoin/commits{/sha}","git_commits_url":"https://api.github.com/repos/bitcoin/bitcoin/git/commits{/sha}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/comments{/number}","issue_comment_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments{/number}","contents_url":"https://api.github.com/repos/bitcoin/bitcoin/contents/{+path}","compare_url":"https://api.github.com/repos/bitcoin/bitcoin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bitcoin/bitcoin/merges","archive_url":"https://api.github.com/repos/bitcoin/bitcoin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bitcoin/bitcoin/downloads","issues_url":"https://api.github.com/repos/bitcoin/bitcoin/issues{/number}","pulls_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls{/number}","milestones_url":"https://api.github.com/repos/bitcoin/bitcoin/milestones{/number}","notifications_url":"https://api.github.com/repos/bitcoin/bitcoin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/labels{/name}","releases_url":"https://api.github.com/repos/bitcoin/bitcoin/releases{/id}","created_at":"2010-12-19T15:16:43Z","updated_at":"2015-08-14T04:10:59Z","pushed_at":"2015-08-14T05:03:01Z","git_url":"git://github.com/bitcoin/bitcoin.git","ssh_url":"git@github.com:bitcoin/bitcoin.git","clone_url":"https://github.com/bitcoin/bitcoin.git","svn_url":"https://github.com/bitcoin/bitcoin","homepage":"https://bitcoin.org/en/download","size":131614,"stargazers_count":7292,"watchers_count":7292,"language":"C++","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":5078,"mirror_url":null,"open_issues_count":435,"forks":5078,"open_issues":435,"watchers":7292,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6013"},"html":{"href":"https://github.com/bitcoin/bitcoin/pull/6013"},"issue":{"href":"https://api.github.com/repos/bitcoin/bitcoin/issues/6013"},"comments":{"href":"https://api.github.com/repos/bitcoin/bitcoin/issues/6013/comments"},"review_comments":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6013/comments"},"review_comment":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/6013/commits"},"statuses":{"href":"https://api.github.com/repos/bitcoin/bitcoin/statuses/70180b2e576ebcb675c905ef4bd9d5b4fd378b6c"}}}}