From 1edfbd7a689be408aec4aeedc2e896e14a119a3c Mon Sep 17 00:00:00 2001 From: Thomas Coratger <60488569+tcoratger@users.noreply.github.com> Date: Sat, 17 Aug 2024 09:43:11 -0700 Subject: [PATCH] chain-state: derive `Default` for `ExecutedBlock` (#10372) --- crates/chain-state/src/in_memory.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/chain-state/src/in_memory.rs b/crates/chain-state/src/in_memory.rs index 069726277b..68329be09d 100644 --- a/crates/chain-state/src/in_memory.rs +++ b/crates/chain-state/src/in_memory.rs @@ -656,7 +656,7 @@ impl BlockState { } /// Represents an executed block stored in-memory. -#[derive(Clone, Debug, PartialEq, Eq)] +#[derive(Clone, Debug, PartialEq, Eq, Default)] pub struct ExecutedBlock { /// Sealed block the rest of fields refer to. pub block: Arc, @@ -671,7 +671,7 @@ pub struct ExecutedBlock { } impl ExecutedBlock { - /// `ExecutedBlock` constructor. + /// [`ExecutedBlock`] constructor. pub const fn new( block: Arc, senders: Arc>,