aboutsummaryrefslogtreecommitdiffstats
path: root/vm/common.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-10 03:27:57 +0800
committerobscuren <geffobscura@gmail.com>2014-12-10 03:27:57 +0800
commitacf4b5753fd473f048176a12c42e1b8209035b57 (patch)
treeed9b73ea5a69684e40cfdb546cf729cd29f88db5 /vm/common.go
parent76842b0df8b5605682362bd57fbd6eb315bcaf1f (diff)
downloadgo-tangerine-acf4b5753fd473f048176a12c42e1b8209035b57.tar
go-tangerine-acf4b5753fd473f048176a12c42e1b8209035b57.tar.gz
go-tangerine-acf4b5753fd473f048176a12c42e1b8209035b57.tar.bz2
go-tangerine-acf4b5753fd473f048176a12c42e1b8209035b57.tar.lz
go-tangerine-acf4b5753fd473f048176a12c42e1b8209035b57.tar.xz
go-tangerine-acf4b5753fd473f048176a12c42e1b8209035b57.tar.zst
go-tangerine-acf4b5753fd473f048176a12c42e1b8209035b57.zip
Core changes
* Code = '' if gas < len(D) * 5 * Sha3 gas 10 + 10 * len(D), rounding up 32 bytes * Sha256 gas 50 + 50 * len(D), rounding up 32 bytes * Ripmed gas 50 + 50 * len(D), rounding up 32 bytes * Accounts and value transfers no longer reverted
Diffstat (limited to 'vm/common.go')
-rw-r--r--vm/common.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/vm/common.go b/vm/common.go
index 9514ff6d3..5fd512687 100644
--- a/vm/common.go
+++ b/vm/common.go
@@ -27,10 +27,17 @@ var (
GasBalance = big.NewInt(20)
GasCreate = big.NewInt(100)
GasCall = big.NewInt(20)
+ GasCreateByte = big.NewInt(5)
+ GasSha3Byte = big.NewInt(10)
+ GasSha256Byte = big.NewInt(50)
+ GasRipemdByte = big.NewInt(50)
GasMemory = big.NewInt(1)
GasData = big.NewInt(5)
GasTx = big.NewInt(500)
GasLog = big.NewInt(32)
+ GasSha256 = big.NewInt(50)
+ GasRipemd = big.NewInt(50)
+ GasEcrecover = big.NewInt(100)
Pow256 = ethutil.BigPow(2, 256)