aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/block_manager.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-03 18:05:12 +0800
committerobscuren <geffobscura@gmail.com>2014-03-03 18:05:12 +0800
commit9d492b0509d3614072e0f9ed9fd1dc560ba29fc9 (patch)
treebaf8e50b664cc64e6e8d45a234922aacbc14c860 /ethchain/block_manager.go
parentbfed1c7cac98e135ba176c03bd7b4fe51c0dc932 (diff)
downloaddexon-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar.gz
dexon-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.tar.zst
dexon-9d492b0509d3614072e0f9ed9fd1dc560ba29fc9.zip
Renamed Address to Account
Diffstat (limited to 'ethchain/block_manager.go')
-rw-r--r--ethchain/block_manager.go6
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