Skip to content

Commit f855ead

Browse files
committed
Add psbtbumpfee method, model and test
Add the RPC `psbtbumpfee` type to v21 and add reexports. Add model, client macro and test. Update types table up to v29.
1 parent 2eecd0f commit f855ead

File tree

25 files changed

+157
-22
lines changed

25 files changed

+157
-22
lines changed

client/src/client_sync/v21/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ crate::impl_client_v18__list_wallet_dir!();
164164
crate::impl_client_v17__list_wallets!();
165165
crate::impl_client_v17__load_wallet!();
166166
crate::impl_client_v17__lock_unspent!();
167+
crate::impl_client_v21__psbt_bump_fee!();
167168
crate::impl_client_v17__remove_pruned_funds!();
168169
crate::impl_client_v17__rescan_blockchain!();
169170
crate::impl_client_v21__send!();

client/src/client_sync/v21/wallet.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ macro_rules! impl_client_v21__import_descriptors {
4545
};
4646
}
4747

48+
/// Implements Bitcoin Core JSON-RPC API method `psbtbumpfee`.
49+
#[macro_export]
50+
macro_rules! impl_client_v21__psbt_bump_fee {
51+
() => {
52+
impl Client {
53+
pub fn psbt_bump_fee(&self, txid: &bitcoin::Txid) -> Result<PsbtBumpFee> {
54+
self.call("psbtbumpfee", &[into_json(txid)?])
55+
}
56+
}
57+
};
58+
}
59+
4860
/// Implements Bitcoin Core JSON-RPC API method `send`.
4961
#[macro_export]
5062
macro_rules! impl_client_v21__send {

client/src/client_sync/v22/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ crate::impl_client_v18__list_wallet_dir!();
162162
crate::impl_client_v17__list_wallets!();
163163
crate::impl_client_v17__load_wallet!();
164164
crate::impl_client_v17__lock_unspent!();
165+
crate::impl_client_v21__psbt_bump_fee!();
165166
crate::impl_client_v17__remove_pruned_funds!();
166167
crate::impl_client_v17__rescan_blockchain!();
167168
crate::impl_client_v21__send!();

client/src/client_sync/v23/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ crate::impl_client_v18__list_wallet_dir!();
164164
crate::impl_client_v17__list_wallets!();
165165
crate::impl_client_v22__load_wallet!();
166166
crate::impl_client_v17__lock_unspent!();
167+
crate::impl_client_v21__psbt_bump_fee!();
167168
crate::impl_client_v17__remove_pruned_funds!();
168169
crate::impl_client_v17__rescan_blockchain!();
169170
crate::impl_client_v21__send!();

client/src/client_sync/v24/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ crate::impl_client_v18__list_wallet_dir!();
161161
crate::impl_client_v17__list_wallets!();
162162
crate::impl_client_v22__load_wallet!();
163163
crate::impl_client_v17__lock_unspent!();
164+
crate::impl_client_v21__psbt_bump_fee!();
164165
crate::impl_client_v17__remove_pruned_funds!();
165166
crate::impl_client_v17__rescan_blockchain!();
166167
crate::impl_client_v21__send!();

client/src/client_sync/v25/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ crate::impl_client_v18__list_wallet_dir!();
163163
crate::impl_client_v17__list_wallets!();
164164
crate::impl_client_v22__load_wallet!();
165165
crate::impl_client_v17__lock_unspent!();
166+
crate::impl_client_v21__psbt_bump_fee!();
166167
crate::impl_client_v17__remove_pruned_funds!();
167168
crate::impl_client_v17__rescan_blockchain!();
168169
crate::impl_client_v21__send!();

client/src/client_sync/v26/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ crate::impl_client_v18__list_wallet_dir!();
167167
crate::impl_client_v17__list_wallets!();
168168
crate::impl_client_v22__load_wallet!();
169169
crate::impl_client_v17__lock_unspent!();
170+
crate::impl_client_v21__psbt_bump_fee!();
170171
crate::impl_client_v17__remove_pruned_funds!();
171172
crate::impl_client_v17__rescan_blockchain!();
172173
crate::impl_client_v21__send!();

client/src/client_sync/v27/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ crate::impl_client_v18__list_wallet_dir!();
163163
crate::impl_client_v17__list_wallets!();
164164
crate::impl_client_v22__load_wallet!();
165165
crate::impl_client_v17__lock_unspent!();
166+
crate::impl_client_v21__psbt_bump_fee!();
166167
crate::impl_client_v17__remove_pruned_funds!();
167168
crate::impl_client_v17__rescan_blockchain!();
168169
crate::impl_client_v21__send!();

client/src/client_sync/v28/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ crate::impl_client_v18__list_wallet_dir!();
165165
crate::impl_client_v17__list_wallets!();
166166
crate::impl_client_v22__load_wallet!();
167167
crate::impl_client_v17__lock_unspent!();
168+
crate::impl_client_v21__psbt_bump_fee!();
168169
crate::impl_client_v17__remove_pruned_funds!();
169170
crate::impl_client_v17__rescan_blockchain!();
170171
crate::impl_client_v21__send!();

client/src/client_sync/v29/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ crate::impl_client_v18__list_wallet_dir!();
165165
crate::impl_client_v17__list_wallets!();
166166
crate::impl_client_v22__load_wallet!();
167167
crate::impl_client_v17__lock_unspent!();
168+
crate::impl_client_v21__psbt_bump_fee!();
168169
crate::impl_client_v17__remove_pruned_funds!();
169170
crate::impl_client_v17__rescan_blockchain!();
170171
crate::impl_client_v21__send!();

0 commit comments

Comments
 (0)