ethcore, rpc, machine: refactor block reward application and tracing (#8490)

This commit is contained in:
André Silva
2018-05-07 11:57:03 +01:00
committed by Afri Schoedon
parent e30839e85f
commit 32c32ecfda
10 changed files with 93 additions and 55 deletions

View File

@@ -308,6 +308,12 @@ pub enum RewardType {
/// Uncle
#[serde(rename="uncle")]
Uncle,
/// EmptyStep (AuthorityRound)
#[serde(rename="emptyStep")]
EmptyStep,
/// External (attributed as part of an external protocol)
#[serde(rename="external")]
External,
}
impl From<trace::RewardType> for RewardType {
@@ -315,6 +321,8 @@ impl From<trace::RewardType> for RewardType {
match c {
trace::RewardType::Block => RewardType::Block,
trace::RewardType::Uncle => RewardType::Uncle,
trace::RewardType::EmptyStep => RewardType::EmptyStep,
trace::RewardType::External => RewardType::External,
}
}
}