File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -1277,7 +1277,13 @@ impl ChainService {
1277
1277
{
1278
1278
if !switch. disable_all ( ) {
1279
1279
if found_error. is_none ( ) {
1280
+ let log_now = std:: time:: Instant :: now ( ) ;
1280
1281
let resolved = self . resolve_block_transactions ( & txn, b, & verify_context) ;
1282
+ debug ! (
1283
+ "resolve_block_transactions {} cost: {:?}" ,
1284
+ b. hash( ) ,
1285
+ log_now. elapsed( )
1286
+ ) ;
1281
1287
match resolved {
1282
1288
Ok ( resolved) => {
1283
1289
let verified = {
@@ -1288,7 +1294,14 @@ impl ChainService {
1288
1294
Arc :: clone ( & txs_verify_cache) ,
1289
1295
& mmr,
1290
1296
) ;
1291
- contextual_block_verifier. verify ( & resolved, b)
1297
+ let log_now = std:: time:: Instant :: now ( ) ;
1298
+ let verify_result = contextual_block_verifier. verify ( & resolved, b) ;
1299
+ debug ! (
1300
+ "contextual_block_verifier {} cost: {:?}" ,
1301
+ b. hash( ) ,
1302
+ log_now. elapsed( )
1303
+ ) ;
1304
+ verify_result
1292
1305
} ;
1293
1306
match verified {
1294
1307
Ok ( ( cycles, cache_entries) ) => {
You can’t perform that action at this time.
0 commit comments