mirror of
https://github.com/romanz/electrs.git
synced 2026-08-13 12:32:52 +02:00
Update transaction.id_from_pos response for API compliance
This commit is contained in:
parent
24ed1437f3
commit
66b1de65c0
1 changed files with 2 additions and 2 deletions
|
|
@ -481,9 +481,9 @@ impl Rpc {
|
|||
let txid: Txid = txids[tx_pos];
|
||||
if merkle {
|
||||
let proof = Proof::create(&txids, tx_pos);
|
||||
Ok(json!({"tx_id": txid, "merkle": proof.to_hex()}))
|
||||
Ok(json!({"tx_hash": txid, "merkle": proof.to_hex()}))
|
||||
} else {
|
||||
Ok(json!({ "tx_id": txid }))
|
||||
Ok(json!({ "tx_hash": txid }))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue