From 9236d3efb2d5ca03ee3ae28da977dfadbe739e8a Mon Sep 17 00:00:00 2001 From: rllola Date: Mon, 12 Jan 2026 22:36:15 +0100 Subject: [PATCH 1/2] fix the missing txouts (forgot to queue the current txouts COPY string) --- src/database.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/database.rs b/src/database.rs index ab451ec..5fb3b07 100644 --- a/src/database.rs +++ b/src/database.rs @@ -112,6 +112,8 @@ pub fn save_blocks( }); }); }); + txouts_strings.push(txouts_string.clone()); + let mut transaction = postgres_client.transaction().unwrap(); let mut block_writer = transaction From 6c907372d751c310ca487dc4646d63a0af9214a3 Mon Sep 17 00:00:00 2001 From: rllola Date: Wed, 14 Jan 2026 21:43:22 +0100 Subject: [PATCH 2/2] rustfmt --- src/database.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/database.rs b/src/database.rs index 5fb3b07..fe6d40b 100644 --- a/src/database.rs +++ b/src/database.rs @@ -114,7 +114,6 @@ pub fn save_blocks( }); txouts_strings.push(txouts_string.clone()); - let mut transaction = postgres_client.transaction().unwrap(); let mut block_writer = transaction .copy_in(format!("COPY {}.blocks FROM stdin (DELIMITER ',')", schema_name).as_str())