File tree Expand file tree Collapse file tree 15 files changed +46
-0
lines changed Expand file tree Collapse file tree 15 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ crate::impl_client_v17__verify_message!();
112
112
crate :: impl_client_v17__abandon_transaction!( ) ;
113
113
crate :: impl_client_v17__abort_rescan!( ) ;
114
114
crate :: impl_client_v17__add_multisig_address!( ) ;
115
+ crate :: impl_client_v17__backup_wallet!( ) ;
115
116
crate :: impl_client_v17__bump_fee!( ) ;
116
117
crate :: impl_client_v17__create_wallet!( ) ;
117
118
crate :: impl_client_v17__dump_priv_key!( ) ;
Original file line number Diff line number Diff line change @@ -59,6 +59,22 @@ macro_rules! impl_client_v17__add_multisig_address {
59
59
} ;
60
60
}
61
61
62
+ /// Implements Bitcoin Core JSON-RPC API method `bumpfee`.
63
+ #[ macro_export]
64
+ macro_rules! impl_client_v17__backup_wallet {
65
+ ( ) => {
66
+ impl Client {
67
+ pub fn backup_wallet( & self , destination: & Path ) -> Result <( ) > {
68
+ match self . call( "backupwallet" , & [ into_json( destination) ?] ) {
69
+ Ok ( serde_json:: Value :: Null ) => Ok ( ( ) ) ,
70
+ Ok ( res) => Err ( Error :: Returned ( res. to_string( ) ) ) ,
71
+ Err ( err) => Err ( err. into( ) ) ,
72
+ }
73
+ }
74
+ }
75
+ } ;
76
+ }
77
+
62
78
/// Implements Bitcoin Core JSON-RPC API method `bumpfee`.
63
79
#[ macro_export]
64
80
macro_rules! impl_client_v17__bump_fee {
Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ crate::impl_client_v17__verify_message!();
126
126
crate :: impl_client_v17__abandon_transaction!( ) ;
127
127
crate :: impl_client_v17__abort_rescan!( ) ;
128
128
crate :: impl_client_v17__add_multisig_address!( ) ;
129
+ crate :: impl_client_v17__backup_wallet!( ) ;
129
130
crate :: impl_client_v17__bump_fee!( ) ;
130
131
crate :: impl_client_v17__create_wallet!( ) ;
131
132
crate :: impl_client_v17__dump_priv_key!( ) ;
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ crate::impl_client_v17__verify_message!();
121
121
crate :: impl_client_v17__abandon_transaction!( ) ;
122
122
crate :: impl_client_v17__abort_rescan!( ) ;
123
123
crate :: impl_client_v17__add_multisig_address!( ) ;
124
+ crate :: impl_client_v17__backup_wallet!( ) ;
124
125
crate :: impl_client_v17__bump_fee!( ) ;
125
126
crate :: impl_client_v17__create_wallet!( ) ;
126
127
crate :: impl_client_v17__dump_priv_key!( ) ;
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ crate::impl_client_v17__verify_message!();
118
118
crate :: impl_client_v17__abandon_transaction!( ) ;
119
119
crate :: impl_client_v17__abort_rescan!( ) ;
120
120
crate :: impl_client_v17__add_multisig_address!( ) ;
121
+ crate :: impl_client_v17__backup_wallet!( ) ;
121
122
crate :: impl_client_v17__bump_fee!( ) ;
122
123
crate :: impl_client_v17__create_wallet!( ) ;
123
124
crate :: impl_client_v17__dump_priv_key!( ) ;
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ crate::impl_client_v17__verify_message!();
120
120
crate :: impl_client_v17__abandon_transaction!( ) ;
121
121
crate :: impl_client_v17__abort_rescan!( ) ;
122
122
crate :: impl_client_v17__add_multisig_address!( ) ;
123
+ crate :: impl_client_v17__backup_wallet!( ) ;
123
124
crate :: impl_client_v17__bump_fee!( ) ;
124
125
crate :: impl_client_v17__create_wallet!( ) ;
125
126
crate :: impl_client_v17__dump_priv_key!( ) ;
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ crate::impl_client_v17__verify_message!();
120
120
crate :: impl_client_v17__abandon_transaction!( ) ;
121
121
crate :: impl_client_v17__abort_rescan!( ) ;
122
122
crate :: impl_client_v17__add_multisig_address!( ) ;
123
+ crate :: impl_client_v17__backup_wallet!( ) ;
123
124
crate :: impl_client_v17__bump_fee!( ) ;
124
125
crate :: impl_client_v17__create_wallet!( ) ;
125
126
crate :: impl_client_v17__dump_priv_key!( ) ;
Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ crate::impl_client_v17__verify_message!();
122
122
crate :: impl_client_v17__abandon_transaction!( ) ;
123
123
crate :: impl_client_v17__abort_rescan!( ) ;
124
124
crate :: impl_client_v17__add_multisig_address!( ) ;
125
+ crate :: impl_client_v17__backup_wallet!( ) ;
125
126
crate :: impl_client_v17__bump_fee!( ) ;
126
127
crate :: impl_client_v23__create_wallet!( ) ;
127
128
crate :: impl_client_v17__dump_priv_key!( ) ;
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ crate::impl_client_v17__verify_message!();
119
119
crate :: impl_client_v17__abandon_transaction!( ) ;
120
120
crate :: impl_client_v17__abort_rescan!( ) ;
121
121
crate :: impl_client_v17__add_multisig_address!( ) ;
122
+ crate :: impl_client_v17__backup_wallet!( ) ;
122
123
crate :: impl_client_v17__bump_fee!( ) ;
123
124
crate :: impl_client_v23__create_wallet!( ) ;
124
125
crate :: impl_client_v17__dump_priv_key!( ) ;
Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ crate::impl_client_v17__verify_message!();
119
119
crate :: impl_client_v17__abandon_transaction!( ) ;
120
120
crate :: impl_client_v17__abort_rescan!( ) ;
121
121
crate :: impl_client_v17__add_multisig_address!( ) ;
122
+ crate :: impl_client_v17__backup_wallet!( ) ;
122
123
crate :: impl_client_v17__bump_fee!( ) ;
123
124
crate :: impl_client_v23__create_wallet!( ) ;
124
125
crate :: impl_client_v17__dump_priv_key!( ) ;
You can’t perform that action at this time.
0 commit comments