Common engine method for bestowing rewards created

This commit is contained in:
Anton Gavrilov
2017-08-04 11:28:26 +02:00
parent 30434325a2
commit 655ed93ee8
4 changed files with 30 additions and 46 deletions

View File

@@ -72,6 +72,7 @@ impl Engine for NullEngine {
fn on_close_block(&self, block: &mut ExecutedBlock) -> Result<(), Error> {
if self.params.block_reward == U256::zero() {
// we don't have to apply reward in this case
return Ok(())
}