diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2017-02-23 06:29:59 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-02-23 06:29:59 +0800 |
commit | 024d41d0c2660d8f1dfbeb14921c7109e30493a2 (patch) | |
tree | a2b4ed630b84084c7f439d1539ed0551ec729cbd /core/state/managed_state.go | |
parent | 46ec4357e73dd0c43951d11638d9aed94f8ffd29 (diff) | |
download | go-tangerine-024d41d0c2660d8f1dfbeb14921c7109e30493a2.tar go-tangerine-024d41d0c2660d8f1dfbeb14921c7109e30493a2.tar.gz go-tangerine-024d41d0c2660d8f1dfbeb14921c7109e30493a2.tar.bz2 go-tangerine-024d41d0c2660d8f1dfbeb14921c7109e30493a2.tar.lz go-tangerine-024d41d0c2660d8f1dfbeb14921c7109e30493a2.tar.xz go-tangerine-024d41d0c2660d8f1dfbeb14921c7109e30493a2.tar.zst go-tangerine-024d41d0c2660d8f1dfbeb14921c7109e30493a2.zip |
core, core/state, core/vm: remove exported account getters (#3618)
Removed exported statedb object accessors, reducing the chance for nasty
bugs to creep in. It's also ugly and unnecessary to have these methods.
Diffstat (limited to 'core/state/managed_state.go')
-rw-r--r-- | core/state/managed_state.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/state/managed_state.go b/core/state/managed_state.go index 0d8f9dd28..1390ef4a0 100644 --- a/core/state/managed_state.go +++ b/core/state/managed_state.go @@ -23,7 +23,7 @@ import ( ) type account struct { - stateObject *StateObject + stateObject *stateObject nstart uint64 nonces []bool } @@ -128,7 +128,7 @@ func (ms *ManagedState) getAccount(addr common.Address) *account { } else { // Always make sure the state account nonce isn't actually higher // than the tracked one. - so := ms.StateDB.GetStateObject(addr) + so := ms.StateDB.getStateObject(addr) if so != nil && uint64(len(account.nonces))+account.nstart < so.Nonce() { ms.accounts[addr] = newAccount(so) } @@ -138,6 +138,6 @@ func (ms *ManagedState) getAccount(addr common.Address) *account { return ms.accounts[addr] } -func newAccount(so *StateObject) *account { +func newAccount(so *stateObject) *account { return &account{so, so.Nonce(), nil} } |