-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support latest Bitcoin Core versions (#21)
Add support for the latest Bitcoin Core versions - Patch 1: `v26.1` and `v26.2` - Patch 2: `v27.0` and `v27.1`
- Loading branch information
Showing
18 changed files
with
644 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,6 +178,10 @@ jobs: | |
matrix: | ||
feature: | ||
[ | ||
"27_1", | ||
"27_0", | ||
"26_2", | ||
"26_1", | ||
"26_0", | ||
"25_2", | ||
"25_1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// SPDX-License-Identifier: CC0-1.0 | ||
|
||
//! A JSON-RPC client for testing against Bitcoin Core `v27`. | ||
//! | ||
//! We ignore option arguments unless they effect the shape of the returned JSON data. | ||
|
||
use bitcoin::address::{Address, NetworkChecked}; | ||
use bitcoin::{Amount, Block, BlockHash, Txid}; | ||
|
||
use crate::client_sync::{handle_defaults, into_json}; | ||
use crate::json::v27::*; | ||
|
||
crate::define_jsonrpc_minreq_client!("v27"); | ||
|
||
// == Blockchain == | ||
crate::impl_client_v17__getblockchaininfo!(); | ||
crate::impl_client_v17__getbestblockhash!(); | ||
crate::impl_client_v17__getblock!(); | ||
crate::impl_client_v17__gettxout!(); | ||
|
||
// == Control == | ||
crate::impl_client_v17__stop!(); | ||
|
||
// == Generating == | ||
crate::impl_client_v17__generatetoaddress!(); | ||
|
||
// == Network == | ||
crate::impl_client_v17__getnetworkinfo!(); | ||
crate::impl_client_check_expected_server_version!({ [270000, 270100] }); | ||
|
||
// == Rawtransactions == | ||
crate::impl_client_v17__sendrawtransaction!(); | ||
|
||
// == Wallet == | ||
crate::impl_client_v17__createwallet!(); | ||
crate::impl_client_v22__unloadwallet!(); | ||
crate::impl_client_v22__loadwallet!(); | ||
crate::impl_client_v17__getbalance!(); | ||
crate::impl_client_v19__getbalances!(); | ||
crate::impl_client_v17__getnewaddress!(); | ||
crate::impl_client_v17__sendtoaddress!(); | ||
crate::impl_client_v17__gettransaction!(); | ||
|
||
pub use crate::client_sync::v23::AddressType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
//! Test the JSON-RPC API against `bitcoind v27.1`. | ||
|
||
#![cfg(feature = "v27")] | ||
|
||
use integration_test::*; | ||
|
||
// == Blockchain == | ||
mod blockchain { | ||
use super::*; | ||
|
||
impl_test_v17__getblockchaininfo!(); | ||
impl_test_v17__getbestblockhash!(); | ||
impl_test_v17__getblock_verbosity_0!(); | ||
impl_test_v17__getblock_verbosity_1!(); | ||
} | ||
|
||
// == Control == | ||
mod control { | ||
use super::*; | ||
|
||
impl_test_v17__stop!(); | ||
} | ||
|
||
// == Generating == | ||
mod generating { | ||
use super::*; | ||
|
||
impl_test_v17__generatetoaddress!(); | ||
} | ||
|
||
// == Network == | ||
mod network { | ||
use super::*; | ||
|
||
impl_test_v17__getnetworkinfo!(); | ||
} | ||
|
||
// == Rawtransactions == | ||
mod raw_transactions { | ||
use super::*; | ||
|
||
impl_test_v17__sendrawtransaction!(); | ||
} | ||
|
||
// == Wallet == | ||
mod wallet { | ||
use super::*; | ||
|
||
impl_test_v17__createwallet!(); | ||
impl_test_v17__loadwallet!(); | ||
|
||
impl_test_v17__getnewaddress!(); | ||
impl_test_v17__getbalance!(); | ||
impl_test_v19__getbalances!(); | ||
impl_test_v17__sendtoaddress!(); | ||
impl_test_v17__gettransaction!(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.