(k proto.AccountAddress)
| 64 | } |
| 65 | |
| 66 | func (s *metaState) loadAccountObject(k proto.AccountAddress) (o *types.Account, loaded bool) { |
| 67 | var old *types.Account |
| 68 | if old, loaded = s.dirty.accounts[k]; loaded { |
| 69 | if old == nil { |
| 70 | loaded = false |
| 71 | return |
| 72 | } |
| 73 | o = deepcopy.Copy(old).(*types.Account) |
| 74 | return |
| 75 | } |
| 76 | if old, loaded = s.readonly.accounts[k]; loaded { |
| 77 | o = deepcopy.Copy(old).(*types.Account) |
| 78 | return |
| 79 | } |
| 80 | return |
| 81 | } |
| 82 | |
| 83 | func (s *metaState) loadOrStoreAccountObject( |
| 84 | k proto.AccountAddress, v *types.Account) (o *types.Account, loaded bool, |
no outgoing calls