Skip to content

Commit

Permalink
fixes from comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wsodsong committed Aug 29, 2024
1 parent 6f760b2 commit 170f8e6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions state/carmen.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,12 @@ func (s *carmenStateDB) GetLogs(common.Hash, uint64, common.Hash) []*types.Log {
}

func (s *carmenStateDB) PointCache() *utils.PointCache {
// this should not be relevant for revisions up to Cancun
panic("PointCache not implemented")
}

func (s *carmenStateDB) Witness() *stateless.Witness {
// this should not be relevant for revisions up to Cancun
return nil
}

Expand Down
2 changes: 2 additions & 0 deletions state/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,13 @@ func (db *inMemoryStateDB) GetLogs(txHash common.Hash, block uint64, blockHash c
}

func (db *inMemoryStateDB) PointCache() *utils.PointCache {
// this should not be relevant for revisions up to Cancun
panic("PointCache not implemented")
}

// Witness retrieves the current state witness being collected.
func (db *inMemoryStateDB) Witness() *stateless.Witness {
// this should not be relevant for revisions up to Cancun
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion state/proxy/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func (s *loggingVmStateDb) PointCache() *utils.PointCache {
// Witness retrieves the current state witness.
func (s *loggingVmStateDb) Witness() *stateless.Witness {
res := s.db.Witness()
s.writeLog("Witness, %v", res)
s.writeLog("Witness, %s", res)
return res
}

Expand Down
2 changes: 2 additions & 0 deletions state/substate.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ func (db *offTheChainDB) TrieDB() *triedb.Database {
}

func (db *offTheChainDB) PointCache() *utils.PointCache {
// this should not be relevant for revisions up to Cancun
panic("PointCache not implemented")
}

// Witness retrieves the current state witness being collected.
func (db *offTheChainDB) Witness() *stateless.Witness {
// this should not be relevant for revisions up to Cancun
return nil
}

Expand Down

0 comments on commit 170f8e6

Please sign in to comment.