Skip to content

Commit 8afda17

Browse files
committed
chore: clarify white_flag_flow_enabled values in check_system_overload calls
Signed-off-by: Roman Overko <roman.overko@iota.org>
1 parent cfb5cfe commit 8afda17

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

crates/iota-core/src/authority_server/validator.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ impl ValidatorService {
104104
&consensus_adapter,
105105
transaction.data(),
106106
state.check_system_overload_at_signing(),
107-
false, // white_flag_flow_enabled
107+
// `false` means white-flag flow is disabled - ensured by `fp_ensure!` above
108+
false,
108109
);
109110
if let Err(error) = overload_check_res {
110111
metrics
@@ -242,7 +243,8 @@ impl ValidatorService {
242243
&self.consensus_adapter,
243244
certificate.data(),
244245
self.state.check_system_overload_at_execution(),
245-
false, // white_flag_flow_enabled
246+
// `false` means white-flag flow is disabled - ensured by `fp_ensure!` in callers
247+
false,
246248
);
247249
if let Err(error) = overload_check_res {
248250
self.metrics

crates/iota-core/src/authority_server/validator_v2.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ impl ValidatorService {
161161
consensus_adapter,
162162
transaction.data(),
163163
state.check_system_overload_at_signing(),
164-
true, // white_flag_flow_enabled
164+
// `true` means white-flag flow is enabled - ensured by `fp_ensure!` in the caller
165+
true,
165166
) {
166167
metrics
167168
.num_rejected_tx_during_overload

0 commit comments

Comments
 (0)