@@ -171,14 +171,11 @@ pub enum ExecutionError {
171171 /// epoch
172172 ExecutionCancelledDueToRandomnessUnavailable ,
173173
174- // Except congested shared objects, this error also contains gas
175- // price feedback: the lowest gas price of a non-cancelled transaction
176- // (that operates on at least one of these congested objects)
177- // in the same consensus commit round
178- /// Certificate is cancelled due to congestion on shared objects.
174+ /// Certificate is cancelled due to congestion on shared objects;
175+ /// suggested gas price can be used to give this certificate more priority.
179176 ExecutionCancelledDueToSharedObjectCongestionV1 {
180177 congested_objects : Vec < ObjectId > ,
181- lowest_gas_price_of_non_cancelled_transaction : u64 ,
178+ suggested_gas_price : u64 ,
182179 } ,
183180}
184181
@@ -486,7 +483,7 @@ mod serialization {
486483
487484 ExecutionCancelledDueToSharedObjectCongestionV1 {
488485 congested_objects : Vec < ObjectId > ,
489- lowest_gas_price_of_non_cancelled_transaction : u64 ,
486+ suggested_gas_price : u64 ,
490487 } ,
491488 }
492489
@@ -574,7 +571,7 @@ mod serialization {
574571
575572 ExecutionCancelledDueToSharedObjectCongestionV1 {
576573 congested_objects : Vec < ObjectId > ,
577- lowest_gas_price_of_non_cancelled_transaction : u64 ,
574+ suggested_gas_price : u64 ,
578575 } ,
579576 }
580577
@@ -696,10 +693,10 @@ mod serialization {
696693 }
697694 Self :: ExecutionCancelledDueToSharedObjectCongestionV1 {
698695 congested_objects,
699- lowest_gas_price_of_non_cancelled_transaction ,
696+ suggested_gas_price ,
700697 } => ReadableExecutionError :: ExecutionCancelledDueToSharedObjectCongestionV1 {
701698 congested_objects,
702- lowest_gas_price_of_non_cancelled_transaction ,
699+ suggested_gas_price ,
703700 } ,
704701 } ;
705702 readable. serialize ( serializer)
@@ -812,10 +809,10 @@ mod serialization {
812809 }
813810 Self :: ExecutionCancelledDueToSharedObjectCongestionV1 {
814811 congested_objects,
815- lowest_gas_price_of_non_cancelled_transaction ,
812+ suggested_gas_price ,
816813 } => BinaryExecutionError :: ExecutionCancelledDueToSharedObjectCongestionV1 {
817814 congested_objects,
818- lowest_gas_price_of_non_cancelled_transaction ,
815+ suggested_gas_price ,
819816 } ,
820817 } ;
821818 binary. serialize ( serializer)
@@ -939,10 +936,10 @@ mod serialization {
939936 }
940937 ReadableExecutionError :: ExecutionCancelledDueToSharedObjectCongestionV1 {
941938 congested_objects,
942- lowest_gas_price_of_non_cancelled_transaction ,
939+ suggested_gas_price ,
943940 } => Self :: ExecutionCancelledDueToSharedObjectCongestionV1 {
944941 congested_objects,
945- lowest_gas_price_of_non_cancelled_transaction ,
942+ suggested_gas_price ,
946943 } ,
947944 } )
948945 } else {
@@ -1052,10 +1049,10 @@ mod serialization {
10521049 }
10531050 BinaryExecutionError :: ExecutionCancelledDueToSharedObjectCongestionV1 {
10541051 congested_objects,
1055- lowest_gas_price_of_non_cancelled_transaction ,
1052+ suggested_gas_price ,
10561053 } => Self :: ExecutionCancelledDueToSharedObjectCongestionV1 {
10571054 congested_objects,
1058- lowest_gas_price_of_non_cancelled_transaction ,
1055+ suggested_gas_price ,
10591056 } ,
10601057 } )
10611058 }
0 commit comments