From d366e34271b9c8d0b8c23e792273db437a91386a Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Wed, 28 Feb 2024 20:28:16 +0800 Subject: [PATCH] triedb/pathdb: add todo --- triedb/pathdb/database.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/triedb/pathdb/database.go b/triedb/pathdb/database.go index cef137827e..abfc940750 100644 --- a/triedb/pathdb/database.go +++ b/triedb/pathdb/database.go @@ -391,6 +391,10 @@ func (db *Database) Recoverable(dest common.Hash) bool { if *id >= dl.stateID() { return false } + // This is a temporary workaround for the unavailability of the freezer in + // dev mode. As a consequence, the Pathdb loses the ability for deep reorg + // in certain cases. + // TODO(rjl493456442): Implement the in-memory ancient store. if db.freezer == nil { return false }