Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(drive): uncommitted state if db transaction fails #2305

Merged
merged 16 commits into from
Nov 4, 2024
Merged
Prev Previous commit
Next Next commit
revert: bring back initial protocol version
  • Loading branch information
shumkov committed Nov 3, 2024
commit 2a3532b1496693bcbb6ca5c1e739686a6d7cd896
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