@@ -161,7 +161,8 @@ impl Miner {
161161 if sealing_work. enabled {
162162 ctrace ! ( MINER , "requires_reseal: sealing enabled" ) ;
163163 let last_request = * self . sealing_block_last_request . lock ( ) ;
164- let should_disable_sealing = !self . options . force_sealing && !has_local_parcels
164+ let should_disable_sealing = !self . options . force_sealing
165+ && !has_local_parcels
165166 && self . engine . seals_internally ( ) . is_none ( )
166167 && best_block > last_request
167168 && best_block - last_request > SEALING_TIMEOUT_IN_BLOCKS ;
@@ -209,7 +210,8 @@ impl Miner {
209210 cdebug ! ( MINER , "Rejected parcel {:?}: already in the blockchain" , hash) ;
210211 return Err ( Error :: Parcel ( ParcelError :: AlreadyImported ) )
211212 }
212- match self . engine
213+ match self
214+ . engine
213215 . verify_parcel_basic ( & parcel, & best_block_header)
214216 . and_then ( |_| self . engine . verify_parcel_unordered ( parcel, & best_block_header) )
215217 {
@@ -221,7 +223,8 @@ impl Miner {
221223 // This check goes here because verify_parcel takes SignedParcel parameter
222224 self . engine . machine ( ) . verify_parcel ( & parcel, & best_block_header, client) ?;
223225
224- let origin = self . accounts
226+ let origin = self
227+ . accounts
225228 . as_ref ( )
226229 . and_then ( |accounts| match accounts. has_account ( parcel. sender ( ) ) {
227230 Ok ( true ) => Some ( ParcelOrigin :: Local ) ,
@@ -419,7 +422,8 @@ impl Miner {
419422 fn seal_and_import_block_internally < C > ( & self , chain : & C , block : ClosedBlock ) -> bool
420423 where
421424 C : BlockChain + ImportSealedBlock , {
422- if block. parcels ( ) . is_empty ( ) && !self . options . force_sealing
425+ if block. parcels ( ) . is_empty ( )
426+ && !self . options . force_sealing
423427 && Instant :: now ( ) <= * self . next_mandatory_reseal . read ( )
424428 {
425429 return false
@@ -701,7 +705,8 @@ impl MinerService for Miner {
701705 // Be sure to release the lock before we call prepare_work_sealing
702706 let mut mem_pool = self . mem_pool . write ( ) ;
703707 // We need to re-validate parcels
704- let import = self . add_parcels_to_pool ( chain, vec ! [ parcel. into( ) ] , ParcelOrigin :: Local , & mut mem_pool)
708+ let import = self
709+ . add_parcels_to_pool ( chain, vec ! [ parcel. into( ) ] , ParcelOrigin :: Local , & mut mem_pool)
705710 . pop ( )
706711 . expect ( "one result returned per added parcel; one added => one result; qed" ) ;
707712
0 commit comments