File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ impl BlockchainParser {
51
51
while let Some ( header) = self . chain_storage . get_header ( self . cur_height ) {
52
52
Self :: on_header ( & header, self . cur_height ) ;
53
53
let block = self . chain_storage . get_block ( self . cur_height ) . unwrap ( ) ;
54
- self . on_block ( & block, self . cur_height ) ;
54
+ Self :: on_block ( & block, self . cur_height ) ;
55
+ self . print_progress ( self . cur_height ) ;
55
56
self . cur_height += 1 ;
56
57
}
57
58
self . on_complete ( self . cur_height . saturating_sub ( 1 ) ) ;
@@ -77,9 +78,8 @@ impl BlockchainParser {
77
78
tracing:: trace!( target: "parser" , "on_header(height={}) called" , height) ;
78
79
}
79
80
80
- fn on_block ( & mut self , _block : & bitcoin:: Block , height : u64 ) {
81
+ fn on_block ( _block : & bitcoin:: Block , height : u64 ) {
81
82
tracing:: trace!( target: "parser" , "on_block(height={}) called" , height) ;
82
- self . print_progress ( height) ;
83
83
}
84
84
85
85
fn on_complete ( & mut self , height : u64 ) {
You can’t perform that action at this time.
0 commit comments