Merge remote-tracking branch 'parity/split-internal-seal' into auth-round

This commit is contained in:
keorn
2016-09-12 11:36:16 +02:00
37 changed files with 775 additions and 335 deletions

View File

@@ -73,6 +73,8 @@ pub trait Engine : Sync + Send {
/// Block transformation functions, after the transactions.
fn on_close_block(&self, _block: &mut ExecutedBlock) {}
/// If true, generate_seal has to be implemented.
fn seals_internally(&self) -> bool { false }
/// Attempt to seal the block internally.
///
/// If `Some` is returned, then you get a valid seal.