diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-03 18:05:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-03 18:05:12 +0800 |
commit | 9d492b0509d3614072e0f9ed9fd1dc560ba29fc9 (patch) | |
tree | baf8e50b664cc64e6e8d45a234922aacbc14c860 /ethchain/block_manager.go | |
parent | bfed1c7cac98e135ba176c03bd7b4fe51c0dc932 (diff) | |
download | go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar.gz go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar.bz2 go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar.lz go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar.xz go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar.zst go-tangerine-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.zip |
Renamed Address to Account
Diffstat (limited to 'ethchain/block_manager.go')
-rw-r--r-- | ethchain/block_manager.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ethchain/block_manager.go b/ethchain/block_manager.go index 8ea71ab31..b184fa9c9 100644 --- a/ethchain/block_manager.go +++ b/ethchain/block_manager.go @@ -85,17 +85,17 @@ func NewBlockManager(speaker PublicSpeaker) *BlockManager { } // Watches any given address and puts it in the address state store -func (bm *BlockManager) WatchAddr(addr []byte) *AddressState { +func (bm *BlockManager) WatchAddr(addr []byte) *AccountState { account := bm.bc.CurrentBlock.state.GetAccount(addr) return bm.addrStateStore.Add(addr, account) } -func (bm *BlockManager) GetAddrState(addr []byte) *AddressState { +func (bm *BlockManager) GetAddrState(addr []byte) *AccountState { account := bm.addrStateStore.Get(addr) if account == nil { a := bm.bc.CurrentBlock.state.GetAccount(addr) - account = &AddressState{Nonce: a.Nonce, Account: a} + account = &AccountState{Nonce: a.Nonce, Account: a} } return account |