validators -> authorities

This commit is contained in:
keorn 2016-10-05 14:31:31 +01:00
parent a03db2ff29
commit 64d7bcbd0c
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
"Tendermint": { "Tendermint": {
"params": { "params": {
"gasLimitBoundDivisor": "0x0400", "gasLimitBoundDivisor": "0x0400",
"validators" : [ "authorities" : [
"0x7d577a597b2742b498cb5cf0c26cdcd726d39e6e", "0x7d577a597b2742b498cb5cf0c26cdcd726d39e6e",
"0x82a978b3f5962a5b0957d9ee9eef472ee55b42f1" "0x82a978b3f5962a5b0957d9ee9eef472ee55b42f1"
] ]

View File

@ -279,7 +279,7 @@ impl Spec {
} }
/// Create a new Spec with Tendermint consensus which does internal sealing (not requiring work). /// Create a new Spec with Tendermint consensus which does internal sealing (not requiring work).
/// Account "0".sha3() and "1".sha3() are a validators. /// Account "0".sha3() and "1".sha3() are a authorities.
pub fn new_test_tendermint() -> Self { pub fn new_test_tendermint() -> Self {
Spec::load(include_bytes!("../../res/tendermint.json") as &[u8]).expect("tendermint.json is invalid") Spec::load(include_bytes!("../../res/tendermint.json") as &[u8]).expect("tendermint.json is invalid")
} }

View File

@ -26,7 +26,7 @@ pub struct TendermintParams {
#[serde(rename="gasLimitBoundDivisor")] #[serde(rename="gasLimitBoundDivisor")]
pub gas_limit_bound_divisor: Uint, pub gas_limit_bound_divisor: Uint,
/// Valid authorities /// Valid authorities
pub validators: Vec<Address>, pub authorities: Vec<Address>,
} }
/// Tendermint engine deserialization. /// Tendermint engine deserialization.
@ -46,7 +46,7 @@ mod tests {
let s = r#"{ let s = r#"{
"params": { "params": {
"gasLimitBoundDivisor": "0x0400", "gasLimitBoundDivisor": "0x0400",
"validators" : ["0xc6d9d2cd449a754c494264e1809c50e34d64562b"] "authorities" : ["0xc6d9d2cd449a754c494264e1809c50e34d64562b"]
} }
}"#; }"#;