{"action":"created","comment":{"url":"https://api.github.com/repos/exonum/exonum/pulls/comments/169145830","pull_request_review_id":97623425,"id":169145830,"diff_hunk":"@@ -439,6 +443,47 @@ impl Blockchain {\n         let it = peers_cache.iter().map(|(k, v)| (k, v.clone()));\n         it.collect()\n     }\n+\n+    /// Saves the given raw message to the consensus messages cache.\n+    pub fn save_message(&mut self, round: Round, raw: &RawMessage) {","path":"exonum/src/blockchain/mod.rs","position":35,"original_position":35,"commit_id":"49b05f37dced3341a4f709c7602c09f9d3bbb4e9","original_commit_id":"49b05f37dced3341a4f709c7602c09f9d3bbb4e9","user":{"login":"slowli","id":9612896,"avatar_url":"https://avatars0.githubusercontent.com/u/9612896?v=4","gravatar_id":"","url":"https://api.github.com/users/slowli","html_url":"https://github.com/slowli","followers_url":"https://api.github.com/users/slowli/followers","following_url":"https://api.github.com/users/slowli/following{/other_user}","gists_url":"https://api.github.com/users/slowli/gists{/gist_id}","starred_url":"https://api.github.com/users/slowli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slowli/subscriptions","organizations_url":"https://api.github.com/users/slowli/orgs","repos_url":"https://api.github.com/users/slowli/repos","events_url":"https://api.github.com/users/slowli/events{/privacy}","received_events_url":"https://api.github.com/users/slowli/received_events","type":"User","site_admin":false},"body":"Would it make sense to reduce this method to `save_messages(round, ::std::iter::once(raw))` to reduce code duplication?","created_at":"2018-02-19T18:18:48Z","updated_at":"2018-02-19T18:39:19Z","html_url":"https://github.com/exonum/exonum/pull/322#discussion_r169145830","pull_request_url":"https://api.github.com/repos/exonum/exonum/pulls/322","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/exonum/exonum/pulls/comments/169145830"},"html":{"href":"https://github.com/exonum/exonum/pull/322#discussion_r169145830"},"pull_request":{"href":"https://api.github.com/repos/exonum/exonum/pulls/322"}}},"pull_request":{"url":"https://api.github.com/repos/exonum/exonum/pulls/322","id":140280546,"html_url":"https://github.com/exonum/exonum/pull/322","diff_url":"https://github.com/exonum/exonum/pull/322.diff","patch_url":"https://github.com/exonum/exonum/pull/322.patch","issue_url":"https://api.github.com/repos/exonum/exonum/issues/322","number":322,"state":"open","locked":false,"title":"Consensus messages cache [ECR-205]","user":{"login":"skletsun","id":195867,"avatar_url":"https://avatars0.githubusercontent.com/u/195867?v=4","gravatar_id":"","url":"https://api.github.com/users/skletsun","html_url":"https://github.com/skletsun","followers_url":"https://api.github.com/users/skletsun/followers","following_url":"https://api.github.com/users/skletsun/following{/other_user}","gists_url":"https://api.github.com/users/skletsun/gists{/gist_id}","starred_url":"https://api.github.com/users/skletsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skletsun/subscriptions","organizations_url":"https://api.github.com/users/skletsun/orgs","repos_url":"https://api.github.com/users/skletsun/repos","events_url":"https://api.github.com/users/skletsun/events{/privacy}","received_events_url":"https://api.github.com/users/skletsun/received_events","type":"User","site_admin":false},"body":"Introducing a cache for consensus messages that stores all required information to database until new height achieved.\r\n\r\nCloses: https://github.com/exonum/exonum/issues/75","created_at":"2017-09-11T08:52:06Z","updated_at":"2018-02-19T18:39:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"668e0cfe4054fdfe927a8efc11cf9715720b350c","assignee":{"login":"skletsun","id":195867,"avatar_url":"https://avatars0.githubusercontent.com/u/195867?v=4","gravatar_id":"","url":"https://api.github.com/users/skletsun","html_url":"https://github.com/skletsun","followers_url":"https://api.github.com/users/skletsun/followers","following_url":"https://api.github.com/users/skletsun/following{/other_user}","gists_url":"https://api.github.com/users/skletsun/gists{/gist_id}","starred_url":"https://api.github.com/users/skletsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skletsun/subscriptions","organizations_url":"https://api.github.com/users/skletsun/orgs","repos_url":"https://api.github.com/users/skletsun/repos","events_url":"https://api.github.com/users/skletsun/events{/privacy}","received_events_url":"https://api.github.com/users/skletsun/received_events","type":"User","site_admin":false},"assignees":[{"login":"skletsun","id":195867,"avatar_url":"https://avatars0.githubusercontent.com/u/195867?v=4","gravatar_id":"","url":"https://api.github.com/users/skletsun","html_url":"https://github.com/skletsun","followers_url":"https://api.github.com/users/skletsun/followers","following_url":"https://api.github.com/users/skletsun/following{/other_user}","gists_url":"https://api.github.com/users/skletsun/gists{/gist_id}","starred_url":"https://api.github.com/users/skletsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skletsun/subscriptions","organizations_url":"https://api.github.com/users/skletsun/orgs","repos_url":"https://api.github.com/users/skletsun/repos","events_url":"https://api.github.com/users/skletsun/events{/privacy}","received_events_url":"https://api.github.com/users/skletsun/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"defuz","id":276041,"avatar_url":"https://avatars2.githubusercontent.com/u/276041?v=4","gravatar_id":"","url":"https://api.github.com/users/defuz","html_url":"https://github.com/defuz","followers_url":"https://api.github.com/users/defuz/followers","following_url":"https://api.github.com/users/defuz/following{/other_user}","gists_url":"https://api.github.com/users/defuz/gists{/gist_id}","starred_url":"https://api.github.com/users/defuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defuz/subscriptions","organizations_url":"https://api.github.com/users/defuz/orgs","repos_url":"https://api.github.com/users/defuz/repos","events_url":"https://api.github.com/users/defuz/events{/privacy}","received_events_url":"https://api.github.com/users/defuz/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/exonum/exonum/pulls/322/commits","review_comments_url":"https://api.github.com/repos/exonum/exonum/pulls/322/comments","review_comment_url":"https://api.github.com/repos/exonum/exonum/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exonum/exonum/issues/322/comments","statuses_url":"https://api.github.com/repos/exonum/exonum/statuses/49b05f37dced3341a4f709c7602c09f9d3bbb4e9","head":{"label":"skletsun:consensus_messages_cache","ref":"consensus_messages_cache","sha":"49b05f37dced3341a4f709c7602c09f9d3bbb4e9","user":{"login":"skletsun","id":195867,"avatar_url":"https://avatars0.githubusercontent.com/u/195867?v=4","gravatar_id":"","url":"https://api.github.com/users/skletsun","html_url":"https://github.com/skletsun","followers_url":"https://api.github.com/users/skletsun/followers","following_url":"https://api.github.com/users/skletsun/following{/other_user}","gists_url":"https://api.github.com/users/skletsun/gists{/gist_id}","starred_url":"https://api.github.com/users/skletsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skletsun/subscriptions","organizations_url":"https://api.github.com/users/skletsun/orgs","repos_url":"https://api.github.com/users/skletsun/repos","events_url":"https://api.github.com/users/skletsun/events{/privacy}","received_events_url":"https://api.github.com/users/skletsun/received_events","type":"User","site_admin":false},"repo":{"id":101765255,"name":"exonum","full_name":"skletsun/exonum","owner":{"login":"skletsun","id":195867,"avatar_url":"https://avatars0.githubusercontent.com/u/195867?v=4","gravatar_id":"","url":"https://api.github.com/users/skletsun","html_url":"https://github.com/skletsun","followers_url":"https://api.github.com/users/skletsun/followers","following_url":"https://api.github.com/users/skletsun/following{/other_user}","gists_url":"https://api.github.com/users/skletsun/gists{/gist_id}","starred_url":"https://api.github.com/users/skletsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skletsun/subscriptions","organizations_url":"https://api.github.com/users/skletsun/orgs","repos_url":"https://api.github.com/users/skletsun/repos","events_url":"https://api.github.com/users/skletsun/events{/privacy}","received_events_url":"https://api.github.com/users/skletsun/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/skletsun/exonum","description":"Exonum core repository","fork":true,"url":"https://api.github.com/repos/skletsun/exonum","forks_url":"https://api.github.com/repos/skletsun/exonum/forks","keys_url":"https://api.github.com/repos/skletsun/exonum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/skletsun/exonum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/skletsun/exonum/teams","hooks_url":"https://api.github.com/repos/skletsun/exonum/hooks","issue_events_url":"https://api.github.com/repos/skletsun/exonum/issues/events{/number}","events_url":"https://api.github.com/repos/skletsun/exonum/events","assignees_url":"https://api.github.com/repos/skletsun/exonum/assignees{/user}","branches_url":"https://api.github.com/repos/skletsun/exonum/branches{/branch}","tags_url":"https://api.github.com/repos/skletsun/exonum/tags","blobs_url":"https://api.github.com/repos/skletsun/exonum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/skletsun/exonum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/skletsun/exonum/git/refs{/sha}","trees_url":"https://api.github.com/repos/skletsun/exonum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/skletsun/exonum/statuses/{sha}","languages_url":"https://api.github.com/repos/skletsun/exonum/languages","stargazers_url":"https://api.github.com/repos/skletsun/exonum/stargazers","contributors_url":"https://api.github.com/repos/skletsun/exonum/contributors","subscribers_url":"https://api.github.com/repos/skletsun/exonum/subscribers","subscription_url":"https://api.github.com/repos/skletsun/exonum/subscription","commits_url":"https://api.github.com/repos/skletsun/exonum/commits{/sha}","git_commits_url":"https://api.github.com/repos/skletsun/exonum/git/commits{/sha}","comments_url":"https://api.github.com/repos/skletsun/exonum/comments{/number}","issue_comment_url":"https://api.github.com/repos/skletsun/exonum/issues/comments{/number}","contents_url":"https://api.github.com/repos/skletsun/exonum/contents/{+path}","compare_url":"https://api.github.com/repos/skletsun/exonum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/skletsun/exonum/merges","archive_url":"https://api.github.com/repos/skletsun/exonum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/skletsun/exonum/downloads","issues_url":"https://api.github.com/repos/skletsun/exonum/issues{/number}","pulls_url":"https://api.github.com/repos/skletsun/exonum/pulls{/number}","milestones_url":"https://api.github.com/repos/skletsun/exonum/milestones{/number}","notifications_url":"https://api.github.com/repos/skletsun/exonum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/skletsun/exonum/labels{/name}","releases_url":"https://api.github.com/repos/skletsun/exonum/releases{/id}","deployments_url":"https://api.github.com/repos/skletsun/exonum/deployments","created_at":"2017-08-29T13:36:07Z","updated_at":"2017-11-28T13:41:57Z","pushed_at":"2018-02-19T17:55:45Z","git_url":"git://github.com/skletsun/exonum.git","ssh_url":"git@github.com:skletsun/exonum.git","clone_url":"https://github.com/skletsun/exonum.git","svn_url":"https://github.com/skletsun/exonum","homepage":"http://exonum.com","size":4862,"stargazers_count":1,"watchers_count":1,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"exonum:master","ref":"master","sha":"154a34f690dfaabbf3e3e30212962c9383f37c50","user":{"login":"exonum","id":23138442,"avatar_url":"https://avatars1.githubusercontent.com/u/23138442?v=4","gravatar_id":"","url":"https://api.github.com/users/exonum","html_url":"https://github.com/exonum","followers_url":"https://api.github.com/users/exonum/followers","following_url":"https://api.github.com/users/exonum/following{/other_user}","gists_url":"https://api.github.com/users/exonum/gists{/gist_id}","starred_url":"https://api.github.com/users/exonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exonum/subscriptions","organizations_url":"https://api.github.com/users/exonum/orgs","repos_url":"https://api.github.com/users/exonum/repos","events_url":"https://api.github.com/users/exonum/events{/privacy}","received_events_url":"https://api.github.com/users/exonum/received_events","type":"Organization","site_admin":false},"repo":{"id":80729805,"name":"exonum","full_name":"exonum/exonum","owner":{"login":"exonum","id":23138442,"avatar_url":"https://avatars1.githubusercontent.com/u/23138442?v=4","gravatar_id":"","url":"https://api.github.com/users/exonum","html_url":"https://github.com/exonum","followers_url":"https://api.github.com/users/exonum/followers","following_url":"https://api.github.com/users/exonum/following{/other_user}","gists_url":"https://api.github.com/users/exonum/gists{/gist_id}","starred_url":"https://api.github.com/users/exonum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exonum/subscriptions","organizations_url":"https://api.github.com/users/exonum/orgs","repos_url":"https://api.github.com/users/exonum/repos","events_url":"https://api.github.com/users/exonum/events{/privacy}","received_events_url":"https://api.github.com/users/exonum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/exonum/exonum","description":"Exonum core repository","fork":false,"url":"https://api.github.com/repos/exonum/exonum","forks_url":"https://api.github.com/repos/exonum/exonum/forks","keys_url":"https://api.github.com/repos/exonum/exonum/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exonum/exonum/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exonum/exonum/teams","hooks_url":"https://api.github.com/repos/exonum/exonum/hooks","issue_events_url":"https://api.github.com/repos/exonum/exonum/issues/events{/number}","events_url":"https://api.github.com/repos/exonum/exonum/events","assignees_url":"https://api.github.com/repos/exonum/exonum/assignees{/user}","branches_url":"https://api.github.com/repos/exonum/exonum/branches{/branch}","tags_url":"https://api.github.com/repos/exonum/exonum/tags","blobs_url":"https://api.github.com/repos/exonum/exonum/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exonum/exonum/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exonum/exonum/git/refs{/sha}","trees_url":"https://api.github.com/repos/exonum/exonum/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exonum/exonum/statuses/{sha}","languages_url":"https://api.github.com/repos/exonum/exonum/languages","stargazers_url":"https://api.github.com/repos/exonum/exonum/stargazers","contributors_url":"https://api.github.com/repos/exonum/exonum/contributors","subscribers_url":"https://api.github.com/repos/exonum/exonum/subscribers","subscription_url":"https://api.github.com/repos/exonum/exonum/subscription","commits_url":"https://api.github.com/repos/exonum/exonum/commits{/sha}","git_commits_url":"https://api.github.com/repos/exonum/exonum/git/commits{/sha}","comments_url":"https://api.github.com/repos/exonum/exonum/comments{/number}","issue_comment_url":"https://api.github.com/repos/exonum/exonum/issues/comments{/number}","contents_url":"https://api.github.com/repos/exonum/exonum/contents/{+path}","compare_url":"https://api.github.com/repos/exonum/exonum/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exonum/exonum/merges","archive_url":"https://api.github.com/repos/exonum/exonum/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exonum/exonum/downloads","issues_url":"https://api.github.com/repos/exonum/exonum/issues{/number}","pulls_url":"https://api.github.com/repos/exonum/exonum/pulls{/number}","milestones_url":"https://api.github.com/repos/exonum/exonum/milestones{/number}","notifications_url":"https://api.github.com/repos/exonum/exonum/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exonum/exonum/labels{/name}","releases_url":"https://api.github.com/repos/exonum/exonum/releases{/id}","deployments_url":"https://api.github.com/repos/exonum/exonum/deployments","created_at":"2017-02-02T13:56:57Z","updated_at":"2018-02-19T15:21:16Z","pushed_at":"2018-02-19T18:07:29Z","git_url":"git://github.com/exonum/exonum.git","ssh_url":"git@github.com:exonum/exonum.git","clone_url":"https://github.com/exonum/exonum.git","svn_url":"https://github.com/exonum/exonum","homepage":"http://exonum.com","size":4762,"stargazers_count":441,"watchers_count":441,"language":"Rust","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":63,"mirror_url":null,"archived":false,"open_issues_count":57,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":63,"open_issues":57,"watchers":441,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/exonum/exonum/pulls/322"},"html":{"href":"https://github.com/exonum/exonum/pull/322"},"issue":{"href":"https://api.github.com/repos/exonum/exonum/issues/322"},"comments":{"href":"https://api.github.com/repos/exonum/exonum/issues/322/comments"},"review_comments":{"href":"https://api.github.com/repos/exonum/exonum/pulls/322/comments"},"review_comment":{"href":"https://api.github.com/repos/exonum/exonum/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exonum/exonum/pulls/322/commits"},"statuses":{"href":"https://api.github.com/repos/exonum/exonum/statuses/49b05f37dced3341a4f709c7602c09f9d3bbb4e9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"slowli"}}