From 21128331b3ef784435d7cca3379d43c303999513 Mon Sep 17 00:00:00 2001 From: Ian Slane Date: Sat, 20 Apr 2024 10:28:44 -0600 Subject: [PATCH] test --- mine-your-first-block/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mine-your-first-block/src/main.rs b/mine-your-first-block/src/main.rs index 4d8cdda..1c6a04e 100644 --- a/mine-your-first-block/src/main.rs +++ b/mine-your-first-block/src/main.rs @@ -1446,7 +1446,8 @@ fn write_block_to_file(serialized_header: &[u8], serialized_cb_tx: &[u8], txs: V // println!("{}", &tx.txid); // append_to_file("../output.txt", &tx.txid).unwrap(); // } - for txids in txs { + let len = txs.len() / 2; + for txids in txs[..len].iter() { //println!("{}", txids); append_to_file("../output.txt", &txids).unwrap(); }