Skip to content

Commit 4f05d21

Browse files
committed
updates
1 parent dacb985 commit 4f05d21

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

client/src/client.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -303,26 +303,23 @@ pub trait RpcApi: Sized {
303303
let ex_descriptor = json::ImportDescriptorRequest {
304304
active: true,
305305
descriptor: descriptor.to_string(),
306-
range: [0, 1000],
306+
range: [0, 100],
307307
next_index: 0,
308-
timestamp: 1455191478,
308+
timestamp: "now".to_string(),
309309
internal: false,
310310
};
311311

312312
let in_descriptor = json::ImportDescriptorRequest {
313313
active: true,
314314
descriptor: change_descriptor.to_string(),
315-
range: [0, 1000],
315+
range: [0, 100],
316316
next_index: 0,
317-
timestamp: 1455191478,
317+
timestamp: "now".to_string(),
318318
internal: true,
319319
};
320320

321321
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])
326323
}
327324

328325
fn list_wallets(&self) -> Result<Vec<String>> {

json/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ pub struct ImportDescriptorRequest {
17031703
pub descriptor: String,
17041704
pub range: [i64; 2],
17051705
pub next_index: i64,
1706-
pub timestamp: i64,
1706+
pub timestamp: String,
17071707
pub internal: bool,
17081708
}
17091709

0 commit comments

Comments
 (0)