mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 14:34:17 +00:00
state: fireEvents flag on ExecTx and fixes for GetAccount
This commit is contained in:
+6
-2
@@ -30,9 +30,13 @@ func (cache *TxCache) GetAccount(addr Word256) *vm.Account {
|
||||
acc, removed := vmUnpack(cache.accounts[addr])
|
||||
if removed {
|
||||
return nil
|
||||
} else {
|
||||
return acc
|
||||
} else if acc == nil {
|
||||
acc2 := cache.backend.GetAccount(addr.Prefix(20))
|
||||
if acc2 != nil {
|
||||
return toVMAccount(acc2)
|
||||
}
|
||||
}
|
||||
return acc
|
||||
}
|
||||
|
||||
func (cache *TxCache) UpdateAccount(acc *vm.Account) {
|
||||
|
||||
Reference in New Issue
Block a user