Skip to content

Implement pruneblock method and test #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions client/src/client_sync/v17/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,19 @@ macro_rules! impl_client_v17__preciousblock {
};
}

/// Implements Bitcoin Core JSON-RPC API method `pruneblockchain`
#[macro_export]
macro_rules! impl_client_v17__pruneblockchain {
() => {
impl Client {
/// Instructs the node to prune the blockchain up to a specified height or timestamp.
pub fn prune_blockchain(&self, target: u64) -> Result<PruneBlockchain> {
self.call("pruneblockchain", &[target.into()])
}
}
};
}

/// Implements Bitcoin Core JSON-RPC API method `verifytxoutproof`
#[macro_export]
macro_rules! impl_client_v17__verifytxoutproof {
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v17/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ crate::impl_client_v17__gettxout!();
crate::impl_client_v17__gettxoutproof!();
crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v18/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ crate::impl_client_v17__gettxout!();
crate::impl_client_v17__gettxoutproof!();
crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v19/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ crate::impl_client_v17__gettxout!();
crate::impl_client_v17__gettxoutproof!();
crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ crate::impl_client_v17__gettxout!();
crate::impl_client_v17__gettxoutproof!();
crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v21/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ crate::impl_client_v17__gettxout!();
crate::impl_client_v17__gettxoutproof!();
crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v22/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ crate::impl_client_v22__gettxout!();
crate::impl_client_v17__gettxoutproof!();
crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v23/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ crate::impl_client_v22__gettxout!();
crate::impl_client_v17__gettxoutproof!();
crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v24.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ crate::impl_client_v22__gettxout!();
crate::impl_client_v17__gettxoutproof!();
crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v25.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ crate::impl_client_v22__gettxout!();
crate::impl_client_v17__gettxoutproof!();
crate::impl_client_v17__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v26/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ crate::impl_client_v22__gettxout!();
crate::impl_client_v17__gettxoutproof!();
crate::impl_client_v26__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v27.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ crate::impl_client_v22__gettxout!();
crate::impl_client_v17__gettxoutproof!();
crate::impl_client_v26__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
1 change: 1 addition & 0 deletions client/src/client_sync/v28/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ crate::impl_client_v22__gettxout!();
crate::impl_client_v17__gettxoutproof!();
crate::impl_client_v26__gettxoutsetinfo!();
crate::impl_client_v17__preciousblock!();
crate::impl_client_v17__pruneblockchain!();
crate::impl_client_v17__verifytxoutproof!();

// == Control ==
Expand Down
15 changes: 15 additions & 0 deletions integration_test/tests/blockchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,21 @@ fn blockchain__precious_block() {
let _ = node.client.precious_block(hash).expect("preciousblock");
}

#[test]
fn blockchain__prune_blockchain() {
const NBLOCKS: usize = 1;

let node = Node::with_wallet(Wallet::Default, &["-prune=550"]);
let address = node.client.new_address().expect("Failed to get new address");

let gen_result = node.client.generate_to_address(NBLOCKS, &address).expect("generate_to_address RPC call failed");
assert_eq!(gen_result.0.len(), NBLOCKS, "generate_to_address did not return the expected number of block hashes");

let target_height: u64 = 500;

let _: Result<PruneBlockchain, _> = node.client.prune_blockchain(target_height);
}

#[test]
fn blockchain__verify_tx_out_proof__modelled() {
let node = Node::with_wallet(Wallet::Default, &[]);
Expand Down
1 change: 0 additions & 1 deletion integration_test/tests/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ fn wallet__get_balance__modelled() {
json.into_model().unwrap();
}


#[test]
#[cfg(all(not(feature = "v17"), not(feature = "v18")))]
fn wallet__get_balances() {
Expand Down
13 changes: 13 additions & 0 deletions types/src/v17/blockchain/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,19 @@ pub struct GetTxOutSetInfo {
pub total_amount: f64,
}

/// Result of JSON-RPC method `pruneblockchain`.
///
/// > pruneblockchain height
/// >
/// > Arguments:
/// > 1. "height" (numeric, required) The block height to prune up to. May be set to a discrete height, or a unix timestamp
/// > to prune blocks whose block time is at least 2 hours older than the provided timestamp.
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
pub struct PruneBlockchain(
/// The height of the last block pruned.
pub i64,
);

/// Result of JSON-RPC method `verifytxoutproof`.
///
/// > verifytxoutproof "proof"
Expand Down
3 changes: 2 additions & 1 deletion types/src/v17/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ pub use self::{
GetMempoolDescendantsVerbose, GetMempoolEntry, GetMempoolInfo, GetMempoolInfoError,
GetRawMempool, GetRawMempoolVerbose, GetTxOut, GetTxOutError, GetTxOutSetInfo,
GetTxOutSetInfoError, MapMempoolEntryError, MempoolEntry, MempoolEntryError,
MempoolEntryFees, MempoolEntryFeesError, Softfork, SoftforkReject, VerifyTxOutProof,
MempoolEntryFees, MempoolEntryFeesError, PruneBlockchain, Softfork, SoftforkReject,
VerifyTxOutProof,
},
control::{GetMemoryInfoStats, Locked, Logging},
generating::{Generate, GenerateToAddress},
Expand Down
12 changes: 6 additions & 6 deletions types/src/v18/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,10 @@ pub use crate::v17::{
ListTransactions, ListTransactionsItem, ListTransactionsItemError, ListUnspent,
ListUnspentItem, ListUnspentItemError, ListWallets, LoadWallet, Locked, Logging,
MapMempoolEntryError, MempoolAcceptance, MempoolEntry, MempoolEntryError, MempoolEntryFees,
MempoolEntryFeesError, PeerInfo, PsbtInput, PsbtOutput, PsbtScript, RawTransaction,
RawTransactionError, RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany,
SendRawTransaction, SendToAddress, SignFail, SignFailError, SignMessage, SignRawTransaction,
SignRawTransactionError, Softfork, SoftforkReject, TestMempoolAccept, TransactionCategory,
UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError,
WalletProcessPsbt, WitnessUtxo,
MempoolEntryFeesError, PeerInfo, PruneBlockchain, PsbtInput, PsbtOutput, PsbtScript,
RawTransaction, RawTransactionError, RawTransactionInput, RawTransactionOutput,
RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignFail, SignFailError,
SignMessage, SignRawTransaction, SignRawTransactionError, Softfork, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt,
WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
};
9 changes: 5 additions & 4 deletions types/src/v19/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,11 @@ pub use crate::v17::{
ListSinceBlockError, ListSinceBlockTransaction, ListSinceBlockTransactionError,
ListTransactions, ListTransactionsItem, ListTransactionsItemError, ListUnspent,
ListUnspentItem, ListUnspentItemError, ListWallets, LoadWallet, Locked, Logging, PeerInfo,
RawTransactionError, RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany,
SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction, SignRawTransactionError,
SoftforkReject, TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
PruneBlockchain, RawTransactionError, RawTransactionInput, RawTransactionOutput,
RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction,
SignRawTransactionError, SoftforkReject, TestMempoolAccept, TransactionCategory, UploadTarget,
VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt,
WitnessUtxo,
};
#[doc(inline)]
pub use crate::v18::{
Expand Down
11 changes: 6 additions & 5 deletions types/src/v20/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,12 @@ pub use crate::{
ListReceivedByAddressError, ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError,
ListSinceBlockTransaction, ListSinceBlockTransactionError, ListTransactions,
ListTransactionsItem, ListTransactionsItemError, ListUnspent, ListUnspentItem,
ListUnspentItemError, ListWallets, LoadWallet, Locked, PeerInfo, RawTransactionError,
RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction,
SendToAddress, SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
ListUnspentItemError, ListWallets, LoadWallet, Locked, PeerInfo, PruneBlockchain,
RawTransactionError, RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany,
SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction,
SignRawTransactionError, SoftforkReject, TestMempoolAccept, TransactionCategory,
UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError,
WalletProcessPsbt, WitnessUtxo,
},
v18::{
ActiveCommand, AnalyzePsbt, AnalyzePsbtError, AnalyzePsbtInput, AnalyzePsbtInputMissing,
Expand Down
11 changes: 6 additions & 5 deletions types/src/v21/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,12 @@ pub use crate::{
ListReceivedByAddressError, ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError,
ListSinceBlockTransaction, ListSinceBlockTransactionError, ListTransactions,
ListTransactionsItem, ListTransactionsItemError, ListUnspent, ListUnspentItem,
ListUnspentItemError, ListWallets, LoadWallet, Locked, PeerInfo, RawTransactionError,
RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction,
SendToAddress, SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
ListUnspentItemError, ListWallets, LoadWallet, Locked, PeerInfo, PruneBlockchain,
RawTransactionError, RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany,
SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction,
SignRawTransactionError, SoftforkReject, TestMempoolAccept, TransactionCategory,
UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError,
WalletProcessPsbt, WitnessUtxo,
},
v18::{
ActiveCommand, AnalyzePsbt, AnalyzePsbtError, AnalyzePsbtInput, AnalyzePsbtInputMissing,
Expand Down
2 changes: 1 addition & 1 deletion types/src/v22/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ pub use crate::{
ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction,
ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem,
ListTransactionsItemError, ListUnspent, ListUnspentItem, ListUnspentItemError, ListWallets,
LoadWallet, Locked, PeerInfo, RawTransactionError, RawTransactionInput,
LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
Expand Down
2 changes: 1 addition & 1 deletion types/src/v23/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ pub use crate::{
ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction,
ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem,
ListTransactionsItemError, ListUnspent, ListUnspentItem, ListUnspentItemError, ListWallets,
LoadWallet, Locked, PeerInfo, RawTransactionError, RawTransactionInput,
LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
Expand Down
2 changes: 1 addition & 1 deletion types/src/v24/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ pub use crate::{
ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction,
ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem,
ListTransactionsItemError, ListUnspent, ListUnspentItem, ListUnspentItemError, ListWallets,
LoadWallet, Locked, PeerInfo, RawTransactionError, RawTransactionInput,
LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
Expand Down
10 changes: 5 additions & 5 deletions types/src/v25/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ pub use crate::{
ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction,
ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem,
ListTransactionsItemError, ListUnspent, ListUnspentItem, ListUnspentItemError, ListWallets,
Locked, PeerInfo, RawTransactionError, RawTransactionInput, RawTransactionOutput,
RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignMessage,
SignRawTransaction, SignRawTransactionError, SoftforkReject, TestMempoolAccept,
TransactionCategory, UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt,
WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
},
v18::{
ActiveCommand, AnalyzePsbt, AnalyzePsbtError, AnalyzePsbtInput, AnalyzePsbtInputMissing,
Expand Down
10 changes: 5 additions & 5 deletions types/src/v26/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,11 +291,11 @@ pub use crate::{
ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction,
ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem,
ListTransactionsItemError, ListUnspent, ListUnspentItem, ListUnspentItemError, ListWallets,
Locked, PeerInfo, RawTransactionError, RawTransactionInput, RawTransactionOutput,
RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignMessage,
SignRawTransaction, SignRawTransactionError, SoftforkReject, TestMempoolAccept,
TransactionCategory, UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt,
WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
},
v18::{
ActiveCommand, AnalyzePsbt, AnalyzePsbtError, AnalyzePsbtInput, AnalyzePsbtInputMissing,
Expand Down
10 changes: 5 additions & 5 deletions types/src/v27/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,11 @@ pub use crate::{
ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction,
ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem,
ListTransactionsItemError, ListUnspent, ListUnspentItem, ListUnspentItemError, ListWallets,
Locked, PeerInfo, RawTransactionError, RawTransactionInput, RawTransactionOutput,
RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignMessage,
SignRawTransaction, SignRawTransactionError, SoftforkReject, TestMempoolAccept,
TransactionCategory, UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt,
WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
},
v18::{
ActiveCommand, AnalyzePsbt, AnalyzePsbtError, AnalyzePsbtInput, AnalyzePsbtInputMissing,
Expand Down
10 changes: 5 additions & 5 deletions types/src/v28/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,11 @@ pub use crate::{
ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction,
ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem,
ListTransactionsItemError, ListUnspent, ListUnspentItem, ListUnspentItemError, ListWallets,
Locked, PeerInfo, RawTransactionError, RawTransactionInput, RawTransactionOutput,
RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignMessage,
SignRawTransaction, SignRawTransactionError, SoftforkReject, TestMempoolAccept,
TransactionCategory, UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt,
WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
},
v18::{
ActiveCommand, AnalyzePsbt, AnalyzePsbtError, AnalyzePsbtInput, AnalyzePsbtInputMissing,
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v17.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub const METHODS: &[Method] = &[
Method::new_string("gettxoutproof", "get_tx_out_proof"),
Method::new_modelled("gettxoutsetinfo", "GetTxOutSetInfo", "get_tx_out_set_info"),
Method::new_nothing("preciousblock", "precious_block"),
Method::new_numeric("pruneblockchain", "prune_blockchain"),
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
Method::new_nothing("savemempool", "save_mempool"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Expand Down
2 changes: 1 addition & 1 deletion verify/src/method/v18.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub const METHODS: &[Method] = &[
Method::new_string("gettxoutproof", "get_tx_out_proof"),
Method::new_modelled("gettxoutsetinfo", "GetTxOutSetInfo", "get_tx_out_set_info"),
Method::new_nothing("preciousblock", "precious_block"),
Method::new_numeric("pruneblockchain", "prune_blockchain"),
Method::new_no_model("pruneblockchain", "PruneBlockchain", "prune_blockchain"),
Method::new_nothing("savemempool", "save_mempool"),
Method::new_modelled("scantxoutset", "ScanTxOutSet", "scan_tx_out_set"),
Method::new_bool("verifychain", "verify_chain"),
Expand Down
Loading