Skip to content

Commit

Permalink
fixes check for gossip log (only happens when 10 txs have been added
Browse files Browse the repository at this point in the history
  • Loading branch information
arya2 committed Nov 28, 2024
1 parent 55bcd27 commit 65982f7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions zebrad/tests/common/lightwalletd/send_transaction_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,12 @@ async fn send_transactions_from_block(
};
}

// Check if some transaction is sent to mempool,
// Fails if there are only coinbase transactions in the first 50 future blocks
tracing::info!("waiting for mempool to verify some transactions...");
zebrad.expect_stdout_line_matches("sending mempool transaction broadcast")?;
if transactions.len() >= 10 {
// Check if some transaction is sent to mempool,
// Fails if there are only coinbase transactions in the first 50 future blocks
tracing::info!("waiting for mempool to verify some transactions...");
zebrad.expect_stdout_line_matches("sending mempool transaction broadcast")?;
}

// Wait for more transactions to verify, `GetMempoolTx` only returns txs where tx.HasShieldedElements()
// <https://github.com/zcash/lightwalletd/blob/master/frontend/service.go#L537>
Expand Down

0 comments on commit 65982f7

Please sign in to comment.