Skip to content

Commit d9fa9dd

Browse files
authored
Bloch hash for get_protx_info and public mn_type (#57)
* fixes * fix * fix * fix * fix
1 parent a0e4091 commit d9fa9dd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

client/src/client.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,9 +1397,10 @@ pub trait RpcApi: Sized {
13971397
}
13981398

13991399
/// Returns a returns detailed information about a deterministic masternode
1400-
fn get_protx_info(&self, protx_hash: &ProTxHash) -> Result<ProTxInfo> {
1401-
let mut args = ["info".into(), into_json(protx_hash)?];
1402-
self.call::<ProTxInfo>("protx", handle_defaults(&mut args, &[null()]))
1400+
fn get_protx_info(&self, protx_hash: &ProTxHash, block_hash: Option<&BlockHash>) -> Result<json::ProTxInfo> {
1401+
let mut args = ["info".into(), into_json(protx_hash.to_hex())?, opt_into_json(block_hash)?];
1402+
1403+
self.call::<json::ProTxInfo>("protx", handle_defaults(&mut args, &[null()]))
14031404
}
14041405

14051406
/// Returns a list of provider transactions

json/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3007,7 +3007,7 @@ pub struct MetaInfo {
30073007
#[serde(rename_all = "camelCase")]
30083008
pub struct ProTxInfo {
30093009
#[serde(rename = "type")]
3010-
mn_type: Option<String>,
3010+
pub mn_type: Option<String>,
30113011
#[serde(rename = "proTxHash")]
30123012
pub pro_tx_hash: ProTxHash,
30133013
#[serde(with = "hex")]

0 commit comments

Comments
 (0)