Skip to content

Commit a226650

Browse files
committed
Implement removeprunedfunds method and test
1 parent b32a91d commit a226650

File tree

15 files changed

+41
-0
lines changed

15 files changed

+41
-0
lines changed

client/src/client_sync/v17/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ crate::impl_client_v17__list_transactions!();
143143
crate::impl_client_v17__list_unspent!();
144144
crate::impl_client_v17__list_wallets!();
145145
crate::impl_client_v17__load_wallet!();
146+
crate::impl_client_v17__remove_pruned_funds!();
146147
crate::impl_client_v17__rescan_blockchain!();
147148
crate::impl_client_v17__send_many!();
148149
crate::impl_client_v17__send_to_address!();

client/src/client_sync/v17/wallet.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,18 @@ macro_rules! impl_client_v17__load_wallet {
499499
};
500500
}
501501

502+
/// Implements Bitcoin Core JSON-RPC API method `removeprunedfunds`.
503+
#[macro_export]
504+
macro_rules! impl_client_v17__remove_pruned_funds {
505+
() => {
506+
impl Client {
507+
pub fn remove_pruned_funds(&self, txid: Txid) -> Result<()> {
508+
self.call("removeprunedfunds", &[into_json(txid)?])
509+
}
510+
}
511+
};
512+
}
513+
502514
/// Implements Bitcoin Core JSON-RPC API method `rescanblockchain`.
503515
#[macro_export]
504516
macro_rules! impl_client_v17__rescan_blockchain {

client/src/client_sync/v18/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ crate::impl_client_v17__list_unspent!();
160160
crate::impl_client_v17__list_wallets!();
161161
crate::impl_client_v18__list_wallet_dir!();
162162
crate::impl_client_v17__load_wallet!();
163+
crate::impl_client_v17__remove_pruned_funds!();
163164
crate::impl_client_v17__rescan_blockchain!();
164165
crate::impl_client_v17__send_many!();
165166
crate::impl_client_v17__send_to_address!();

client/src/client_sync/v19/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ crate::impl_client_v17__list_unspent!();
156156
crate::impl_client_v18__list_wallet_dir!();
157157
crate::impl_client_v17__list_wallets!();
158158
crate::impl_client_v17__load_wallet!();
159+
crate::impl_client_v17__remove_pruned_funds!();
159160
crate::impl_client_v17__rescan_blockchain!();
160161
crate::impl_client_v17__send_many!();
161162
crate::impl_client_v17__send_to_address!();

client/src/client_sync/v20/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ crate::impl_client_v17__list_unspent!();
153153
crate::impl_client_v18__list_wallet_dir!();
154154
crate::impl_client_v17__list_wallets!();
155155
crate::impl_client_v17__load_wallet!();
156+
crate::impl_client_v17__remove_pruned_funds!();
156157
crate::impl_client_v17__rescan_blockchain!();
157158
crate::impl_client_v17__send_many!();
158159
crate::impl_client_v17__send_to_address!();

client/src/client_sync/v21/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ crate::impl_client_v17__list_unspent!();
155155
crate::impl_client_v18__list_wallet_dir!();
156156
crate::impl_client_v17__list_wallets!();
157157
crate::impl_client_v17__load_wallet!();
158+
crate::impl_client_v17__remove_pruned_funds!();
158159
crate::impl_client_v17__rescan_blockchain!();
159160
crate::impl_client_v17__send_many!();
160161
crate::impl_client_v17__send_to_address!();

client/src/client_sync/v22/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ crate::impl_client_v17__list_unspent!();
155155
crate::impl_client_v18__list_wallet_dir!();
156156
crate::impl_client_v17__list_wallets!();
157157
crate::impl_client_v17__load_wallet!();
158+
crate::impl_client_v17__remove_pruned_funds!();
158159
crate::impl_client_v17__rescan_blockchain!();
159160
crate::impl_client_v17__send_many!();
160161
crate::impl_client_v17__send_to_address!();

client/src/client_sync/v23/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ crate::impl_client_v17__list_unspent!();
157157
crate::impl_client_v18__list_wallet_dir!();
158158
crate::impl_client_v17__list_wallets!();
159159
crate::impl_client_v22__load_wallet!();
160+
crate::impl_client_v17__remove_pruned_funds!();
160161
crate::impl_client_v17__rescan_blockchain!();
161162
crate::impl_client_v17__send_many!();
162163
crate::impl_client_v17__send_to_address!();

client/src/client_sync/v24/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ crate::impl_client_v17__list_unspent!();
154154
crate::impl_client_v18__list_wallet_dir!();
155155
crate::impl_client_v17__list_wallets!();
156156
crate::impl_client_v22__load_wallet!();
157+
crate::impl_client_v17__remove_pruned_funds!();
157158
crate::impl_client_v17__rescan_blockchain!();
158159
crate::impl_client_v17__send_many!();
159160
crate::impl_client_v17__send_to_address!();

client/src/client_sync/v25/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ crate::impl_client_v17__list_unspent!();
154154
crate::impl_client_v18__list_wallet_dir!();
155155
crate::impl_client_v17__list_wallets!();
156156
crate::impl_client_v22__load_wallet!();
157+
crate::impl_client_v17__remove_pruned_funds!();
157158
crate::impl_client_v17__rescan_blockchain!();
158159
crate::impl_client_v17__send_many!();
159160
crate::impl_client_v17__send_to_address!();

0 commit comments

Comments
 (0)