Skip to content

Commit a0e4091

Browse files
authored
feat: new getislocks rpc (#58)
* feat: add getrawislocks method * fix: rename query method * feat: add getrawislocks method * fix: rename query method
1 parent 3626d39 commit a0e4091

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

client/src/client.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,15 @@ pub trait RpcApi: Sized {
446446
Ok(dashcore::consensus::encode::deserialize(&bytes)?)
447447
}
448448

449+
fn get_instant_locks(
450+
&self,
451+
txids: Vec<&dashcore::Txid>,
452+
) -> Result<Vec<String>> {
453+
let mut args = [into_json(txids)?];
454+
let instant_locks: Vec<String> = self.call("getislocks", handle_defaults(&mut args, &[null()]))?;
455+
Ok(instant_locks)
456+
}
457+
449458
fn get_raw_transaction_multi(
450459
&self,
451460
transactions_by_block_hash: BTreeMap<&BlockHash, Vec<&dashcore::Txid>>,

0 commit comments

Comments
 (0)