We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97a19d5 commit 03783a4Copy full SHA for 03783a4
components/chainhook-event-observer/src/indexer/bitcoin/mod.rs
@@ -53,6 +53,7 @@ pub fn standardize_bitcoin_block(
53
let block = rpc.get_block(&block_hash).unwrap();
54
55
for mut tx in block.txdata.into_iter() {
56
+ let txid = tx.txid().to_string();
57
let mut inputs = vec![];
58
for input in tx.input.drain(..) {
59
inputs.push(TxIn {
@@ -76,7 +77,7 @@ pub fn standardize_bitcoin_block(
76
77
78
let tx = BitcoinTransactionData {
79
transaction_identifier: TransactionIdentifier {
- hash: format!("0x{}", tx.txid().to_string()),
80
+ hash: format!("0x{}", txid),
81
},
82
operations: vec![],
83
metadata: BitcoinTransactionMetadata { inputs, outputs },
0 commit comments