aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/errors.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-04-02 11:17:15 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-04-02 12:22:32 +0800
commitc26c8d3a44cdd45994b6d99777d620565bab8f9c (patch)
tree6ab5a74981e9fb9f869f1ef884a375163b898113 /core/vm/errors.go
parent516ec28544e0f9c76e18d82742d3ae58cfb59cc1 (diff)
downloaddexon-c26c8d3a44cdd45994b6d99777d620565bab8f9c.tar
dexon-c26c8d3a44cdd45994b6d99777d620565bab8f9c.tar.gz
dexon-c26c8d3a44cdd45994b6d99777d620565bab8f9c.tar.bz2
dexon-c26c8d3a44cdd45994b6d99777d620565bab8f9c.tar.lz
dexon-c26c8d3a44cdd45994b6d99777d620565bab8f9c.tar.xz
dexon-c26c8d3a44cdd45994b6d99777d620565bab8f9c.tar.zst
dexon-c26c8d3a44cdd45994b6d99777d620565bab8f9c.zip
Read most protocol params from common/params.json
* Add params package with exported variables generated from github.com/ethereum/common/blob/master/params.json * Use params package variables in applicable places * Add check for minimum gas limit in validation of block's gas limit * Remove common/params.json from go-ethereum to avoid outdated version of it
Diffstat (limited to 'core/vm/errors.go')
-rw-r--r--core/vm/errors.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/vm/errors.go b/core/vm/errors.go
index ab011bd62..fc3459de0 100644
--- a/core/vm/errors.go
+++ b/core/vm/errors.go
@@ -2,6 +2,7 @@ package vm
import (
"fmt"
+ "github.com/ethereum/go-ethereum/params"
"math/big"
)
@@ -42,7 +43,7 @@ func IsStack(err error) bool {
type DepthError struct{}
func (self DepthError) Error() string {
- return fmt.Sprintf("Max call depth exceeded (%d)", MaxCallDepth)
+ return fmt.Sprintf("Max call depth exceeded (%d)", params.CallCreateDepth)
}
func IsDepthErr(err error) bool {