mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-06 07:03:11 +00:00
Fmt
This commit is contained in:
parent
18c8407edb
commit
143c009e8e
@ -42,7 +42,10 @@ def compute_optimal_number_of_committees_and_committee_size(
|
||||
committee_size + 1,
|
||||
network_adversary_threshold
|
||||
)
|
||||
current_probability = 1 - committee_size_probability ** (number_of_committees - remainder) * committee_size_plus_one_probability ** remainder
|
||||
current_probability = (
|
||||
1 - committee_size_probability ** (number_of_committees - remainder)
|
||||
* committee_size_plus_one_probability ** remainder
|
||||
)
|
||||
else:
|
||||
current_probability = 1 - committee_size_probability ** number_of_committees
|
||||
# return number of committees, K_1, committee size, n_1, number of committees
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user