Skip to content

Commit

Permalink
Fix documentation and change values
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-zinger committed Jun 20, 2022
1 parent 1fb4e03 commit ea98148
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion massa-bootstrap/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ pub struct BootstrapSettings {
pub per_ip_min_interval: MassaTime,
/// Max size of the IP list
pub ip_list_max_size: usize,
/// Read-Write limitation for a connection in bit by 0.100 milliseconds
/// Read-Write limitation for a connection in bytes per seconds
pub max_bit_read_write: u32,
}
4 changes: 2 additions & 2 deletions massa-network-exports/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ pub struct NetworkSettings {
pub max_in_connection_overflow: usize,
/// Max operations per message in the network to avoid sending to big data packet.
pub max_operations_per_message: u32,
/// Read limitation for a connection in bit by 0.100 milliseconds
/// Read limitation for a connection in bytes per seconds
pub max_bit_read: u32,
/// Write limitation for a connection in bit by 0.100 milliseconds
/// Write limitation for a connection in bytes per seconds
pub max_bit_write: u32,
}

Expand Down
12 changes: 6 additions & 6 deletions massa-node/base_config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@
# Max number of in connection overflowed managed by the handshake
# that send a list of peers
max_in_connection_overflow = 100
# Read limitation for a connection in bit by 0.100 milliseconds
max_bit_read = 40_000_000
# Write limitation for a connection in bit by 0.100 milliseconds
max_bit_write = 72_000_000
# Read limitation for a connection in bytes per seconds
max_bit_read = 5_000_000
# Write limitation for a connection in bytes per seconds
max_bit_write = 5_000_000

[network.peer_types_config]
Standard = { target_out_connections = 10, max_out_attempts = 10, max_in_connections = 15}
Expand Down Expand Up @@ -204,8 +204,8 @@
ip_list_max_size = 10000
# refuse consecutive bootstrap attempts from a given IP when the interval between them is lower than per_ip_min_interval milliseconds
per_ip_min_interval = 180000
# Read-Write limitation for a connection in bit by 0.100 milliseconds (about the bootstrap specifically)
max_bit_read_write = 1_600_000
# Read-Write limitation for a connection in bytes per seconds (about the bootstrap specifically)
max_bit_read_write = 5_000_000

[pool]
# max number of operations kept per thread
Expand Down

0 comments on commit ea98148

Please sign in to comment.