state: fireEvents flag on ExecTx and fixes for GetAccount

This commit is contained in:
Ethan Buchman
2015-04-14 19:26:55 -07:00
parent b4388ae010
commit 34098edb93
4 changed files with 15 additions and 6 deletions
+6 -2
View File
@@ -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) {