aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-06 23:58:52 +0800
committerobscuren <geffobscura@gmail.com>2015-03-06 23:58:52 +0800
commited84b58af57809a743e5be6f6ea53c079c50b765 (patch)
treeaf093595e7ae7c4dffd31e50e7dfcb91e2b9fe05 /eth
parent548e1041718ffc0ee0659f1ff99b37cad38190c0 (diff)
downloadgo-tangerine-ed84b58af57809a743e5be6f6ea53c079c50b765.tar
go-tangerine-ed84b58af57809a743e5be6f6ea53c079c50b765.tar.gz
go-tangerine-ed84b58af57809a743e5be6f6ea53c079c50b765.tar.bz2
go-tangerine-ed84b58af57809a743e5be6f6ea53c079c50b765.tar.lz
go-tangerine-ed84b58af57809a743e5be6f6ea53c079c50b765.tar.xz
go-tangerine-ed84b58af57809a743e5be6f6ea53c079c50b765.tar.zst
go-tangerine-ed84b58af57809a743e5be6f6ea53c079c50b765.zip
Debug option for VM & command line flag
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 1c711a775..799937510 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -20,6 +20,7 @@ import (
"github.com/ethereum/go-ethereum/p2p/discover"
"github.com/ethereum/go-ethereum/p2p/nat"
"github.com/ethereum/go-ethereum/rpc"
+ "github.com/ethereum/go-ethereum/vm"
"github.com/ethereum/go-ethereum/whisper"
)
@@ -43,6 +44,7 @@ type Config struct {
LogLevel int
KeyRing string
LogFormat string
+ VmDebug bool
MaxPeers int
Port string
@@ -212,6 +214,8 @@ func New(config *Config) (*Ethereum, error) {
eth.net.ListenAddr = ":" + config.Port
}
+ vm.Debug = config.VmDebug
+
return eth, nil
}