Documentation ¶
Index ¶
- type CacheDB
- func (self *CacheDB) CleanContractStorage(addr comm.Address, height uint32) error
- func (self *CacheDB) Commit()
- func (self *CacheDB) Delete(key []byte)
- func (self *CacheDB) DeleteContract(address comm.Address, height uint32)
- func (self *CacheDB) Get(key []byte) ([]byte, error)
- func (self *CacheDB) GetContract(addr comm.Address) (*payload.DeployCode, bool, error)
- func (self *CacheDB) IsContractDestroyed(addr comm.Address) (bool, error)
- func (self *CacheDB) MigrateContractStorage(oldAddress, newAddress comm.Address, height uint32) error
- func (self *CacheDB) NewIterator(key []byte) common.StoreIterator
- func (self *CacheDB) Put(key []byte, value []byte)
- func (self *CacheDB) PutContract(contract *payload.DeployCode)
- func (self *CacheDB) Reset()
- func (self *CacheDB) SetContractDestroyed(addr comm.Address, height uint32)
- func (self *CacheDB) UnsetContractDestroyed(addr comm.Address, height uint32)
- type Iter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheDB ¶ added in v1.5.1
type CacheDB struct {
// contains filtered or unexported fields
}
CacheDB is smart contract execute cache, it contain transaction cache and block cache When smart contract execute finish, need to commit transaction cache to block cache
func NewCacheDB ¶ added in v1.5.1
NewCacheDB return a new contract cache
func (*CacheDB) CleanContractStorage ¶ added in v1.13.0
func (*CacheDB) Commit ¶ added in v1.5.1
func (self *CacheDB) Commit()
Commit current transaction cache to block cache
func (*CacheDB) DeleteContract ¶ added in v1.5.1
func (*CacheDB) GetContract ¶ added in v1.5.1
func (*CacheDB) IsContractDestroyed ¶ added in v1.13.0
func (*CacheDB) MigrateContractStorage ¶ added in v1.13.0
func (*CacheDB) NewIterator ¶ added in v1.5.1
func (self *CacheDB) NewIterator(key []byte) common.StoreIterator
func (*CacheDB) PutContract ¶ added in v1.5.1
func (self *CacheDB) PutContract(contract *payload.DeployCode)
func (*CacheDB) SetContractDestroyed ¶ added in v1.13.0
Click to show internal directories.
Click to hide internal directories.