File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -303,26 +303,23 @@ pub trait RpcApi: Sized {
303
303
let ex_descriptor = json:: ImportDescriptorRequest {
304
304
active : true ,
305
305
descriptor : descriptor. to_string ( ) ,
306
- range : [ 0 , 1000 ] ,
306
+ range : [ 0 , 100 ] ,
307
307
next_index : 0 ,
308
- timestamp : 1455191478 ,
308
+ timestamp : "now" . to_string ( ) ,
309
309
internal : false ,
310
310
} ;
311
311
312
312
let in_descriptor = json:: ImportDescriptorRequest {
313
313
active : true ,
314
314
descriptor : change_descriptor. to_string ( ) ,
315
- range : [ 0 , 1000 ] ,
315
+ range : [ 0 , 100 ] ,
316
316
next_index : 0 ,
317
- timestamp : 1455191478 ,
317
+ timestamp : "now" . to_string ( ) ,
318
318
internal : true ,
319
319
} ;
320
320
321
321
let arg = into_json ( [ ex_descriptor, in_descriptor] ) ?;
322
- println ! ( "arg: {}" , arg) ;
323
- let result = self . call ( "importdescriptors" , & [ arg] ) ;
324
- println ! ( "result: {:?}" , result) ;
325
- result
322
+ self . call ( "importdescriptors" , & [ arg] )
326
323
}
327
324
328
325
fn list_wallets ( & self ) -> Result < Vec < String > > {
Original file line number Diff line number Diff line change @@ -1703,7 +1703,7 @@ pub struct ImportDescriptorRequest {
1703
1703
pub descriptor : String ,
1704
1704
pub range : [ i64 ; 2 ] ,
1705
1705
pub next_index : i64 ,
1706
- pub timestamp : i64 ,
1706
+ pub timestamp : String ,
1707
1707
pub internal : bool ,
1708
1708
}
1709
1709
You can’t perform that action at this time.
0 commit comments