Skip to content

Commit

Permalink
Bloch hash for get_protx_info and public mn_type (#57)
Browse files Browse the repository at this point in the history
* fixes

* fix

* fix

* fix

* fix
  • Loading branch information
owl352 authored Feb 27, 2025
1 parent a0e4091 commit d9fa9dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1397,9 +1397,10 @@ pub trait RpcApi: Sized {
}

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

self.call::<json::ProTxInfo>("protx", handle_defaults(&mut args, &[null()]))
}

/// Returns a list of provider transactions
Expand Down
2 changes: 1 addition & 1 deletion json/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3007,7 +3007,7 @@ pub struct MetaInfo {
#[serde(rename_all = "camelCase")]
pub struct ProTxInfo {
#[serde(rename = "type")]
mn_type: Option<String>,
pub mn_type: Option<String>,
#[serde(rename = "proTxHash")]
pub pro_tx_hash: ProTxHash,
#[serde(with = "hex")]
Expand Down

0 comments on commit d9fa9dd

Please sign in to comment.