mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 06:31:57 +00:00
state: fireEvents flag on ExecTx and fixes for GetAccount
This commit is contained in:
@@ -53,7 +53,9 @@ func (cache *BlockCache) GetAccount(addr []byte) *ac.Account {
|
||||
return acc
|
||||
} else {
|
||||
acc = cache.backend.GetAccount(addr)
|
||||
cache.accounts[string(addr)] = accountInfo{acc, nil, false, false}
|
||||
if acc != nil {
|
||||
cache.accounts[string(addr)] = accountInfo{acc, nil, false, false}
|
||||
}
|
||||
return acc
|
||||
}
|
||||
}
|
||||
@@ -187,7 +189,7 @@ func (cache *BlockCache) Sync() {
|
||||
}
|
||||
} else {
|
||||
if acc == nil {
|
||||
panic(Fmt("Account should not be nil for addr: %X", acc.Address))
|
||||
panic(Fmt("Account should not be nil for addr: %x", addrStr))
|
||||
}
|
||||
if storage != nil {
|
||||
newStorageRoot := storage.Save()
|
||||
|
||||
Reference in New Issue
Block a user