aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_manager.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-24 06:00:50 +0800
committerobscuren <geffobscura@gmail.com>2014-04-24 06:00:50 +0800
commit1c85d8c66b9db23687b0446b4a7e97e3e61fe188 (patch)
tree18b53dd3377e082d15185f1cb2c5d255975e0310 /ethchain/state_manager.go
parent0651af9dfd701ba09e6c734f21eff85f61454476 (diff)
downloadgo-tangerine-1c85d8c66b9db23687b0446b4a7e97e3e61fe188.tar
go-tangerine-1c85d8c66b9db23687b0446b4a7e97e3e61fe188.tar.gz
go-tangerine-1c85d8c66b9db23687b0446b4a7e97e3e61fe188.tar.bz2
go-tangerine-1c85d8c66b9db23687b0446b4a7e97e3e61fe188.tar.lz
go-tangerine-1c85d8c66b9db23687b0446b4a7e97e3e61fe188.tar.xz
go-tangerine-1c85d8c66b9db23687b0446b4a7e97e3e61fe188.tar.zst
go-tangerine-1c85d8c66b9db23687b0446b4a7e97e3e61fe188.zip
Minor improvements and bug fixes
* Fixed VM base bug
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r--ethchain/state_manager.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go
index 668a44c3f..29c3cd16b 100644
--- a/ethchain/state_manager.go
+++ b/ethchain/state_manager.go
@@ -117,6 +117,7 @@ func (sm *StateManager) ApplyTransactions(block *Block, txs []*Transaction) {
contract := sm.MakeContract(tx)
if contract != nil {
sm.EvalScript(contract.Init(), contract, tx, block)
+ fmt.Printf("state root of contract %x\n", contract.State().Root())
} else {
ethutil.Config.Log.Infoln("[STATE] Unable to create contract")
}
@@ -332,4 +333,5 @@ func (sm *StateManager) EvalScript(script []byte, object *StateObject, tx *Trans
// Update the account (refunds)
sm.procState.UpdateStateObject(caller)
+ sm.procState.UpdateStateObject(object)
}