Skip to content

core/state/statedb.go — Version Comparison

v1.16.8 v1.17.3
Branch etc/v1.16.8-full-node etc/v1.17.3-full-node
Delta +2 -2 +1 -1
ETC delta on v1.16.8 (+2 -2)
diff --git a/core/state/statedb.go b/core/state/statedb.go
index b77069825..d291a122a 100644
--- a/core/state/statedb.go
+++ b/core/state/statedb.go
@@ -1329,7 +1329,7 @@ func (s *StateDB) commitAndFlush(block uint64, deleteEmptyObjects bool, noStorag
    }
    if !ret.empty() {
        // If snapshotting is enabled, update the snapshot tree with this new version
-       if snap := s.db.Snapshot(); snap != nil && snap.Snapshot(ret.originRoot) != nil {
+       if snap := s.db.Snapshot(); snap != nil {
            start := time.Now()
            if err := snap.Update(ret.root, ret.originRoot, ret.accounts, ret.storages); err != nil {
                log.Warn("Failed to update snapshot tree", "from", ret.originRoot, "to", ret.root, "err", err)
@@ -1424,7 +1424,7 @@ func (s *StateDB) Prepare(rules params.Rules, sender, coinbase common.Address, d
                al.AddSlot(el.Address, key)
            }
        }
-       if rules.IsShanghai { // EIP-3651: warm coinbase
+       if rules.IsShanghai || rules.IsSpiral { // EIP-3651: warm coinbase
            al.AddAddress(coinbase)
        }
    }
ETC delta on v1.17.3 (+1 -1)
diff --git a/core/state/statedb.go b/core/state/statedb.go
index e6d8b5bff..86aa87210 100644
--- a/core/state/statedb.go
+++ b/core/state/statedb.go
@@ -1427,7 +1427,7 @@ func (s *StateDB) Prepare(rules params.Rules, sender, coinbase common.Address, d
                al.AddSlot(el.Address, key)
            }
        }
-       if rules.IsShanghai { // EIP-3651: warm coinbase
+       if rules.IsShanghai || rules.IsSpiral { // EIP-3651: warm coinbase
            al.AddAddress(coinbase)
        }
    }

← Back to Version Comparison