aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_manager.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-31 07:03:28 +0800
committerobscuren <geffobscura@gmail.com>2014-03-31 07:03:28 +0800
commit7277c420479239fbea78417e42c43ee0162c2728 (patch)
tree71e87eca603437d569b78f9d64be80d537dcc034 /ethchain/state_manager.go
parent7cc28c8b469ba8df8bad1e3bbbba7fbd99b88535 (diff)
downloadgo-tangerine-7277c420479239fbea78417e42c43ee0162c2728.tar
go-tangerine-7277c420479239fbea78417e42c43ee0162c2728.tar.gz
go-tangerine-7277c420479239fbea78417e42c43ee0162c2728.tar.bz2
go-tangerine-7277c420479239fbea78417e42c43ee0162c2728.tar.lz
go-tangerine-7277c420479239fbea78417e42c43ee0162c2728.tar.xz
go-tangerine-7277c420479239fbea78417e42c43ee0162c2728.tar.zst
go-tangerine-7277c420479239fbea78417e42c43ee0162c2728.zip
Fixed some state issues
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r--ethchain/state_manager.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go
index 5c693442b..d9831d49f 100644
--- a/ethchain/state_manager.go
+++ b/ethchain/state_manager.go
@@ -82,7 +82,7 @@ func (sm *StateManager) WatchAddr(addr []byte) *AccountState {
func (sm *StateManager) GetAddrState(addr []byte) *AccountState {
account := sm.addrStateStore.Get(addr)
if account == nil {
- a := sm.bc.CurrentBlock.state.GetAccount(addr)
+ a := sm.procState.GetAccount(addr)
account = &AccountState{Nonce: a.Nonce, Account: a}
}
@@ -128,9 +128,9 @@ func (sm *StateManager) ApplyTransactions(block *Block, txs []*Transaction) {
// The prepare function, prepares the state manager for the next
// "ProcessBlock" action.
-func (sm *StateManager) Prepare(processer *State, comparative *State) {
+func (sm *StateManager) Prepare(processor *State, comparative *State) {
sm.compState = comparative
- sm.procState = processer
+ sm.procState = processor
}
// Default prepare function