{"action":"created","comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/comments/61671552","id":61671552,"diff_hunk":"@@ -672,10 +672,10 @@ class CTxMemPool\n class CCoinsViewMemPool : public CCoinsViewBacked\n {\n protected:\n-    CTxMemPool &mempool;\n+    const CTxMemPool &mempool;\n \n public:\n-    CCoinsViewMemPool(CCoinsView *baseIn, CTxMemPool &mempoolIn);\n+    CCoinsViewMemPool(CCoinsView *baseIn, const CTxMemPool &mempoolIn);","path":"src/txmempool.h","position":9,"original_position":9,"commit_id":"1a7539b7fc663f145f5da79cf0753b05ac60f434","original_commit_id":"1a7539b7fc663f145f5da79cf0753b05ac60f434","user":{"login":"MarcoFalke","id":6399679,"avatar_url":"https://avatars.githubusercontent.com/u/6399679?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcoFalke","html_url":"https://github.com/MarcoFalke","followers_url":"https://api.github.com/users/MarcoFalke/followers","following_url":"https://api.github.com/users/MarcoFalke/following{/other_user}","gists_url":"https://api.github.com/users/MarcoFalke/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcoFalke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcoFalke/subscriptions","organizations_url":"https://api.github.com/users/MarcoFalke/orgs","repos_url":"https://api.github.com/users/MarcoFalke/repos","events_url":"https://api.github.com/users/MarcoFalke/events{/privacy}","received_events_url":"https://api.github.com/users/MarcoFalke/received_events","type":"User","site_admin":false},"body":"nit: If you do trivial fixes, please also do all other trivial fixes in the same line:\r\n\r\n```diff\r\ndiff --git a/src/main.cpp b/src/main.cpp\r\nindex ed34137..2777245 100644\r\n--- a/src/main.cpp\r\n+++ b/src/main.cpp\r\n@@ -1471 +1471 @@ bool GetTransaction(const uint256 &hash, CTransaction &txOut, const Consensus::P\r\n-            const CCoinsViewCache &view = *pcoinsTip;\r\n+            const CCoinsViewCache& view = *pcoinsTip;\r\ndiff --git a/src/txmempool.h b/src/txmempool.h\r\nindex c991514..d17e332 100644\r\n--- a/src/txmempool.h\r\n+++ b/src/txmempool.h\r\n@@ -675 +675 @@ protected:\r\n-    const CTxMemPool &mempool;\r\n+    const CTxMemPool& mempool;\r\n@@ -678 +678 @@ public:\r\n-    CCoinsViewMemPool(CCoinsView *baseIn, const CTxMemPool &mempoolIn);\r\n+    CCoinsViewMemPool(CCoinsView* baseIn, const CTxMemPool& mempoolIn);\r\n","created_at":"2016-04-30T16:17:18Z","updated_at":"2016-04-30T16:17:18Z","html_url":"https://github.com/bitcoin/bitcoin/pull/7977#discussion_r61671552","pull_request_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/7977","_links":{"self":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/comments/61671552"},"html":{"href":"https://github.com/bitcoin/bitcoin/pull/7977#discussion_r61671552"},"pull_request":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/7977"}}},"pull_request":{"url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/7977","id":68465486,"html_url":"https://github.com/bitcoin/bitcoin/pull/7977","diff_url":"https://github.com/bitcoin/bitcoin/pull/7977.diff","patch_url":"https://github.com/bitcoin/bitcoin/pull/7977.patch","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/7977","number":7977,"state":"open","locked":false,"title":"[trivial] Add missing const qualifiers.","user":{"login":"domob1812","id":4943644,"avatar_url":"https://avatars.githubusercontent.com/u/4943644?v=3","gravatar_id":"","url":"https://api.github.com/users/domob1812","html_url":"https://github.com/domob1812","followers_url":"https://api.github.com/users/domob1812/followers","following_url":"https://api.github.com/users/domob1812/following{/other_user}","gists_url":"https://api.github.com/users/domob1812/gists{/gist_id}","starred_url":"https://api.github.com/users/domob1812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domob1812/subscriptions","organizations_url":"https://api.github.com/users/domob1812/orgs","repos_url":"https://api.github.com/users/domob1812/repos","events_url":"https://api.github.com/users/domob1812/events{/privacy}","received_events_url":"https://api.github.com/users/domob1812/received_events","type":"User","site_admin":false},"body":"Add some `const` qualifiers to references that are not modified and should be marked as const.","created_at":"2016-04-30T11:22:45Z","updated_at":"2016-04-30T16:17:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c529eaab94c19a101f4ce2cde39d43d1a090249","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/7977/commits","review_comments_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/7977/comments","review_comment_url":"https://api.github.com/repos/bitcoin/bitcoin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/7977/comments","statuses_url":"https://api.github.com/repos/bitcoin/bitcoin/statuses/1a7539b7fc663f145f5da79cf0753b05ac60f434","head":{"label":"domob1812:consts","ref":"consts","sha":"1a7539b7fc663f145f5da79cf0753b05ac60f434","user":{"login":"domob1812","id":4943644,"avatar_url":"https://avatars.githubusercontent.com/u/4943644?v=3","gravatar_id":"","url":"https://api.github.com/users/domob1812","html_url":"https://github.com/domob1812","followers_url":"https://api.github.com/users/domob1812/followers","following_url":"https://api.github.com/users/domob1812/following{/other_user}","gists_url":"https://api.github.com/users/domob1812/gists{/gist_id}","starred_url":"https://api.github.com/users/domob1812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domob1812/subscriptions","organizations_url":"https://api.github.com/users/domob1812/orgs","repos_url":"https://api.github.com/users/domob1812/repos","events_url":"https://api.github.com/users/domob1812/events{/privacy}","received_events_url":"https://api.github.com/users/domob1812/received_events","type":"User","site_admin":false},"repo":{"id":29734429,"name":"bitcoin","full_name":"domob1812/bitcoin","owner":{"login":"domob1812","id":4943644,"avatar_url":"https://avatars.githubusercontent.com/u/4943644?v=3","gravatar_id":"","url":"https://api.github.com/users/domob1812","html_url":"https://github.com/domob1812","followers_url":"https://api.github.com/users/domob1812/followers","following_url":"https://api.github.com/users/domob1812/following{/other_user}","gists_url":"https://api.github.com/users/domob1812/gists{/gist_id}","starred_url":"https://api.github.com/users/domob1812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domob1812/subscriptions","organizations_url":"https://api.github.com/users/domob1812/orgs","repos_url":"https://api.github.com/users/domob1812/repos","events_url":"https://api.github.com/users/domob1812/events{/privacy}","received_events_url":"https://api.github.com/users/domob1812/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/domob1812/bitcoin","description":"Bitcoin Core integration/staging tree","fork":true,"url":"https://api.github.com/repos/domob1812/bitcoin","forks_url":"https://api.github.com/repos/domob1812/bitcoin/forks","keys_url":"https://api.github.com/repos/domob1812/bitcoin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/domob1812/bitcoin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/domob1812/bitcoin/teams","hooks_url":"https://api.github.com/repos/domob1812/bitcoin/hooks","issue_events_url":"https://api.github.com/repos/domob1812/bitcoin/issues/events{/number}","events_url":"https://api.github.com/repos/domob1812/bitcoin/events","assignees_url":"https://api.github.com/repos/domob1812/bitcoin/assignees{/user}","branches_url":"https://api.github.com/repos/domob1812/bitcoin/branches{/branch}","tags_url":"https://api.github.com/repos/domob1812/bitcoin/tags","blobs_url":"https://api.github.com/repos/domob1812/bitcoin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/domob1812/bitcoin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/domob1812/bitcoin/git/refs{/sha}","trees_url":"https://api.github.com/repos/domob1812/bitcoin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/domob1812/bitcoin/statuses/{sha}","languages_url":"https://api.github.com/repos/domob1812/bitcoin/languages","stargazers_url":"https://api.github.com/repos/domob1812/bitcoin/stargazers","contributors_url":"https://api.github.com/repos/domob1812/bitcoin/contributors","subscribers_url":"https://api.github.com/repos/domob1812/bitcoin/subscribers","subscription_url":"https://api.github.com/repos/domob1812/bitcoin/subscription","commits_url":"https://api.github.com/repos/domob1812/bitcoin/commits{/sha}","git_commits_url":"https://api.github.com/repos/domob1812/bitcoin/git/commits{/sha}","comments_url":"https://api.github.com/repos/domob1812/bitcoin/comments{/number}","issue_comment_url":"https://api.github.com/repos/domob1812/bitcoin/issues/comments{/number}","contents_url":"https://api.github.com/repos/domob1812/bitcoin/contents/{+path}","compare_url":"https://api.github.com/repos/domob1812/bitcoin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/domob1812/bitcoin/merges","archive_url":"https://api.github.com/repos/domob1812/bitcoin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/domob1812/bitcoin/downloads","issues_url":"https://api.github.com/repos/domob1812/bitcoin/issues{/number}","pulls_url":"https://api.github.com/repos/domob1812/bitcoin/pulls{/number}","milestones_url":"https://api.github.com/repos/domob1812/bitcoin/milestones{/number}","notifications_url":"https://api.github.com/repos/domob1812/bitcoin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/domob1812/bitcoin/labels{/name}","releases_url":"https://api.github.com/repos/domob1812/bitcoin/releases{/id}","deployments_url":"https://api.github.com/repos/domob1812/bitcoin/deployments","created_at":"2015-01-23T13:52:14Z","updated_at":"2016-02-07T10:28:23Z","pushed_at":"2016-04-30T11:25:18Z","git_url":"git://github.com/domob1812/bitcoin.git","ssh_url":"git@github.com:domob1812/bitcoin.git","clone_url":"https://github.com/domob1812/bitcoin.git","svn_url":"https://github.com/domob1812/bitcoin","homepage":"https://bitcoin.org/en/download","size":62070,"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":"0ad104190465d8d65c2344bbe10dcf3df025d86c","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}","deployments_url":"https://api.github.com/repos/bitcoin/bitcoin/deployments","created_at":"2010-12-19T15:16:43Z","updated_at":"2016-04-30T07:20:17Z","pushed_at":"2016-04-30T15:50:46Z","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":136348,"stargazers_count":8918,"watchers_count":8918,"language":"C++","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":6019,"mirror_url":null,"open_issues_count":461,"forks":6019,"open_issues":461,"watchers":8918,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/7977"},"html":{"href":"https://github.com/bitcoin/bitcoin/pull/7977"},"issue":{"href":"https://api.github.com/repos/bitcoin/bitcoin/issues/7977"},"comments":{"href":"https://api.github.com/repos/bitcoin/bitcoin/issues/7977/comments"},"review_comments":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/7977/comments"},"review_comment":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bitcoin/bitcoin/pulls/7977/commits"},"statuses":{"href":"https://api.github.com/repos/bitcoin/bitcoin/statuses/1a7539b7fc663f145f5da79cf0753b05ac60f434"}}}}