From 95aa65848ed229a385386f290014a7331fc9e784 Mon Sep 17 00:00:00 2001 From: renancloudwalk Date: Wed, 12 Jun 2024 06:43:54 -0300 Subject: [PATCH] doc: add details of log entries --- src/eth/consensus/{append_entries_storage.rs => log_entry.rs} | 3 +++ src/eth/consensus/mod.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) rename src/eth/consensus/{append_entries_storage.rs => log_entry.rs} (88%) diff --git a/src/eth/consensus/append_entries_storage.rs b/src/eth/consensus/log_entry.rs similarity index 88% rename from src/eth/consensus/append_entries_storage.rs rename to src/eth/consensus/log_entry.rs index 8a8b5ced2..db5d83665 100644 --- a/src/eth/consensus/append_entries_storage.rs +++ b/src/eth/consensus/log_entry.rs @@ -1,3 +1,6 @@ +/// Holds the log entries that are stored in the Raft log. +/// The log entries are either a BlockHeader or a TransactionExecution. +/// The LogEntry struct is used to store the index and term of the log entry. use prost::Message; use serde::Deserialize; use serde::Serialize; diff --git a/src/eth/consensus/mod.rs b/src/eth/consensus/mod.rs index a94d92da5..20ee9dd3c 100644 --- a/src/eth/consensus/mod.rs +++ b/src/eth/consensus/mod.rs @@ -1,5 +1,5 @@ -mod append_entries_storage; pub mod forward_to; +mod log_entry; use std::collections::HashMap; #[cfg(feature = "kubernetes")]