{"action":"created","comment":{"url":"https://api.github.com/repos/paritytech/finality-afg/pulls/comments/213253311","pull_request_review_id":150049194,"id":213253311,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzI1MzMxMQ==","diff_hunk":"@@ -0,0 +1,396 @@\n+// Copyright 2018 Parity Technologies (UK) Ltd.\n+// This file is part of finality-afg.\n+\n+// finality-afg is free software: you can redistribute it and/or modify\n+// it under the terms of the GNU General Public License as published by\n+// the Free Software Foundation, either version 3 of the License, or\n+// (at your option) any later version.\n+\n+// finality-afg is distributed in the hope that it will be useful,\n+// but WITHOUT ANY WARRANTY; without even the implied warranty of\n+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+// GNU General Public License for more details.\n+\n+// You should have received a copy of the GNU General Public License\n+// along with finality-afg. If not, see <http://www.gnu.org/licenses/>.\n+\n+//! Bitfield for handling equivocations.\n+//!\n+//! This is primarily a bitfield for tracking equivocating validators.\n+//! It is necessary because there is a need to track vote-weight of equivocation\n+//! on the vote-graph but to avoid double-counting.\n+//!\n+//! Bitfields are either blank (in the general case) or live, in the case of\n+//! equivocations, with two bits per equivocator. The first is for equivocations\n+//! in prevote messages and the second for those in precommits.\n+//!\n+//! Each live bitfield carries a reference to a shared object that\n+//! provides lookups from bit indices to validator weight. Bitfields can be\n+//! merged, and queried for total weight in commits and precommits.\n+\n+use std::fmt;\n+use std::sync::Arc;\n+use std::sync::atomic::{AtomicUsize, Ordering};\n+use parking_lot::RwLock;\n+\n+// global used to ensure that conflicting shared objects are not used.\n+static SHARED_IDX: AtomicUsize = AtomicUsize::new(0);\n+\n+/// Errors that can occur when using the equivocation weighting tools.\n+#[derive(Clone, Debug, PartialEq, Eq)]\n+pub enum Error {\n+\t/// Too many equivocating validators registered. (shared data IDX, n_validators).\n+\tTooManyEquivocators(usize, usize),\n+\t/// Mismatch in shared data IDX when merging bitfields.\n+\tContextMismatch(usize, usize),\n+}\n+\n+impl fmt::Display for Error {\n+\tfn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {\n+\t\tmatch *self {\n+\t\t\tError::TooManyEquivocators(ref idx, ref n)\n+\t\t\t\t=> write!(f, \"Registered too many equivocators for shared data with ID {}. Maximum specified was {}\", idx, n),\n+\t\t\tError::ContextMismatch(ref idx1, ref idx2)\n+\t\t\t\t=> write!(f, \"Attempted to merge bitfields with different contexts: {} vs {}\", idx1, idx2),\n+\t\t}\n+\t}\n+}\n+\n+impl ::std::error::Error for Error {}\n+\n+/// Bitfield for equivocating validators.\n+///\n+/// See module docs for more details.\n+#[derive(Debug)]\n+pub enum Bitfield<Id> {\n+\t/// Blank bitfield,\n+\tBlank,\n+\t/// Live bitfield,\n+\tLive(LiveBitfield<Id>),\n+}\n+\n+impl<Id> Default for Bitfield<Id> {\n+\tfn default() -> Self {\n+\t\tBitfield::Blank\n+\t}\n+}\n+\n+impl<Id> Clone for Bitfield<Id> {\n+\tfn clone(&self) -> Self {\n+\t\tmatch *self {\n+\t\t\tBitfield::Blank => Bitfield::Blank,\n+\t\t\tBitfield::Live(ref l) => Bitfield::Live(l.clone()),\n+\t\t}\n+\t}\n+}\n+\n+impl<Id: Eq> Bitfield<Id> {\n+\t/// Find total equivocating weight (prevote, precommit).\n+\tpub fn total_weight(&self) -> (usize, usize) {\n+\t\tmatch *self {\n+\t\t\tBitfield::Blank => (0, 0),\n+\t\t\tBitfield::Live(ref live) => live.total_weight(),\n+\t\t}\n+\t}\n+\n+\t/// Combine two bitfields. Fails if they have conflicting shared data\n+\t/// (i.e. they come from different contexts).\n+\tpub fn merge(&self, other: &Self) -> Result<Self, Error> {\n+\t\tmatch (self, other) {\n+\t\t\t(&Bitfield::Blank, &Bitfield::Blank) => Ok(Bitfield::Blank),\n+\t\t\t(&Bitfield::Live(ref live), &Bitfield::Blank) | (&Bitfield::Blank, &Bitfield::Live(ref live))\n+\t\t\t\t=> Ok(Bitfield::Live(live.clone())),\n+\t\t\t(&Bitfield::Live(ref a), &Bitfield::Live(ref b)) => {\n+\t\t\t\tif a.shared.idx != b.shared.idx {\n+\t\t\t\t\t// we can't merge two bitfields from different contexts.\n+\t\t\t\t\tErr(Error::ContextMismatch(a.shared.idx, b.shared.idx))\n+\t\t\t\t} else {\n+\t\t\t\t\tlet bits = a.bits.iter().zip(&b.bits).map(|(a, b)| a | b).collect();\n+\t\t\t\t\tOk(Bitfield::Live(LiveBitfield { bits, shared: a.shared.clone() }))\n+\t\t\t\t}\n+\t\t\t}\n+\t\t}\n+\t}\n+\n+\t/// Find overlap weight (prevote, precommit) between this bitfield and another.\n+\tpub fn overlap(&self, other: &Self) -> Result<(usize, usize), Error> {\n+\t\tmatch (self, other) {\n+\t\t\t(&Bitfield::Live(ref a), &Bitfield::Live(ref b)) => {\n+\t\t\t\tif a.shared.idx != b.shared.idx {\n+\t\t\t\t\t// we can't merge two bitfields from different contexts.\n+\t\t\t\t\tErr(Error::ContextMismatch(a.shared.idx, b.shared.idx))\n+\t\t\t\t} else {\n+\t\t\t\t\tOk(total_weight(\n+\t\t\t\t\t\ta.bits.iter().zip(&b.bits).map(|(a, b)| a & b),\n+\t\t\t\t\t\ta.shared.validators.read().as_slice(),\n+\t\t\t\t\t))\n+\t\t\t\t}\n+\t\t\t}\n+\t\t\t_ => Ok((0, 0))\n+\t\t}\n+\t}\n+}\n+\n+/// Live bitfield instance.\n+#[derive(Debug)]\n+pub struct LiveBitfield<Id> {\n+\tbits: Vec<u64>,\n+\tshared: Shared<Id>,\n+}\n+\n+impl<Id> Clone for LiveBitfield<Id> {\n+\tfn clone(&self) -> Self {\n+\t\tLiveBitfield {\n+\t\t\tbits: self.bits.clone(),\n+\t\t\tshared: self.shared.clone(),\n+\t\t}\n+\t}\n+}\n+\n+impl<Id: Eq> LiveBitfield<Id> {\n+\t/// Create a new live bitfield.\n+\tpub fn new(shared: Shared<Id>) -> Self {\n+\t\tLiveBitfield { bits: shared.blank_bitfield(), shared }\n+\t}\n+\n+\t/// Note a validator's equivocation in prevote.\n+\t/// Fails if more equivocators than the number of validators have\n+\t/// been registered.\n+\tpub fn equivocated_prevote(&mut self, id: Id, weight: usize) -> Result<(), Error> {\n+\t\tlet val_off = self.shared.get_or_register_equivocator(id, weight)?;\n+\t\tself.set_bit(val_off * 2);\n+\t\tOk(())\n+\t}\n+\n+\t/// Note a validator's equivocation in precommit.\n+\t/// Fails if more equivocators than the number of validators have\n+\t/// been registered.\n+\tpub fn equivocated_precommit(&mut self, id: Id, weight: usize) -> Result<(), Error> {\n+\t\tlet val_off = self.shared.get_or_register_equivocator(id, weight)?;\n+\t\tself.set_bit(val_off * 2 + 1);\n+\t\tOk(())\n+\t}\n+\n+\tfn set_bit(&mut self, bit_idx: usize) {\n+\t\tlet word_off = bit_idx / 64;\n+\t\tlet bit_off = bit_idx % 64;\n+\n+\t\t// TODO: if this isn't `Some`, something has gone really wrong.","path":"src/bitfield.rs","position":178,"original_position":178,"commit_id":"7c31d767afa5061d5bc08d0303e698e3035940fe","original_commit_id":"7c31d767afa5061d5bc08d0303e698e3035940fe","user":{"login":"gnunicorn","id":40496,"node_id":"MDQ6VXNlcjQwNDk2","avatar_url":"https://avatars1.githubusercontent.com/u/40496?v=4","gravatar_id":"","url":"https://api.github.com/users/gnunicorn","html_url":"https://github.com/gnunicorn","followers_url":"https://api.github.com/users/gnunicorn/followers","following_url":"https://api.github.com/users/gnunicorn/following{/other_user}","gists_url":"https://api.github.com/users/gnunicorn/gists{/gist_id}","starred_url":"https://api.github.com/users/gnunicorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnunicorn/subscriptions","organizations_url":"https://api.github.com/users/gnunicorn/orgs","repos_url":"https://api.github.com/users/gnunicorn/repos","events_url":"https://api.github.com/users/gnunicorn/events{/privacy}","received_events_url":"https://api.github.com/users/gnunicorn/received_events","type":"User","site_admin":false},"body":"yes, please log this with warning or higher. I don't think it can happen at the moment, but IMHO stuff in here should scream loudly if it assumptions are not met.","created_at":"2018-08-28T10:00:41Z","updated_at":"2018-08-28T10:01:10Z","html_url":"https://github.com/paritytech/finality-afg/pull/5#discussion_r213253311","pull_request_url":"https://api.github.com/repos/paritytech/finality-afg/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/paritytech/finality-afg/pulls/comments/213253311"},"html":{"href":"https://github.com/paritytech/finality-afg/pull/5#discussion_r213253311"},"pull_request":{"href":"https://api.github.com/repos/paritytech/finality-afg/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/paritytech/finality-afg/pulls/5","id":211146376,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExMTQ2Mzc2","html_url":"https://github.com/paritytech/finality-afg/pull/5","diff_url":"https://github.com/paritytech/finality-afg/pull/5.diff","patch_url":"https://github.com/paritytech/finality-afg/pull/5.patch","issue_url":"https://api.github.com/repos/paritytech/finality-afg/issues/5","number":5,"state":"open","locked":false,"title":"Handle equivocations correctly","user":{"login":"rphmeier","id":10121380,"node_id":"MDQ6VXNlcjEwMTIxMzgw","avatar_url":"https://avatars1.githubusercontent.com/u/10121380?v=4","gravatar_id":"","url":"https://api.github.com/users/rphmeier","html_url":"https://github.com/rphmeier","followers_url":"https://api.github.com/users/rphmeier/followers","following_url":"https://api.github.com/users/rphmeier/following{/other_user}","gists_url":"https://api.github.com/users/rphmeier/gists{/gist_id}","starred_url":"https://api.github.com/users/rphmeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rphmeier/subscriptions","organizations_url":"https://api.github.com/users/rphmeier/orgs","repos_url":"https://api.github.com/users/rphmeier/repos","events_url":"https://api.github.com/users/rphmeier/events{/privacy}","received_events_url":"https://api.github.com/users/rphmeier/received_events","type":"User","site_admin":false},"body":"Closes #4\r\n\r\nThis introduces a `bitfield` module, which is used to lazily attach bitfields for equivocating (double-voting) validators as soon as we have an equivocating validator. The bitfields are uninitialized in the general case and are fast. The node-weight addition logic has been altered to avoid double-counting any equivocated votes.\r\n\r\nThe second, and probably most error-prone thing this does is to alter the logic for determining if a round is completable. The completable check sometimes needs to determine if any descendents of a block could possibly get 2/3+ vote-weight, and this PR alters the logic there to account for possible equivocations on blocks (i.e. not discounting any vote-weight which has already been spent).","created_at":"2018-08-27T15:32:17Z","updated_at":"2018-08-28T10:01:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"90710f97d85b3f6611881545956c25cf4591753a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1018339004,"node_id":"MDU6TGFiZWwxMDE4MzM5MDA0","url":"https://api.github.com/repos/paritytech/finality-afg/labels/A0-pleasereview","name":"A0-pleasereview","color":"666666","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/paritytech/finality-afg/pulls/5/commits","review_comments_url":"https://api.github.com/repos/paritytech/finality-afg/pulls/5/comments","review_comment_url":"https://api.github.com/repos/paritytech/finality-afg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paritytech/finality-afg/issues/5/comments","statuses_url":"https://api.github.com/repos/paritytech/finality-afg/statuses/7c31d767afa5061d5bc08d0303e698e3035940fe","head":{"label":"paritytech:rh-handle-equivocations","ref":"rh-handle-equivocations","sha":"7c31d767afa5061d5bc08d0303e698e3035940fe","user":{"login":"paritytech","id":14176906,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc2OTA2","avatar_url":"https://avatars2.githubusercontent.com/u/14176906?v=4","gravatar_id":"","url":"https://api.github.com/users/paritytech","html_url":"https://github.com/paritytech","followers_url":"https://api.github.com/users/paritytech/followers","following_url":"https://api.github.com/users/paritytech/following{/other_user}","gists_url":"https://api.github.com/users/paritytech/gists{/gist_id}","starred_url":"https://api.github.com/users/paritytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paritytech/subscriptions","organizations_url":"https://api.github.com/users/paritytech/orgs","repos_url":"https://api.github.com/users/paritytech/repos","events_url":"https://api.github.com/users/paritytech/events{/privacy}","received_events_url":"https://api.github.com/users/paritytech/received_events","type":"Organization","site_admin":false},"repo":{"id":138737291,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg3MzcyOTE=","name":"finality-afg","full_name":"paritytech/finality-afg","owner":{"login":"paritytech","id":14176906,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc2OTA2","avatar_url":"https://avatars2.githubusercontent.com/u/14176906?v=4","gravatar_id":"","url":"https://api.github.com/users/paritytech","html_url":"https://github.com/paritytech","followers_url":"https://api.github.com/users/paritytech/followers","following_url":"https://api.github.com/users/paritytech/following{/other_user}","gists_url":"https://api.github.com/users/paritytech/gists{/gist_id}","starred_url":"https://api.github.com/users/paritytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paritytech/subscriptions","organizations_url":"https://api.github.com/users/paritytech/orgs","repos_url":"https://api.github.com/users/paritytech/repos","events_url":"https://api.github.com/users/paritytech/events{/privacy}","received_events_url":"https://api.github.com/users/paritytech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paritytech/finality-afg","description":"finality gadget for blockchains, based on PBFT","fork":false,"url":"https://api.github.com/repos/paritytech/finality-afg","forks_url":"https://api.github.com/repos/paritytech/finality-afg/forks","keys_url":"https://api.github.com/repos/paritytech/finality-afg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paritytech/finality-afg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paritytech/finality-afg/teams","hooks_url":"https://api.github.com/repos/paritytech/finality-afg/hooks","issue_events_url":"https://api.github.com/repos/paritytech/finality-afg/issues/events{/number}","events_url":"https://api.github.com/repos/paritytech/finality-afg/events","assignees_url":"https://api.github.com/repos/paritytech/finality-afg/assignees{/user}","branches_url":"https://api.github.com/repos/paritytech/finality-afg/branches{/branch}","tags_url":"https://api.github.com/repos/paritytech/finality-afg/tags","blobs_url":"https://api.github.com/repos/paritytech/finality-afg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paritytech/finality-afg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paritytech/finality-afg/git/refs{/sha}","trees_url":"https://api.github.com/repos/paritytech/finality-afg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paritytech/finality-afg/statuses/{sha}","languages_url":"https://api.github.com/repos/paritytech/finality-afg/languages","stargazers_url":"https://api.github.com/repos/paritytech/finality-afg/stargazers","contributors_url":"https://api.github.com/repos/paritytech/finality-afg/contributors","subscribers_url":"https://api.github.com/repos/paritytech/finality-afg/subscribers","subscription_url":"https://api.github.com/repos/paritytech/finality-afg/subscription","commits_url":"https://api.github.com/repos/paritytech/finality-afg/commits{/sha}","git_commits_url":"https://api.github.com/repos/paritytech/finality-afg/git/commits{/sha}","comments_url":"https://api.github.com/repos/paritytech/finality-afg/comments{/number}","issue_comment_url":"https://api.github.com/repos/paritytech/finality-afg/issues/comments{/number}","contents_url":"https://api.github.com/repos/paritytech/finality-afg/contents/{+path}","compare_url":"https://api.github.com/repos/paritytech/finality-afg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paritytech/finality-afg/merges","archive_url":"https://api.github.com/repos/paritytech/finality-afg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paritytech/finality-afg/downloads","issues_url":"https://api.github.com/repos/paritytech/finality-afg/issues{/number}","pulls_url":"https://api.github.com/repos/paritytech/finality-afg/pulls{/number}","milestones_url":"https://api.github.com/repos/paritytech/finality-afg/milestones{/number}","notifications_url":"https://api.github.com/repos/paritytech/finality-afg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paritytech/finality-afg/labels{/name}","releases_url":"https://api.github.com/repos/paritytech/finality-afg/releases{/id}","deployments_url":"https://api.github.com/repos/paritytech/finality-afg/deployments","created_at":"2018-06-26T12:48:53Z","updated_at":"2018-08-27T16:01:20Z","pushed_at":"2018-08-27T15:32:18Z","git_url":"git://github.com/paritytech/finality-afg.git","ssh_url":"git@github.com:paritytech/finality-afg.git","clone_url":"https://github.com/paritytech/finality-afg.git","svn_url":"https://github.com/paritytech/finality-afg","homepage":null,"size":82,"stargazers_count":2,"watchers_count":2,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":3,"watchers":2,"default_branch":"master"}},"base":{"label":"paritytech:master","ref":"master","sha":"a5bf74e049af46d0c1ab1727b69e4ca6a95b4588","user":{"login":"paritytech","id":14176906,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc2OTA2","avatar_url":"https://avatars2.githubusercontent.com/u/14176906?v=4","gravatar_id":"","url":"https://api.github.com/users/paritytech","html_url":"https://github.com/paritytech","followers_url":"https://api.github.com/users/paritytech/followers","following_url":"https://api.github.com/users/paritytech/following{/other_user}","gists_url":"https://api.github.com/users/paritytech/gists{/gist_id}","starred_url":"https://api.github.com/users/paritytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paritytech/subscriptions","organizations_url":"https://api.github.com/users/paritytech/orgs","repos_url":"https://api.github.com/users/paritytech/repos","events_url":"https://api.github.com/users/paritytech/events{/privacy}","received_events_url":"https://api.github.com/users/paritytech/received_events","type":"Organization","site_admin":false},"repo":{"id":138737291,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg3MzcyOTE=","name":"finality-afg","full_name":"paritytech/finality-afg","owner":{"login":"paritytech","id":14176906,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTc2OTA2","avatar_url":"https://avatars2.githubusercontent.com/u/14176906?v=4","gravatar_id":"","url":"https://api.github.com/users/paritytech","html_url":"https://github.com/paritytech","followers_url":"https://api.github.com/users/paritytech/followers","following_url":"https://api.github.com/users/paritytech/following{/other_user}","gists_url":"https://api.github.com/users/paritytech/gists{/gist_id}","starred_url":"https://api.github.com/users/paritytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paritytech/subscriptions","organizations_url":"https://api.github.com/users/paritytech/orgs","repos_url":"https://api.github.com/users/paritytech/repos","events_url":"https://api.github.com/users/paritytech/events{/privacy}","received_events_url":"https://api.github.com/users/paritytech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paritytech/finality-afg","description":"finality gadget for blockchains, based on PBFT","fork":false,"url":"https://api.github.com/repos/paritytech/finality-afg","forks_url":"https://api.github.com/repos/paritytech/finality-afg/forks","keys_url":"https://api.github.com/repos/paritytech/finality-afg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paritytech/finality-afg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paritytech/finality-afg/teams","hooks_url":"https://api.github.com/repos/paritytech/finality-afg/hooks","issue_events_url":"https://api.github.com/repos/paritytech/finality-afg/issues/events{/number}","events_url":"https://api.github.com/repos/paritytech/finality-afg/events","assignees_url":"https://api.github.com/repos/paritytech/finality-afg/assignees{/user}","branches_url":"https://api.github.com/repos/paritytech/finality-afg/branches{/branch}","tags_url":"https://api.github.com/repos/paritytech/finality-afg/tags","blobs_url":"https://api.github.com/repos/paritytech/finality-afg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paritytech/finality-afg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paritytech/finality-afg/git/refs{/sha}","trees_url":"https://api.github.com/repos/paritytech/finality-afg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paritytech/finality-afg/statuses/{sha}","languages_url":"https://api.github.com/repos/paritytech/finality-afg/languages","stargazers_url":"https://api.github.com/repos/paritytech/finality-afg/stargazers","contributors_url":"https://api.github.com/repos/paritytech/finality-afg/contributors","subscribers_url":"https://api.github.com/repos/paritytech/finality-afg/subscribers","subscription_url":"https://api.github.com/repos/paritytech/finality-afg/subscription","commits_url":"https://api.github.com/repos/paritytech/finality-afg/commits{/sha}","git_commits_url":"https://api.github.com/repos/paritytech/finality-afg/git/commits{/sha}","comments_url":"https://api.github.com/repos/paritytech/finality-afg/comments{/number}","issue_comment_url":"https://api.github.com/repos/paritytech/finality-afg/issues/comments{/number}","contents_url":"https://api.github.com/repos/paritytech/finality-afg/contents/{+path}","compare_url":"https://api.github.com/repos/paritytech/finality-afg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paritytech/finality-afg/merges","archive_url":"https://api.github.com/repos/paritytech/finality-afg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paritytech/finality-afg/downloads","issues_url":"https://api.github.com/repos/paritytech/finality-afg/issues{/number}","pulls_url":"https://api.github.com/repos/paritytech/finality-afg/pulls{/number}","milestones_url":"https://api.github.com/repos/paritytech/finality-afg/milestones{/number}","notifications_url":"https://api.github.com/repos/paritytech/finality-afg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paritytech/finality-afg/labels{/name}","releases_url":"https://api.github.com/repos/paritytech/finality-afg/releases{/id}","deployments_url":"https://api.github.com/repos/paritytech/finality-afg/deployments","created_at":"2018-06-26T12:48:53Z","updated_at":"2018-08-27T16:01:20Z","pushed_at":"2018-08-27T15:32:18Z","git_url":"git://github.com/paritytech/finality-afg.git","ssh_url":"git@github.com:paritytech/finality-afg.git","clone_url":"https://github.com/paritytech/finality-afg.git","svn_url":"https://github.com/paritytech/finality-afg","homepage":null,"size":82,"stargazers_count":2,"watchers_count":2,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paritytech/finality-afg/pulls/5"},"html":{"href":"https://github.com/paritytech/finality-afg/pull/5"},"issue":{"href":"https://api.github.com/repos/paritytech/finality-afg/issues/5"},"comments":{"href":"https://api.github.com/repos/paritytech/finality-afg/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/paritytech/finality-afg/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/paritytech/finality-afg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paritytech/finality-afg/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/paritytech/finality-afg/statuses/7c31d767afa5061d5bc08d0303e698e3035940fe"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"gnunicorn"}}