diff --git a/state/block_cache.go b/state/block_cache.go index 74f6c2f82..3198c3b95 100644 --- a/state/block_cache.go +++ b/state/block_cache.go @@ -23,6 +23,7 @@ func makeStorage(db dbm.DB, root []byte) merkle.Tree { return storage } +// The blockcache helps prevent unnecessary IAVLTree updates and garbage generation. type BlockCache struct { db dbm.DB backend *State diff --git a/state/tx_cache.go b/state/tx_cache.go index 71d72cc93..b4afcc9dd 100644 --- a/state/tx_cache.go +++ b/state/tx_cache.go @@ -134,8 +134,6 @@ func (cache *TxCache) Sync() { cache.backend.UpdateAccount(toStateAccount(acc)) } } - - // TODO support logs, add them to the cache somehow. } func (cache *TxCache) AddLog(log *vm.Log) {