Skip to content
This repository was archived by the owner on Nov 26, 2024. It is now read-only.

Commit 6552095

Browse files
committed
Remove commented out code
1 parent 7eca0e8 commit 6552095

File tree

3 files changed

+41
-28
lines changed

3 files changed

+41
-28
lines changed

src/client_sync/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
55
mod error;
66
pub mod v17;
7+
pub mod v18;
78
pub mod v22;
89

910
use std::fs::File;

src/client_sync/v17/mod.rs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -44,31 +44,3 @@ crate::impl_client_v17__loadwallet!();
4444
crate::impl_client_v17__getnewaddress!();
4545
crate::impl_client_v17__getbalance!();
4646
crate::impl_client_v17__sendtoaddress!();
47-
48-
//crate::impl_client_v17_generatetoaddress!();
49-
50-
// #[macro_export]
51-
// macro_rules! impl_client_v17_generatetoaddress {
52-
// () => {
53-
// impl Client {
54-
// pub fn generate_to_address(
55-
// &self,
56-
// block_num: u64,
57-
// address: &Address<NetworkChecked>,
58-
// ) -> Result<GenerateToAddress> {
59-
// self.call("generatetoaddress", &[block_num.into(), address.to_string().into()])
60-
// }
61-
// }
62-
// }
63-
// }
64-
65-
// #[macro_export]
66-
// macro_rules! impl_client_v17_api {
67-
// () => {
68-
// impl Client {
69-
// pub fn get_balance(&self) -> Result<GetBalance> { self.call("getbalance", &[]) }
70-
// }
71-
// };
72-
// }
73-
74-
// SPDX-License-Identifier: CC0-1.0

src/client_sync/v18/mod.rs

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// SPDX-License-Identifier: CC0-1.0
2+
3+
//! A JSON-RPC client for testing against Bitcoin Core `v0.18.1`.
4+
//!
5+
//! We ignore option arguments unless they effect the shape of the returned JSON data.
6+
7+
use bitcoin::address::{Address, NetworkChecked};
8+
use bitcoin::{Amount, Block, BlockHash, Txid};
9+
10+
use crate::client_sync::{handle_defaults, into_json};
11+
use crate::json::v18::*;
12+
13+
/// Support Bitcoin Core `v0.18.1`.
14+
const EXPECTED_SERVER_VERSION: usize = 180100;
15+
16+
crate::define_jsonrpc_minreq_client!();
17+
//crate::impl_client_helpers!();
18+
19+
// == Network ==
20+
crate::impl_client_v17__getnetworkinfo!();
21+
22+
// == Blockchain ==
23+
crate::impl_client_v17__getblockchaininfo!();
24+
crate::impl_client_v17__getbestblockhash!();
25+
crate::impl_client_v17__getblock!();
26+
crate::impl_client_v17__gettxout!();
27+
28+
// == Control ==
29+
crate::impl_client_v17__stop!();
30+
31+
// == Generating ==
32+
crate::impl_client_v17__generatetoaddress!();
33+
34+
// == Wallet ==
35+
crate::impl_client_v17__createwallet!();
36+
crate::impl_client_v17__unloadwallet!();
37+
crate::impl_client_v17__loadwallet!();
38+
crate::impl_client_v17__getnewaddress!();
39+
crate::impl_client_v17__getbalance!();
40+
crate::impl_client_v17__sendtoaddress!();

0 commit comments

Comments
 (0)