Skip to content

Commit 8c00f0b

Browse files
committed
Implement pruneblock method and test
1 parent e64104b commit 8c00f0b

File tree

41 files changed

+463
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+463
-82
lines changed

client/src/client_sync/v17/blockchain.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,19 @@ macro_rules! impl_client_v17__preciousblock {
289289
};
290290
}
291291

292+
/// Implements Bitcoin Core JSON-RPC API method `pruneblockchain`
293+
#[macro_export]
294+
macro_rules! impl_client_v17__pruneblockchain {
295+
() => {
296+
impl Client {
297+
/// Instructs the node to prune the blockchain up to a specified height or timestamp.
298+
pub fn prune_blockchain(&self, target: u64) -> Result<PruneBlockchain> {
299+
self.call("pruneblockchain", &[target.into()])
300+
}
301+
}
302+
};
303+
}
304+
292305
/// Implements Bitcoin Core JSON-RPC API method `verifytxoutproof`
293306
#[macro_export]
294307
macro_rules! impl_client_v17__verifytxoutproof {

client/src/client_sync/v17/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ crate::impl_client_v17__gettxout!();
4848
crate::impl_client_v17__gettxoutproof!();
4949
crate::impl_client_v17__gettxoutsetinfo!();
5050
crate::impl_client_v17__preciousblock!();
51+
crate::impl_client_v17__pruneblockchain!();
5152
crate::impl_client_v17__verifytxoutproof!();
5253

5354
// == Control ==

client/src/client_sync/v18/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ crate::impl_client_v17__gettxout!();
4242
crate::impl_client_v17__gettxoutproof!();
4343
crate::impl_client_v17__gettxoutsetinfo!();
4444
crate::impl_client_v17__preciousblock!();
45+
crate::impl_client_v17__pruneblockchain!();
4546
crate::impl_client_v17__verifytxoutproof!();
4647

4748
// == Control ==

client/src/client_sync/v19/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ crate::impl_client_v17__gettxout!();
4343
crate::impl_client_v17__gettxoutproof!();
4444
crate::impl_client_v17__gettxoutsetinfo!();
4545
crate::impl_client_v17__preciousblock!();
46+
crate::impl_client_v17__pruneblockchain!();
4647
crate::impl_client_v17__verifytxoutproof!();
4748

4849
// == Control ==

client/src/client_sync/v20.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ crate::impl_client_v17__gettxout!();
4040
crate::impl_client_v17__gettxoutproof!();
4141
crate::impl_client_v17__gettxoutsetinfo!();
4242
crate::impl_client_v17__preciousblock!();
43+
crate::impl_client_v17__pruneblockchain!();
4344
crate::impl_client_v17__verifytxoutproof!();
4445

4546
// == Control ==

client/src/client_sync/v21/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ crate::impl_client_v17__gettxout!();
4242
crate::impl_client_v17__gettxoutproof!();
4343
crate::impl_client_v17__gettxoutsetinfo!();
4444
crate::impl_client_v17__preciousblock!();
45+
crate::impl_client_v17__pruneblockchain!();
4546
crate::impl_client_v17__verifytxoutproof!();
4647

4748
// == Control ==

client/src/client_sync/v22/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ crate::impl_client_v22__gettxout!();
4343
crate::impl_client_v17__gettxoutproof!();
4444
crate::impl_client_v17__gettxoutsetinfo!();
4545
crate::impl_client_v17__preciousblock!();
46+
crate::impl_client_v17__pruneblockchain!();
4647
crate::impl_client_v17__verifytxoutproof!();
4748

4849
// == Control ==

client/src/client_sync/v23/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ crate::impl_client_v22__gettxout!();
4343
crate::impl_client_v17__gettxoutproof!();
4444
crate::impl_client_v17__gettxoutsetinfo!();
4545
crate::impl_client_v17__preciousblock!();
46+
crate::impl_client_v17__pruneblockchain!();
4647
crate::impl_client_v17__verifytxoutproof!();
4748

4849
// == Control ==

client/src/client_sync/v24.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ crate::impl_client_v22__gettxout!();
4040
crate::impl_client_v17__gettxoutproof!();
4141
crate::impl_client_v17__gettxoutsetinfo!();
4242
crate::impl_client_v17__preciousblock!();
43+
crate::impl_client_v17__pruneblockchain!();
4344
crate::impl_client_v17__verifytxoutproof!();
4445

4546
// == Control ==

client/src/client_sync/v25.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ crate::impl_client_v22__gettxout!();
4040
crate::impl_client_v17__gettxoutproof!();
4141
crate::impl_client_v17__gettxoutsetinfo!();
4242
crate::impl_client_v17__preciousblock!();
43+
crate::impl_client_v17__pruneblockchain!();
4344
crate::impl_client_v17__verifytxoutproof!();
4445

4546
// == Control ==

client/src/client_sync/v26/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ crate::impl_client_v22__gettxout!();
4444
crate::impl_client_v17__gettxoutproof!();
4545
crate::impl_client_v26__gettxoutsetinfo!();
4646
crate::impl_client_v17__preciousblock!();
47+
crate::impl_client_v17__pruneblockchain!();
4748
crate::impl_client_v17__verifytxoutproof!();
4849

4950
// == Control ==

client/src/client_sync/v27.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ crate::impl_client_v22__gettxout!();
4040
crate::impl_client_v17__gettxoutproof!();
4141
crate::impl_client_v26__gettxoutsetinfo!();
4242
crate::impl_client_v17__preciousblock!();
43+
crate::impl_client_v17__pruneblockchain!();
4344
crate::impl_client_v17__verifytxoutproof!();
4445

4546
// == Control ==

client/src/client_sync/v28/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ crate::impl_client_v22__gettxout!();
4242
crate::impl_client_v17__gettxoutproof!();
4343
crate::impl_client_v26__gettxoutsetinfo!();
4444
crate::impl_client_v17__preciousblock!();
45+
crate::impl_client_v17__pruneblockchain!();
4546
crate::impl_client_v17__verifytxoutproof!();
4647

4748
// == Control ==

integration_test/tests/blockchain.rs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fn blockchain__get_block_header__modelled() {
8686
model.unwrap();
8787

8888
// verbose = true
89-
let json:GetBlockHeaderVerbose = node.client.get_block_header_verbose(&block_hash).expect("getblockheader");
89+
let json: GetBlockHeaderVerbose = node.client.get_block_header_verbose(&block_hash).expect("getblockheader");
9090
let model: Result<mtype::GetBlockHeaderVerbose, GetBlockHeaderVerboseError> = json.into_model();
9191
model.unwrap();
9292
}
@@ -290,3 +290,18 @@ fn verify_tx_out_proof(node: &Node) -> Result<(), client_sync::Error> {
290290

291291
Ok(())
292292
}
293+
294+
#[test]
295+
fn blockchain__prune_blockchain() {
296+
const NBLOCKS: usize = 1;
297+
298+
let node = Node::with_wallet(Wallet::Default, &["-prune=550"]);
299+
let address = node.client.new_address().expect("Failed to get new address");
300+
301+
let gen_result = node.client.generate_to_address(NBLOCKS, &address).expect("generate_to_address RPC call failed");
302+
assert_eq!(gen_result.0.len(), NBLOCKS, "generate_to_address did not return the expected number of block hashes");
303+
304+
let target_height: u64 = 500;
305+
306+
let _: Result<PruneBlockchain, _> = node.client.prune_blockchain(target_height);
307+
}

integration_test/tests/wallet.rs

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
use bitcoin::address::{Address, NetworkChecked};
99
use bitcoin::Amount;
1010
use integration_test::{Node, NodeExt as _, Wallet};
11-
use node::AddressType;
12-
use node::vtype::*; // All the version specific types.
13-
use node::mtype;
11+
use node::vtype::*; // All the version specific types.
12+
use node::{mtype, AddressType};
1413

1514
#[test]
1615
#[cfg(feature = "TODO")]
@@ -169,7 +168,6 @@ fn wallet__get_balance__modelled() {
169168
json.into_model().unwrap();
170169
}
171170

172-
173171
#[test]
174172
#[cfg(all(not(feature = "v17"), not(feature = "v18")))]
175173
fn wallet__get_balances() {
@@ -210,8 +208,7 @@ fn wallet__get_received_by_address__modelled() {
210208
node.fund_wallet();
211209
let address = node.client.new_address().expect("failed to create new address");
212210

213-
let _txid =
214-
node.client.send_to_address(&address, amount).expect("sendtoaddress").txid().unwrap();
211+
let _txid = node.client.send_to_address(&address, amount).expect("sendtoaddress").txid().unwrap();
215212
node.mine_a_block();
216213

217214
let json: GetReceivedByAddress = node.client.get_received_by_address(&address).expect("getreceivedbyaddress");
@@ -240,18 +237,14 @@ fn wallet__get_transaction__modelled() {
240237
}
241238

242239
#[test]
243-
fn wallet__load_wallet__modelled() {
244-
create_load_unload_wallet();
245-
}
240+
fn wallet__load_wallet__modelled() { create_load_unload_wallet(); }
246241

247242
// This is tested in raw_transactions.rs `create_sign_send()`.
248243
#[test]
249244
fn wallet__sign_raw_transaction_with_wallet__modelled() {}
250245

251246
#[test]
252-
fn wallet__unload_wallet() {
253-
create_load_unload_wallet();
254-
}
247+
fn wallet__unload_wallet() { create_load_unload_wallet(); }
255248

256249
#[test]
257250
fn wallet__send_to_address__modelled() {
@@ -276,7 +269,12 @@ fn create_load_unload_wallet() {
276269
let _ = node.client.unload_wallet(&wallet).expect("unloadwallet");
277270

278271
// From version 21 Core returns warnings for `unloadwallet`.
279-
#[cfg(all(not(feature = "v17"), not(feature = "v18"), not(feature = "v19"), not(feature = "v20")))]
272+
#[cfg(all(
273+
not(feature = "v17"),
274+
not(feature = "v18"),
275+
not(feature = "v19"),
276+
not(feature = "v20")
277+
))]
280278
{
281279
let json: UnloadWallet = node.client.unload_wallet(&wallet).expect("unloadwallet");
282280
let _: mtype::UnloadWallet = json.into_model();

types/src/v17/blockchain/mod.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,19 @@ pub struct GetTxOutSetInfo {
637637
pub total_amount: f64,
638638
}
639639

640+
/// Result of JSON-RPC method `pruneblockchain`.
641+
///
642+
/// > pruneblockchain height
643+
/// >
644+
/// > Arguments:
645+
/// > 1. "height" (numeric, required) The block height to prune up to. May be set to a discrete height, or a unix timestamp
646+
/// > to prune blocks whose block time is at least 2 hours older than the provided timestamp.
647+
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
648+
pub struct PruneBlockchain(
649+
/// The height of the last block pruned.
650+
pub i64,
651+
);
652+
640653
/// Result of JSON-RPC method `verifytxoutproof`.
641654
///
642655
/// > verifytxoutproof "proof"

types/src/v17/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
//! | gettxoutproof | done |
3737
//! | gettxoutsetinfo | done |
3838
//! | preciousblock | done |
39-
//! | pruneblockchain | omitted |
39+
//! | pruneblockchain | done |
4040
//! | savemempool | omitted |
4141
//! | scantxoutset | omitted |
4242
//! | verifychain | omitted |
@@ -234,7 +234,8 @@ pub use self::{
234234
GetMempoolDescendantsVerbose, GetMempoolEntry, GetMempoolInfo, GetMempoolInfoError,
235235
GetRawMempool, GetRawMempoolVerbose, GetTxOut, GetTxOutError, GetTxOutSetInfo,
236236
GetTxOutSetInfoError, MapMempoolEntryError, MempoolEntry, MempoolEntryError,
237-
MempoolEntryFees, MempoolEntryFeesError, Softfork, SoftforkReject, VerifyTxOutProof,
237+
MempoolEntryFees, MempoolEntryFeesError, PruneBlockchain, Softfork, SoftforkReject,
238+
VerifyTxOutProof,
238239
},
239240
control::{GetMemoryInfoStats, Locked, Logging},
240241
generating::{Generate, GenerateToAddress},

types/src/v18/mod.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
//! | gettxoutproof | done |
4242
//! | gettxoutsetinfo | done |
4343
//! | preciousblock | done |
44-
//! | pruneblockchain | omitted |
44+
//! | pruneblockchain | done |
4545
//! | savemempool | omitted |
4646
//! | scantxoutset | omitted |
4747
//! | verifychain | omitted |
@@ -259,10 +259,10 @@ pub use crate::v17::{
259259
ListTransactions, ListTransactionsItem, ListTransactionsItemError, ListUnspent,
260260
ListUnspentItem, ListUnspentItemError, ListWallets, LoadWallet, Locked, Logging,
261261
MapMempoolEntryError, MempoolAcceptance, MempoolEntry, MempoolEntryError, MempoolEntryFees,
262-
MempoolEntryFeesError, PeerInfo, PsbtInput, PsbtOutput, PsbtScript, RawTransaction,
263-
RawTransactionError, RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany,
264-
SendRawTransaction, SendToAddress, SignFail, SignFailError, SignMessage, SignRawTransaction,
265-
SignRawTransactionError, Softfork, SoftforkReject, TestMempoolAccept, TransactionCategory,
266-
UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError,
267-
WalletProcessPsbt, WitnessUtxo,
262+
MempoolEntryFeesError, PeerInfo, PruneBlockchain, PsbtInput, PsbtOutput, PsbtScript,
263+
RawTransaction, RawTransactionError, RawTransactionInput, RawTransactionOutput,
264+
RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignFail, SignFailError,
265+
SignMessage, SignRawTransaction, SignRawTransactionError, Softfork, SoftforkReject,
266+
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt,
267+
WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
268268
};

types/src/v19/mod.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//! | gettxoutproof | done |
3838
//! | gettxoutsetinfo | done |
3939
//! | preciousblock | done |
40-
//! | pruneblockchain | omitted |
40+
//! | pruneblockchain | done |
4141
//! | savemempool | omitted |
4242
//! | scantxoutset | omitted |
4343
//! | verifychain | omitted |
@@ -256,10 +256,11 @@ pub use crate::v17::{
256256
ListSinceBlockError, ListSinceBlockTransaction, ListSinceBlockTransactionError,
257257
ListTransactions, ListTransactionsItem, ListTransactionsItemError, ListUnspent,
258258
ListUnspentItem, ListUnspentItemError, ListWallets, LoadWallet, Locked, Logging, PeerInfo,
259-
RawTransactionError, RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany,
260-
SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction, SignRawTransactionError,
261-
SoftforkReject, TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
262-
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
259+
PruneBlockchain, RawTransactionError, RawTransactionInput, RawTransactionOutput,
260+
RescanBlockchain, SendMany, SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction,
261+
SignRawTransactionError, SoftforkReject, TestMempoolAccept, TransactionCategory, UploadTarget,
262+
VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt,
263+
WitnessUtxo,
263264
};
264265
#[doc(inline)]
265266
pub use crate::v18::{

types/src/v20/mod.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//! | gettxoutproof | done |
3838
//! | gettxoutsetinfo | done |
3939
//! | preciousblock | done |
40-
//! | pruneblockchain | omitted |
40+
//! | pruneblockchain | done |
4141
//! | savemempool | omitted |
4242
//! | scantxoutset | omitted |
4343
//! | verifychain | omitted |
@@ -248,11 +248,12 @@ pub use crate::{
248248
ListReceivedByAddressError, ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError,
249249
ListSinceBlockTransaction, ListSinceBlockTransactionError, ListTransactions,
250250
ListTransactionsItem, ListTransactionsItemError, ListUnspent, ListUnspentItem,
251-
ListUnspentItemError, ListWallets, LoadWallet, Locked, PeerInfo, RawTransactionError,
252-
RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction,
253-
SendToAddress, SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
254-
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
255-
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
251+
ListUnspentItemError, ListWallets, LoadWallet, Locked, PeerInfo, PruneBlockchain,
252+
RawTransactionError, RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany,
253+
SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction,
254+
SignRawTransactionError, SoftforkReject, TestMempoolAccept, TransactionCategory,
255+
UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError,
256+
WalletProcessPsbt, WitnessUtxo,
256257
},
257258
v18::{
258259
ActiveCommand, AnalyzePsbt, AnalyzePsbtError, AnalyzePsbtInput, AnalyzePsbtInputMissing,

types/src/v21/mod.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//! | gettxoutproof | done |
3838
//! | gettxoutsetinfo | done |
3939
//! | preciousblock | done |
40-
//! | pruneblockchain | omitted |
40+
//! | pruneblockchain | done |
4141
//! | savemempool | omitted |
4242
//! | scantxoutset | omitted |
4343
//! | verifychain | omitted |
@@ -254,11 +254,12 @@ pub use crate::{
254254
ListReceivedByAddressError, ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError,
255255
ListSinceBlockTransaction, ListSinceBlockTransactionError, ListTransactions,
256256
ListTransactionsItem, ListTransactionsItemError, ListUnspent, ListUnspentItem,
257-
ListUnspentItemError, ListWallets, LoadWallet, Locked, PeerInfo, RawTransactionError,
258-
RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction,
259-
SendToAddress, SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
260-
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,
261-
WalletCreateFundedPsbt, WalletCreateFundedPsbtError, WalletProcessPsbt, WitnessUtxo,
257+
ListUnspentItemError, ListWallets, LoadWallet, Locked, PeerInfo, PruneBlockchain,
258+
RawTransactionError, RawTransactionInput, RawTransactionOutput, RescanBlockchain, SendMany,
259+
SendRawTransaction, SendToAddress, SignMessage, SignRawTransaction,
260+
SignRawTransactionError, SoftforkReject, TestMempoolAccept, TransactionCategory,
261+
UploadTarget, VerifyTxOutProof, WalletCreateFundedPsbt, WalletCreateFundedPsbtError,
262+
WalletProcessPsbt, WitnessUtxo,
262263
},
263264
v18::{
264265
ActiveCommand, AnalyzePsbt, AnalyzePsbtError, AnalyzePsbtInput, AnalyzePsbtInputMissing,

types/src/v22/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
//! | gettxoutproof | done |
3838
//! | gettxoutsetinfo | done |
3939
//! | preciousblock | done |
40-
//! | pruneblockchain | omitted |
40+
//! | pruneblockchain | done |
4141
//! | savemempool | omitted |
4242
//! | scantxoutset | omitted |
4343
//! | verifychain | omitted |
@@ -269,7 +269,7 @@ pub use crate::{
269269
ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction,
270270
ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem,
271271
ListTransactionsItemError, ListUnspent, ListUnspentItem, ListUnspentItemError, ListWallets,
272-
LoadWallet, Locked, PeerInfo, RawTransactionError, RawTransactionInput,
272+
LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
273273
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
274274
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
275275
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,

types/src/v23/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
//! | gettxoutproof | done |
4040
//! | gettxoutsetinfo | done |
4141
//! | preciousblock | done |
42-
//! | pruneblockchain | omitted |
42+
//! | pruneblockchain | done |
4343
//! | savemempool | omitted |
4444
//! | scantxoutset | omitted |
4545
//! | verifychain | omitted |
@@ -260,7 +260,7 @@ pub use crate::{
260260
ListReceivedByAddressItem, ListSinceBlock, ListSinceBlockError, ListSinceBlockTransaction,
261261
ListSinceBlockTransactionError, ListTransactions, ListTransactionsItem,
262262
ListTransactionsItemError, ListUnspent, ListUnspentItem, ListUnspentItemError, ListWallets,
263-
LoadWallet, Locked, PeerInfo, RawTransactionError, RawTransactionInput,
263+
LoadWallet, Locked, PeerInfo, PruneBlockchain, RawTransactionError, RawTransactionInput,
264264
RawTransactionOutput, RescanBlockchain, SendMany, SendRawTransaction, SendToAddress,
265265
SignMessage, SignRawTransaction, SignRawTransactionError, SoftforkReject,
266266
TestMempoolAccept, TransactionCategory, UploadTarget, VerifyTxOutProof,

0 commit comments

Comments
 (0)