Skip to content

Commit

Permalink
remove Tendermint extra_info due to seal inconsistencies (openethereu…
Browse files Browse the repository at this point in the history
  • Loading branch information
ordian authored and sorpaas committed Apr 20, 2018
1 parent e4596f5 commit 49c09a2
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions ethcore/src/engines/tendermint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mod params;

use std::sync::{Weak, Arc};
use std::sync::atomic::{AtomicUsize, Ordering as AtomicOrdering};
use std::collections::{HashSet, BTreeMap};
use std::collections::HashSet;
use hash::keccak;
use ethereum_types::{H256, H520, U128, U256, Address};
use parking_lot::RwLock;
Expand Down Expand Up @@ -449,17 +449,6 @@ impl Engine<EthereumMachine> for Tendermint {

fn maximum_uncle_age(&self) -> usize { 0 }

/// Additional engine-specific information for the user/developer concerning `header`.
fn extra_info(&self, header: &Header) -> BTreeMap<String, String> {
let message = ConsensusMessage::new_proposal(header).expect("Invalid header.");
map![
"signature".into() => message.signature.to_string(),
"height".into() => message.vote_step.height.to_string(),
"view".into() => message.vote_step.view.to_string(),
"block_hash".into() => message.block_hash.as_ref().map(ToString::to_string).unwrap_or("".into())
]
}

fn populate_from_parent(&self, header: &mut Header, parent: &Header) {
// Chain scoring: total weight is sqrt(U256::max_value())*height - view
let new_difficulty = U256::from(U128::max_value())
Expand Down

0 comments on commit 49c09a2

Please sign in to comment.