Skip to content

Commit

Permalink
Merge pull request openethereum#12 from thefallentree/clique-goerli
Browse files Browse the repository at this point in the history
Fix up bad code merge
  • Loading branch information
Yucong Sun authored Nov 17, 2018
2 parents 72af40f + f21b19a commit 1c2e121
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
15 changes: 6 additions & 9 deletions ethcore/src/engines/clique/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,12 @@ impl Engine<EthereumMachine> for Clique {
}).collect::<Vec<AncestryAction>>().to_vec()
}

fn executive_author (&self, header: &Header) -> Address {
public_to_address(
&recover(header).unwrap()
)
}

fn verify_block_basic(&self, _header: &Header) -> Result<(), Error> {
/*
if _header.number() == 0 {
Expand Down Expand Up @@ -338,15 +344,6 @@ impl Engine<EthereumMachine> for Clique {
//self.validators.register_client(client);
}

fn extra_info(&self, header: &Header) -> BTreeMap<String, String> {
trace!(target: "engine", "extra info");
let mut movie_reviews = BTreeMap::<String, String>::new();

// review some movies.
movie_reviews.insert(String::from("Office Space"), String::from("Deals with real issues in the workplace."));
movie_reviews
}

fn verify_local_seal(&self, header: &Header) -> Result<(), Error> { Ok(()) }

fn fork_choice(&self, new: &ExtendedHeader, current: &ExtendedHeader) -> super::ForkChoice {
Expand Down
1 change: 0 additions & 1 deletion parity/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ impl fmt::Display for SpecType {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str(match *self {
SpecType::Foundation => "foundation",
SpecType::Rinkeby => "rinkeby",
SpecType::Classic => "classic",
SpecType::Poanet => "poanet",
SpecType::Tobalaba => "tobalaba",
Expand Down

0 comments on commit 1c2e121

Please sign in to comment.