File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ impl Importer {
390390
391391 for header in headers {
392392 let hash = header. hash ( ) ;
393- ctrace ! ( CLIENT , "Importing header {}" , header. number( ) ) ;
393+ ctrace ! ( CLIENT , "Importing header {}-{:?} " , header. number( ) , hash ) ;
394394
395395 if bad. contains ( & hash) || bad. contains ( header. parent_hash ( ) ) {
396396 cinfo ! ( CLIENT , "Bad header detected : {}" , hash) ;
@@ -400,7 +400,7 @@ impl Importer {
400400
401401 let parent_header = client
402402 . block_header ( & BlockId :: Hash ( * header. parent_hash ( ) ) )
403- . expect ( "Parent of importing header must exist" )
403+ . unwrap_or_else ( || panic ! ( "Parent of importing header must exist {:?}" , header . parent_hash ( ) ) )
404404 . decode ( ) ;
405405 if client. block_header ( & BlockId :: Hash ( hash) ) . is_some ( ) {
406406 // Do nothing if the header is already imported
You can’t perform that action at this time.
0 commit comments