From 5a94554799c83de98450c801b7b20cb883664b9d Mon Sep 17 00:00:00 2001
From: 0g-peterzhb <158457852+0g-peterzhb@users.noreply.github.com>
Date: Wed, 26 Nov 2025 16:01:58 +0800
Subject: [PATCH] @peter/fix pad rear data (#400)
* debug log on the padding index
* add node hash rpc
* debug api
* fix data race on seal vs batch
* lint
---
Cargo.lock | 1 +
node/rpc/src/zgs/api.rs | 9 ++
node/rpc/src/zgs/impl.rs | 42 +++++
node/storage-async/Cargo.toml | 1 +
node/storage-async/src/lib.rs | 4 +
node/storage/src/log_store/flow_store.rs | 34 ++++-
.../src/log_store/load_chunk/chunk_data.rs | 2 +-
node/storage/src/log_store/load_chunk/mod.rs | 143 +++++++++++++++++-
node/storage/src/log_store/log_manager.rs | 47 +++++-
node/storage/src/log_store/mod.rs | 9 +-
10 files changed, 276 insertions(+), 16 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 35a912e..e4ac131 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -7747,6 +7747,7 @@ name = "storage-async"
version = "0.1.0"
dependencies = [
"anyhow",
+ "append_merkle",
"backtrace",
"eth2_ssz",
"shared_types",
diff --git a/node/rpc/src/zgs/api.rs b/node/rpc/src/zgs/api.rs
index a922da5..aa13320 100644
--- a/node/rpc/src/zgs/api.rs
+++ b/node/rpc/src/zgs/api.rs
@@ -59,6 +59,12 @@ pub trait Rpc {
index: usize,
) -> RpcResult