Skip to content

Commit 3931d0b

Browse files
committed
bump rust-dashcore dependency to latest commit
1 parent e55c6b0 commit 3931d0b

15 files changed

Lines changed: 41 additions & 70 deletions

File tree

Cargo.lock

Lines changed: 11 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,11 @@ members = [
4747
]
4848

4949
[workspace.dependencies]
50-
dashcore = { git = "https://github.com/dashpay/rust-dashcore", rev = "42eb1d698d4f178d3a8a80c72c9c0f9bbeddcc3e" }
51-
dash-spv = { git = "https://github.com/dashpay/rust-dashcore", rev = "42eb1d698d4f178d3a8a80c72c9c0f9bbeddcc3e" }
52-
dash-spv-ffi = { git = "https://github.com/dashpay/rust-dashcore", rev = "42eb1d698d4f178d3a8a80c72c9c0f9bbeddcc3e" }
53-
key-wallet = { git = "https://github.com/dashpay/rust-dashcore", rev = "42eb1d698d4f178d3a8a80c72c9c0f9bbeddcc3e" }
54-
key-wallet-manager = { git = "https://github.com/dashpay/rust-dashcore", rev = "42eb1d698d4f178d3a8a80c72c9c0f9bbeddcc3e" }
55-
dashcore-rpc = { git = "https://github.com/dashpay/rust-dashcore", rev = "42eb1d698d4f178d3a8a80c72c9c0f9bbeddcc3e" }
50+
dashcore = { git = "https://github.com/dashpay/rust-dashcore", rev = "be0f1fa0f794db7852aac54fd67125e5dd197982" }
51+
dash-spv = { git = "https://github.com/dashpay/rust-dashcore", rev = "be0f1fa0f794db7852aac54fd67125e5dd197982" }
52+
dash-spv-ffi = { git = "https://github.com/dashpay/rust-dashcore", rev = "be0f1fa0f794db7852aac54fd67125e5dd197982" }
53+
key-wallet = { git = "https://github.com/dashpay/rust-dashcore", rev = "be0f1fa0f794db7852aac54fd67125e5dd197982" }
54+
dashcore-rpc = { git = "https://github.com/dashpay/rust-dashcore", rev = "be0f1fa0f794db7852aac54fd67125e5dd197982" }
5655

5756
# Optimize heavy crypto crates even in dev/test builds so that
5857
# Halo 2 proof generation and verification run at near-release speed.

