Skip to content

Commit

Permalink
Update parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Nov 22, 2021
1 parent 503c711 commit 256949a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .resources/release-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.3.16
v2.0.0
2 changes: 1 addition & 1 deletion ledger/src/state/ledger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub const MAXIMUM_QUADRATIC_BLOCK_LOCATORS: u32 = 64;
pub const MAXIMUM_BLOCK_LOCATORS: u32 = MAXIMUM_LINEAR_BLOCK_LOCATORS.saturating_add(MAXIMUM_QUADRATIC_BLOCK_LOCATORS);

/// TODO (howardwu): Reconcile this with the equivalent in `Environment`.
const MAXIMUM_FORK_DEPTH: u32 = 8192;
const MAXIMUM_FORK_DEPTH: u32 = 4096;

///
/// A helper struct containing transaction metadata.
Expand Down
4 changes: 2 additions & 2 deletions src/environment/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub trait Environment: 'static + Clone + Debug + Default + Send + Sync {
/// before dropping the connection; it should be no greater than the `HEARTBEAT_IN_SECS`.
const CONNECTION_TIMEOUT_IN_SECS: u64 = 2;
/// The duration in seconds to sleep in between ping requests with a connected peer.
const PING_SLEEP_IN_SECS: u64 = 15;
const PING_SLEEP_IN_SECS: u64 = 20;
/// The duration in seconds after which a connected peer is considered inactive or
/// disconnected if no message has been received in the meantime.
const RADIO_SILENCE_IN_SECS: u64 = 150; // 2.5 minutes
Expand All @@ -82,7 +82,7 @@ pub trait Environment: 'static + Clone + Debug + Default + Send + Sync {
/// The maximum number of blocks that may be fetched in one request.
const MAXIMUM_BLOCK_REQUEST: u32 = 50;
/// The maximum number of blocks that a fork can be.
const MAXIMUM_FORK_DEPTH: u32 = 8192;
const MAXIMUM_FORK_DEPTH: u32 = 4096;
/// The maximum number of failures tolerated before disconnecting from a peer.
const MAXIMUM_NUMBER_OF_FAILURES: usize = 2400;
}
Expand Down

0 comments on commit 256949a

Please sign in to comment.