Warnings removed
This commit is contained in:
parent
06862c7dee
commit
204a63a00e
@ -563,7 +563,7 @@ impl Engine for AuthorityRound {
|
||||
warn!("Encountered error on closing block: {}", e);
|
||||
}
|
||||
match res {
|
||||
Ok(res) => match *fields.tracing_enabled {
|
||||
Ok(_) => match *fields.tracing_enabled {
|
||||
true => Ok(CloseOutcome{trace: Some(tracer.traces())}),
|
||||
false => Ok(CloseOutcome{trace: None})
|
||||
},
|
||||
|
@ -558,7 +558,7 @@ impl Engine for Tendermint {
|
||||
warn!("Encountered error on closing block: {}", e);
|
||||
}
|
||||
match res {
|
||||
Ok(res) => match *fields.tracing_enabled {
|
||||
Ok(_) => match *fields.tracing_enabled {
|
||||
true => Ok(CloseOutcome{trace: Some(tracer.traces())}),
|
||||
false => Ok(CloseOutcome{trace: None})
|
||||
},
|
||||
|
@ -296,7 +296,7 @@ impl Engine for Arc<Ethash> {
|
||||
let current_number = fields.header.number();
|
||||
for u in fields.uncles.iter() {
|
||||
let uncle_miner = u.author().clone();
|
||||
let mut result_uncle_reward: U256 = U256::from(0);
|
||||
let result_uncle_reward: U256;
|
||||
|
||||
if eras == 0 {
|
||||
result_uncle_reward = reward * U256::from(8 + u.number() - current_number) / U256::from(8);
|
||||
|
@ -58,7 +58,7 @@ impl Tracer for NoopTracer {
|
||||
fn trace_suicide(&mut self, _address: Address, _balance: U256, _refund_address: Address) {
|
||||
}
|
||||
|
||||
fn trace_reward(&mut self, miner: Address, value: U256, reward_type: RewardType) {
|
||||
fn trace_reward(&mut self, _: Address, _: U256, _: RewardType) {
|
||||
}
|
||||
|
||||
fn subtracer(&self) -> Self {
|
||||
|
Loading…
Reference in New Issue
Block a user