From 0ecf779d63c43cbb50dcb2b5a154799ef344f91e Mon Sep 17 00:00:00 2001 From: Arya Date: Fri, 22 Nov 2024 14:32:37 -0500 Subject: [PATCH] fixes new bug in send_transaction_test --- zebrad/tests/common/lightwalletd/send_transaction_test.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zebrad/tests/common/lightwalletd/send_transaction_test.rs b/zebrad/tests/common/lightwalletd/send_transaction_test.rs index 70c912dd28c..5ad08ede06d 100644 --- a/zebrad/tests/common/lightwalletd/send_transaction_test.rs +++ b/zebrad/tests/common/lightwalletd/send_transaction_test.rs @@ -185,7 +185,11 @@ pub async fn run() -> Result<()> { let sleep_until_lwd_last_mempool_refresh = tokio::time::sleep(std::time::Duration::from_secs(4)); - let transactions = &block.transactions; + let transactions: Vec<_> = block + .transactions + .iter() + .filter(|tx| !tx.is_coinbase()) + .collect(); let transaction_hashes: Vec = transactions.iter().map(|tx| tx.hash()).collect();