Skip to content

Commit 9aed182

Browse files
committed
Clarify gettxmeta block hash error
1 parent 25443ce commit 9aed182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

node/src/rpc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ impl AsyncChainState {
828828
let block_hash = BlockHash::from_str(
829829
info.get("blockhash")
830830
.and_then(|t| t.as_str())
831-
.ok_or_else(|| anyhow!("Could not retrieve block hash"))?,
831+
.ok_or_else(|| anyhow!("Could not retrieve block hash for tx (is it in the mempool?)"))?,
832832
)?;
833833
let block = Self::get_indexed_block(index, &block_hash, client, rpc, chain_state).await?;
834834

0 commit comments

Comments
 (0)