From db8cbbbfe7f766caa10a3078eb7eaa9a24839abf Mon Sep 17 00:00:00 2001 From: Jan Starke Date: Sat, 9 Mar 2024 20:27:03 +0100 Subject: [PATCH] don't fail on empty transaction logs --- Cargo.toml | 2 +- src/transactionlog/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e149304..01df4f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nt_hive2" -version = "4.0.1" +version = "4.0.2" edition = "2021" authors = ["Jan Starke ", "Muteb Alqahtani "] license = "GPL-3.0" diff --git a/src/transactionlog/mod.rs b/src/transactionlog/mod.rs index 6173f50..b64bbd3 100644 --- a/src/transactionlog/mod.rs +++ b/src/transactionlog/mod.rs @@ -24,7 +24,7 @@ pub struct TransactionLog { #[br(try, args(FileType::TransactionLogVariant3,))] base_block: Option, - #[br(parse_with=read_log_entries, assert(!log_entries.is_empty()))] + #[br(parse_with=read_log_entries)] log_entries: Vec }