From d2146e56719a9103be6deba9b6438f6bcb87cd92 Mon Sep 17 00:00:00 2001 From: pankcuf Date: Fri, 8 Dec 2023 16:03:36 +0700 Subject: [PATCH 1/2] chore: bump up version 0.4.16 and set core 20 activation height for mainnet 1987776 --- Cargo.lock | 4 ++-- DashSharedCore.podspec | 2 +- dash-spv-apple-bindings/Cargo.toml | 2 +- dash-spv-masternode-processor/Cargo.toml | 2 +- dash-spv-masternode-processor/src/chain/common/chain_type.rs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 78dbf1ef..83bca2f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -511,7 +511,7 @@ version = "0.1.0" [[package]] name = "dash-spv-masternode-processor" -version = "0.4.14" +version = "0.4.16" dependencies = [ "base64", "bip38", @@ -537,7 +537,7 @@ dependencies = [ [[package]] name = "dash_spv_apple_bindings" -version = "0.4.14" +version = "0.4.16" dependencies = [ "cbindgen 0.24.5", "dash-spv-masternode-processor", diff --git a/DashSharedCore.podspec b/DashSharedCore.podspec index a3db1e7e..059077b1 100644 --- a/DashSharedCore.podspec +++ b/DashSharedCore.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'DashSharedCore' - s.version = '0.4.15' + s.version = '0.4.16' s.summary = 'Dash Core SPV written in Rust' s.author = 'Dash' s.description = "C-bindings for Dash Core SPV that can be used in projects for Apple platform" diff --git a/dash-spv-apple-bindings/Cargo.toml b/dash-spv-apple-bindings/Cargo.toml index f795f52a..db85dc11 100644 --- a/dash-spv-apple-bindings/Cargo.toml +++ b/dash-spv-apple-bindings/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dash_spv_apple_bindings" -version = "0.4.15" +version = "0.4.16" description = "C-bindings for using and interoperating with Dash SPV" readme = "README.md" edition = "2021" diff --git a/dash-spv-masternode-processor/Cargo.toml b/dash-spv-masternode-processor/Cargo.toml index 7554da0d..9a0dedfa 100644 --- a/dash-spv-masternode-processor/Cargo.toml +++ b/dash-spv-masternode-processor/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dash-spv-masternode-processor" -version = "0.4.15" +version = "0.4.16" description = "Library for processing masternodes and quorums (SPV)" edition = "2021" diff --git a/dash-spv-masternode-processor/src/chain/common/chain_type.rs b/dash-spv-masternode-processor/src/chain/common/chain_type.rs index 3cc2d120..6d7edd55 100644 --- a/dash-spv-masternode-processor/src/chain/common/chain_type.rs +++ b/dash-spv-masternode-processor/src/chain/common/chain_type.rs @@ -475,8 +475,8 @@ impl ChainType { } pub fn core20_activation_height(&self) -> u32 { - // TODO: make this real when aware match self { + ChainType::MainNet => 1987776, ChainType::TestNet => 905100, _ => u32::MAX } From be5fdb7d0ee1633d24afba274cf9d534fa12724e Mon Sep 17 00:00:00 2001 From: pankcuf Date: Fri, 8 Dec 2023 16:04:19 +0700 Subject: [PATCH 2/2] chore: set protocol version --- dash-spv-masternode-processor/src/chain/common/chain_type.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash-spv-masternode-processor/src/chain/common/chain_type.rs b/dash-spv-masternode-processor/src/chain/common/chain_type.rs index 6d7edd55..3b40373d 100644 --- a/dash-spv-masternode-processor/src/chain/common/chain_type.rs +++ b/dash-spv-masternode-processor/src/chain/common/chain_type.rs @@ -377,7 +377,7 @@ impl ChainType { pub fn protocol_version(&self) -> u32 { match self { - ChainType::MainNet => 70228, + ChainType::MainNet => 70230, ChainType::TestNet => 70230, ChainType::DevNet(_) => 70230 }