packages/rs-dpp/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ chrono = { version = "0.4.35", default-features = false, features = [
2525
chrono-tz = { version = "0.8", optional = true }
2626
ciborium = { version = "0.2.2", optional = true }
2727
dashcore = { workspace = true, features = [
28-
"std",
2928
"secp-recovery",
3029
"rand",
3130
"signer",
3231
"serde",
3332
"eddsa",
3433
], default-features = false }
3534
key-wallet = { workspace = true, optional = true }
36-
key-wallet-manager = { workspace = true, optional = true }
3735
dash-spv = { workspace = true, optional = true }
3836
dashcore-rpc = { workspace = true, optional = true }
3937

@@ -94,7 +92,6 @@ core_quorum_validation = ["dashcore/quorum_validation"]
9492
core_key_wallet = ["dep:key-wallet"]
9593
core_key_wallet_bincode = ["dep:key-wallet", "key-wallet/bincode"]
9694
core_key_wallet_bip_38 = ["dep:key-wallet", "key-wallet/bip38"]
97-
core_key_wallet_manager = ["dep:key-wallet-manager"]
9895
core_key_wallet_serde = ["dep:key-wallet", "key-wallet/serde"]
9996
core_spv = ["dep:dash-spv"]
10097
core_rpc_client = ["dep:dashcore-rpc"]

packages/rs-dpp/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ pub use dashcore;
1212
#[cfg(feature = "core_key_wallet")]
1313
pub use key_wallet;
1414

15-
#[cfg(feature = "core_key_wallet_manager")]
16-
pub use key_wallet_manager;
17-
1815
#[cfg(feature = "core_spv")]
1916
pub use dash_spv;
2017

packages/rs-drive-abci/src/execution/platform_events/core_based_updates/update_masternode_list/update_state_masternode_list/v0/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ where
6565
validator.is_banned = maybe_ban_height.is_some();
6666
}
6767
if let Some(address) = dmn_state_diff.service {
68-
validator.node_ip = address.ip().to_string();
68+
validator.node_ip = address
69+
.expect("TODO: idk what created this")
70+
.ip()
71+
.to_string();
6972
}
7073

7174
if let Some(p2p_port) = dmn_state_diff.platform_p2p_port {

packages/rs-drive-abci/src/platform_types/masternode/v0/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl From<DMNState> for MasternodeStateV0 {
156156
} = value;
157157

158158
Self {
159-
service,
159+
service: service.expect("TODO: idk what created this"),
160160
registered_height,
161161
pose_revived_height,
162162
pose_ban_height,
@@ -192,7 +192,7 @@ impl From<MasternodeStateV0> for DMNState {
192192
} = value;
193193

194194
Self {
195-
service,
195+
service: Some(service),
196196
registered_height,
197197
pose_revived_height,
198198
pose_ban_height,

packages/rs-drive-abci/src/platform_types/validator/v0/mod.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ impl NewValidatorIfMasternodeInState for ValidatorV0 {
4040
Some(ValidatorV0 {
4141
pro_tx_hash,
4242
public_key,
43-
node_ip: service.ip().to_string(),
43+
node_ip: service
44+
.expect("TODO: idk what created this")
45+
.ip()
46+
.to_string(),
4447
node_id: PubkeyHash::from_byte_array(platform_node_id),
45-
core_port: service.port(),
48+
core_port: service.expect("TODO: idk what created this").port(),
4649
platform_http_port: *platform_http_port as u16,
4750
platform_p2p_port: *platform_p2p_port as u16,
4851
is_banned: pose_ban_height.is_some(),

packages/rs-platform-wallet/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ platform-encryption = { path = "../rs-platform-encryption" }
1414

1515
# Key wallet dependencies (from rust-dashcore)
1616
key-wallet = { workspace = true }
17-
key-wallet-manager = { workspace = true, optional = true }
1817

1918
# Core dependencies
2019
dashcore = { workspace = true }
@@ -31,7 +30,6 @@ rand = "0.8"
3130

3231

3332
[features]
34-
default = ["bls", "eddsa", "manager"]
33+
default = ["bls", "eddsa"]
3534
bls = ["key-wallet/bls"]
3635
eddsa = ["key-wallet/eddsa"]
37-
manager = ["key-wallet-manager"]

packages/rs-platform-wallet/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,10 @@ The package is structured as follows:
105105
### Compatibility
106106
- Works with `WalletManager<PlatformWalletInfo>` for standard wallet management
107107
- Works with `SPVWalletManager<PlatformWalletInfo>` for SPV/light client functionality
108-
- Fully compatible with existing `key-wallet-manager` infrastructure
109108

110109
## Dependencies
111110

112-
- `key-wallet`: Core wallet functionality
113-
- `key-wallet-manager`: Wallet management and SPV support
111+
- `key-wallet`: Core wallet functionality, wallet management and SPV support
114112
- `dpp`: Dash Platform Protocol types and identity definitions
115113
- `dashcore`: Core blockchain types
116114

packages/rs-platform-wallet/examples/basic_usage.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Example demonstrating basic usage of PlatformWalletInfo
22
3+
use key_wallet::manager::WalletManager;
34
use key_wallet::wallet::managed_wallet_info::wallet_info_interface::WalletInfoInterface;
45
use key_wallet::Network;
56
use platform_wallet::error::PlatformWalletError;
@@ -22,14 +23,8 @@ fn main() -> Result<(), PlatformWalletError> {
2223
platform_wallet.identities().len()
2324
);
2425

25-
// The platform wallet can be used with WalletManager (requires "manager" feature)
26-
#[cfg(feature = "manager")]
27-
{
28-
use key_wallet_manager::wallet_manager::WalletManager;
29-
30-
let _wallet_manager = WalletManager::<PlatformWalletInfo>::new(network);
31-
println!("Platform wallet successfully integrated with wallet managers!");
32-
}
26+
let _wallet_manager = WalletManager::<PlatformWalletInfo>::new(network);
27+
println!("Platform wallet successfully integrated with wallet managers!");
3328

3429
Ok(())
3530
}

0 commit comments

Comments
 (0)