Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
envestcc committed Jan 3, 2025
1 parent 8b7a024 commit 88690d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion action/protocol/execution/evm/contractv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (c *contractV2) LoadRoot() error {
}
sn := c.sn[len(c.sn)-1]
c.sn = c.sn[:len(c.sn)-1]
log.L().Debug("revertsnapshot", zap.Int("sn", sn))
log.L().Debug("revertsnapshot", zap.Int("sn", sn), zap.Any("sns", c.sn))
c.intra.RevertToSnapshot(sn)
return nil
}
Expand Down
1 change: 1 addition & 0 deletions action/protocol/execution/evm/evmstatedbadapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,7 @@ func (stateDB *StateDBAdapter) Empty(evmAddr common.Address) bool {

// RevertToSnapshot reverts the state factory to the state at a given snapshot
func (stateDB *StateDBAdapter) RevertToSnapshot(snapshot int) {
log.L().Debug("RevertToSnapshot", zap.Int("snapshot", snapshot))
ds, ok := stateDB.selfDestructedSnapshot[snapshot]
if !ok && stateDB.panicUnrecoverableError {
log.T(stateDB.ctx).Panic("Failed to revert to snapshot.", zap.Int("snapshot", snapshot))
Expand Down

0 comments on commit 88690d1

Please sign in to comment.