Browse Source

comment updates for state

pull/122/head
Jae Kwon 10 years ago
parent
commit
344ad54984
2 changed files with 1 additions and 2 deletions
  1. +1
    -0
      state/block_cache.go
  2. +0
    -2
      state/tx_cache.go

+ 1
- 0
state/block_cache.go View File

@ -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


+ 0
- 2
state/tx_cache.go View File

@ -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) {


Loading…
Cancel
Save