Skip to content

Conversation

@guidiaz
Copy link
Contributor

@guidiaz guidiaz commented Jan 27, 2025

Close #2580

@guidiaz guidiaz requested a review from aesedepece January 27, 2025 11:23
@Tommytrg
Copy link
Member

Tommytrg commented Jan 27, 2025

Could you run the formatter?

@guidiaz guidiaz force-pushed the data_requests/max_witnesses_on_testnets branch from 06f24bb to 2223d30 Compare January 28, 2025 16:17
@guidiaz guidiaz force-pushed the data_requests/max_witnesses_on_testnets branch from 2223d30 to b4a73d6 Compare January 28, 2025 16:22
@aesedepece aesedepece force-pushed the master branch 2 times, most recently from 1679d32 to 1b59db0 Compare February 13, 2025 13:22
Comment on lines +582 to +585
match get_environment() {
Environment::Mainnet => usize::from(dr_output.witnesses) > validator_count / 4,
_ => usize::from(dr_output.witnesses) > validator_count / 2,
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
match get_environment() {
Environment::Mainnet => usize::from(dr_output.witnesses) > validator_count / 4,
_ => usize::from(dr_output.witnesses) > validator_count / 2,
}
let divider = if let Environment::Mainnet = get_environment() {
4
} else {
2
}
usize::from(dr_output.witnesses) > validator_count / divider

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

On non-mainnet environments, increase max allowed DR witnesses to whole census

3 participants