diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-18 19:41:07 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-18 19:41:07 +0800 |
commit | a96c8c8af969665cc0c357eef81d43b5b7285dfe (patch) | |
tree | 6578941fc1b32f848e65ef763a0ce7315ec6d850 /ethchain/state_manager.go | |
parent | c5729d7ecc564f8eff6df565173a4f5cc6c43cb0 (diff) | |
download | dexon-a96c8c8af969665cc0c357eef81d43b5b7285dfe.tar.gz dexon-a96c8c8af969665cc0c357eef81d43b5b7285dfe.tar.zst dexon-a96c8c8af969665cc0c357eef81d43b5b7285dfe.zip |
Added proper gas handling
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r-- | ethchain/state_manager.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index 5e30d7280..75a78e9f3 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -310,7 +310,7 @@ func (sm *StateManager) EvalScript(script []byte, object *StateObject, tx *Trans }() caller := sm.procState.GetAccount(tx.Sender()) - closure := NewClosure(caller, object, script, sm.procState, tx.Gas, tx.Value) + closure := NewClosure(caller, object, script, sm.procState, tx.Gas, tx.GasPrice, tx.Value) vm := NewVm(sm.procState, RuntimeVars{ Origin: caller.Address(), BlockNumber: block.BlockInfo().Number, @@ -318,6 +318,7 @@ func (sm *StateManager) EvalScript(script []byte, object *StateObject, tx *Trans Coinbase: block.Coinbase, Time: block.Time, Diff: block.Difficulty, + //Price: tx.GasPrice, }) closure.Call(vm, nil, nil) |