From 756f6406394f23ea69c4f7272033fb82f3e82348 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Tue, 24 Jun 2025 21:37:33 +0800 Subject: [PATCH] core/state: add TODO --- core/state/database_history.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/state/database_history.go b/core/state/database_history.go index 439109b503..314c56c470 100644 --- a/core/state/database_history.go +++ b/core/state/database_history.go @@ -32,6 +32,10 @@ import ( // historicReader wraps a historical state reader defined in path database, // providing historic state serving over the path scheme. +// +// TODO(rjl493456442): historicReader is not thread-safe and does not fully +// comply with the StateReader interface requirements, needs to be fixed. +// Currently, it is only used in a non-concurrent context, so it is safe for now. type historicReader struct { reader *pathdb.HistoricalStateReader }