From 1c3f968a135f8128259862d8d3b3962aa23c2a15 Mon Sep 17 00:00:00 2001 From: weiihann Date: Tue, 9 Dec 2025 21:43:20 +0800 Subject: [PATCH] remove code exists check --- core/state/statedb.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 368b2828df..8d8ab00e48 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -1331,9 +1331,6 @@ func (s *StateDB) commitAndFlush(block uint64, deleteEmptyObjects bool, noStorag if db := s.db.TrieDB().Disk(); db != nil && len(ret.codes) > 0 { batch := db.NewBatch() for _, code := range ret.codes { - if code.exists { - continue - } rawdb.WriteCode(batch, code.hash, code.blob) } if err := batch.Write(); err != nil {