From 30ad00f46bf0368f4a6b5298b140d0a6564f7707 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Thu, 5 Mar 2026 11:57:50 +0800 Subject: [PATCH] triedb/pathdb: fix stall condition --- triedb/pathdb/history_indexer_state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/triedb/pathdb/history_indexer_state.go b/triedb/pathdb/history_indexer_state.go index c8d0826c07..b7887fc642 100644 --- a/triedb/pathdb/history_indexer_state.go +++ b/triedb/pathdb/history_indexer_state.go @@ -135,7 +135,7 @@ func (s *initerState) update() { newfhash := rawdb.ReadHeadFastBlockHash(s.disk) newbhash := rawdb.ReadHeadBlockHash(s.disk) newskeleton := rawdb.ReadSkeletonSyncStatus(s.disk) - hasProgress := newhhash.Cmp(hhash) != 0 || newfhash.Cmp(fhash) != 0 || newbhash.Cmp(bhash) != 0 || bytes.Equal(newskeleton, skeleton) + hasProgress := newhhash.Cmp(hhash) != 0 || newfhash.Cmp(fhash) != 0 || newbhash.Cmp(bhash) != 0 || !bytes.Equal(newskeleton, skeleton) if !hasProgress && time.Since(lastProgress) > syncStalledTimeout { s.set(stateStalled)