|
5 | 5 | //! These structs model the types returned by the JSON-RPC API but have concrete types |
6 | 6 | //! and are not specific to a specific version of Bitcoin Core. |
7 | 7 |
|
8 | | -use bitcoin::address::NetworkUnchecked; |
9 | | -use bitcoin::{Address, FeeRate}; |
| 8 | +use bitcoin::FeeRate; |
10 | 9 | use serde::{Deserialize, Serialize}; |
11 | 10 |
|
12 | 11 | /// Models the result of JSON-RPC method `getnetworkinfo`. |
@@ -74,26 +73,3 @@ pub struct GetNetworkInfoAddress { |
74 | 73 | /// Relative score. |
75 | 74 | pub score: u32, |
76 | 75 | } |
77 | | - |
78 | | -/// Result of JSON-RPC method `getnodeaddresses`. |
79 | | -/// |
80 | | -/// > getnodeaddresses ( count ) |
81 | | -/// > |
82 | | -/// > Return known addresses which can potentially be used to find new nodes in the network. |
83 | | -#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)] |
84 | | -#[serde(deny_unknown_fields)] |
85 | | -pub struct GetNodeAddresses(pub Vec<NodeAddress>); |
86 | | - |
87 | | -/// An item from the list returned by the JSON-RPC method `getnodeaddresses`. |
88 | | -#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)] |
89 | | -#[serde(deny_unknown_fields)] |
90 | | -pub struct NodeAddress { |
91 | | - /// Timestamp in seconds since epoch (Jan 1 1970 GMT) when the node was last seen. |
92 | | - pub time: u64, |
93 | | - /// The services offered. |
94 | | - pub services: u64, |
95 | | - /// The address of the node. |
96 | | - pub address: Address<NetworkUnchecked>, |
97 | | - /// The port of the node. |
98 | | - pub port: u16, |
99 | | -} |
0 commit comments