Skip to content

Commit

Permalink
revert: bring back initial protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Nov 3, 2024
1 parent 1589ef1 commit 2a3532b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/rs-drive-abci/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ struct PlatformConfigIntermediate {
#[serde(flatten)]
pub instant_lock: InstantLockConfig,
pub block_spacing_ms: u64,
#[serde(default = "PlatformConfig::default_initial_protocol_version")]
pub initial_protocol_version: ProtocolVersion,
pub db_path: PathBuf,
#[serde(default)]
pub rejections_path: Option<PathBuf>,
Expand Down Expand Up @@ -622,6 +624,10 @@ impl ExecutionConfig {
}

impl PlatformConfig {
fn default_initial_protocol_version() -> ProtocolVersion {
INITIAL_PROTOCOL_VERSION
}

fn default_network() -> Network {
Network::Dash
}
Expand Down

0 comments on commit 2a3532b

Please sign in to comment.