replace cli with engine method, simplify

This commit is contained in:
keorn
2016-09-12 11:07:40 +02:00
parent cadca6403a
commit c0201bd891
7 changed files with 20 additions and 27 deletions

View File

@@ -99,6 +99,8 @@ impl Engine for BasicAuthority {
/// This assumes that all uncles are valid uncles (i.e. of at least one generation before the current).
fn on_close_block(&self, _block: &mut ExecutedBlock) {}
fn seals_internally(&self) -> bool { true }
/// Attempt to seal the block internally.
///
/// This operation is synchronous and may (quite reasonably) not be available, in which `false` will