global: snapshot

This commit is contained in:
nym21
2025-12-08 22:20:18 +01:00
parent 60a38b4108
commit 68c71e62d6
4 changed files with 22 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ pub fn get_transaction(TxidPath { txid }: TxidPath, query: &Query) -> Result<Tra
xori.bytes(&mut buffer, reader.xor_bytes());
let mut reader = Cursor::new(buffer);
let Ok(_) = bitcoin::Transaction::consensus_decode(&mut reader) else {
let Ok(tx) = bitcoin::Transaction::consensus_decode(&mut reader) else {
return Err(Error::Str("Failed decode the transaction"));
};