aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-03 20:29:52 +0800
committerobscuren <geffobscura@gmail.com>2015-03-03 20:29:52 +0800
commitfa831206c617b398c3b74a1b6589893cd9dde6bd (patch)
treec975ff97f4af816e3c768a57d5a9c538abe4eabb /core
parentffa6b99ab638af7bb6753b663612bad48019c334 (diff)
downloadgo-tangerine-fa831206c617b398c3b74a1b6589893cd9dde6bd.tar.gz
go-tangerine-fa831206c617b398c3b74a1b6589893cd9dde6bd.tar.zst
go-tangerine-fa831206c617b398c3b74a1b6589893cd9dde6bd.zip
Updated gast costs
Diffstat (limited to 'core')
-rw-r--r--core/state_transition.go12
1 files changed, 4 insertions, 8 deletions
diff --git a/core/state_transition.go b/core/state_transition.go
index 8626504f9..751806843 100644
--- a/core/state_transition.go
+++ b/core/state_transition.go
@@ -12,11 +12,7 @@ import (
const tryJit = false
-var (
- GasTx = big.NewInt(21000)
- GasTxNonZeroByte = big.NewInt(37)
- GasTxZeroByte = big.NewInt(2)
-)
+var ()
/*
* The State transitioning model
@@ -176,7 +172,7 @@ func (self *StateTransition) TransitionState() (ret []byte, err error) {
//sender.Nonce += 1
// Transaction gas
- if err = self.UseGas(GasTx); err != nil {
+ if err = self.UseGas(vm.GasTx); err != nil {
return
}
@@ -184,9 +180,9 @@ func (self *StateTransition) TransitionState() (ret []byte, err error) {
var dgas int64
for _, byt := range self.data {
if byt != 0 {
- dgas += GasTxNonZeroByte.Int64()
+ dgas += vm.GasTxDataNonzeroByte.Int64()
} else {
- dgas += GasTxZeroByte.Int64()
+ dgas += vm.GasTxDataZeroByte.Int64()
}
}
if err = self.UseGas(big.NewInt(dgas)); err != nil {