Debug option for VM & command line flag

This commit is contained in:
obscuren
2015-03-06 16:58:52 +01:00
parent 548e104171
commit ed84b58af5
5 changed files with 21 additions and 6 deletions

View File

@ -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
}