1
0
mirror of https://github.com/romanz/electrs.git synced 2024-11-19 18:10:51 +01:00

Return original JSON respnse from getrawtransaction

This commit is contained in:
Roman Zeyde 2020-10-31 09:17:25 +02:00
parent e71150873e
commit fd14a83a7d
No known key found for this signature in database
GPG Key ID: 87CAE5FA46917CBB

View File

@ -88,10 +88,10 @@ impl Daemon {
txid: &Txid,
block_hash: Option<&BlockHash>,
) -> Result<Value> {
let args = [json!(txid), json!(true), json!(block_hash)];
self.client
.get_raw_transaction_info(txid, block_hash)
.context("get_raw_transaction failed")
.map(|result| json!(result))
.call("getrawtransaction", &args)
.context("getrawtransaction failed")
}
pub fn wait_for_new_block(&self, timeout: Duration) -> Result<BlockHash> {