Add registrar fields (#4716)

* add registrar field

* use constructor for dev registrar

* fix test
This commit is contained in:
keorn
2017-03-02 12:25:55 +01:00
committed by Gav Wood
parent 5dd406a19a
commit ade5a13f5b
11 changed files with 100 additions and 12 deletions

View File

@@ -17,6 +17,7 @@
//! Authority params deserialization.
use uint::Uint;
use hash::Address;
use super::ValidatorSet;
/// Authority params deserialization.
@@ -33,6 +34,8 @@ pub struct AuthorityRoundParams {
/// Block reward.
#[serde(rename="blockReward")]
pub block_reward: Option<Uint>,
/// Address of the registrar contract.
pub registrar: Option<Address>,
/// Starting step. Determined automatically if not specified.
/// To be used for testing only.
#[serde(rename="startStep")]