Skip to content

Commit

Permalink
Merge pull request #77 from idky137/fix_mempool_tx
Browse files Browse the repository at this point in the history
Fix mempool tx
  • Loading branch information
Oscar-Pepper authored Oct 17, 2024
2 parents 31543d2 + 4ec2270 commit fbddf8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zaino-serve/src/rpc/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ impl CompactTxStreamer for GrpcClient {
Some("xxxxxx".to_string()),
)
.await?;

let mempool_height = (zebrad_client.get_blockchain_info().await?.blocks.0) + 1;
let zebrad_uri = self.zebrad_uri.clone();
let (channel_tx, channel_rx) = tokio::sync::mpsc::channel(32);
tokio::spawn(async move {
Expand All @@ -637,12 +637,12 @@ impl CompactTxStreamer for GrpcClient {
match zebrad_client
.get_raw_transaction(txid.clone(), Some(1))
.await {
Ok(GetTransactionResponse::Object { hex, height, .. }) => {
Ok(GetTransactionResponse::Object { hex, height: _, .. }) => {
txid_index += 1;
if channel_tx
.send(Ok(RawTransaction {
data: hex.bytes,
height: height as u64,
height: mempool_height as u64,
}))
.await
.is_err()
Expand Down

0 comments on commit fbddf8c

Please sign in to comment.