Skip to content

Commit 84efe1d

Browse files
committed
f Add TODOs
1 parent ce9acf5 commit 84efe1d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/access.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ where
135135
if tx_status.confirmed {
136136
if let Some(tx) = client.get_tx(&txid).await? {
137137
if let Some(block_height) = tx_status.block_height {
138+
// TODO: Switch to `get_header_by_hash` once released upstream (https://github.com/bitcoindevkit/rust-esplora-client/pull/17)
138139
let block_header = client.get_header(block_height).await?;
139140
if let Some(merkle_proof) = client.get_merkle_proof(&txid).await? {
140141
if block_height == merkle_proof.block_height {
@@ -175,6 +176,7 @@ where
175176
let spending_txid = output_status.txid.unwrap();
176177
if let Some(spending_tx) = client.get_tx(&spending_txid).await? {
177178
let block_height = spending_tx_status.block_height.unwrap();
179+
// TODO: Switch to `get_header_by_hash` once released upstream (https://github.com/bitcoindevkit/rust-esplora-client/pull/17)
178180
let block_header = client.get_header(block_height).await?;
179181
if let Some(merkle_proof) =
180182
client.get_merkle_proof(&spending_txid).await?

0 commit comments

Comments
 (0)