File tree Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Expand file tree Collapse file tree 3 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -1295,6 +1295,7 @@ impl AuthorityState {
1295
1295
1296
1296
epoch_store. record_local_execution_time (
1297
1297
certificate. data ( ) . transaction_data ( ) ,
1298
+ & effects,
1298
1299
timings,
1299
1300
execution_start_time. elapsed ( ) ,
1300
1301
) ;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ use sui_types::crypto::{
49
49
} ;
50
50
use sui_types:: digests:: { ChainIdentifier , TransactionEffectsDigest } ;
51
51
use sui_types:: dynamic_field:: get_dynamic_field_from_store;
52
- use sui_types:: effects:: TransactionEffects ;
52
+ use sui_types:: effects:: { TransactionEffects , TransactionEffectsAPI } ;
53
53
use sui_types:: error:: { SuiError , SuiResult } ;
54
54
use sui_types:: executable_transaction:: {
55
55
TrustedExecutableTransaction , VerifiedExecutableTransaction ,
@@ -1230,6 +1230,7 @@ impl AuthorityPerEpochStore {
1230
1230
pub fn record_local_execution_time (
1231
1231
& self ,
1232
1232
tx : & TransactionData ,
1233
+ effects : & TransactionEffects ,
1233
1234
timings : Vec < ExecutionTiming > ,
1234
1235
total_duration : Duration ,
1235
1236
) {
@@ -1238,6 +1239,10 @@ impl AuthorityPerEpochStore {
1238
1239
return ;
1239
1240
} ;
1240
1241
1242
+ if effects. status ( ) . is_cancelled ( ) {
1243
+ return ;
1244
+ }
1245
+
1241
1246
// Only record timings for PTBs with shared inputs.
1242
1247
let TransactionKind :: ProgrammableTransaction ( ptb) = tx. kind ( ) else {
1243
1248
return ;
Original file line number Diff line number Diff line change @@ -416,6 +416,16 @@ impl ExecutionStatus {
416
416
None
417
417
}
418
418
}
419
+
420
+ pub fn is_cancelled ( & self ) -> bool {
421
+ matches ! (
422
+ self ,
423
+ ExecutionStatus :: Failure {
424
+ error: ExecutionFailureStatus :: ExecutionCancelledDueToSharedObjectCongestion { .. } ,
425
+ ..
426
+ }
427
+ )
428
+ }
419
429
}
420
430
421
431
pub type CommandIndex = usize ;
You can’t perform that action at this time.
0 commit comments