Fix command line flag for graphene

This commit is contained in:
Sunny Katkuri 2018-09-20 17:41:31 +00:00
parent f641fce66b
commit e8dc0f634a
3 changed files with 5 additions and 2 deletions

View file

@ -1252,7 +1252,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) {
}
if ctx.GlobalIsSet(UseGrapheneFlag.Name) {
cfg.UseGraphene = ctx.GlobalBool(NoGossipFlag.Name)
cfg.UseGraphene = ctx.GlobalBool(UseGrapheneFlag.Name)
}
}

View file

@ -126,6 +126,9 @@ type Config struct {
EWASMInterpreter string
// Type of the EVM interpreter ("" for default)
EVMInterpreter string
// Enable graphene protocol
UseGraphene bool
}
type configMarshaling struct {

View file

@ -123,7 +123,7 @@ type ProtocolManager struct {
// NewProtocolManager returns a new Ethereum sub protocol manager. The Ethereum sub protocol manages peers capable
// with the Ethereum network.
func NewProtocolManager(config *params.ChainConfig, mode downloader.SyncMode, networkID uint64, mux *event.TypeMux, txpool txPool, engine consensus.Engine, blockchain *core.BlockChain, chaindb ethdb.Database, bool useGraphene) (*ProtocolManager, error) {
func NewProtocolManager(config *params.ChainConfig, mode downloader.SyncMode, networkID uint64, mux *event.TypeMux, txpool txPool, engine consensus.Engine, blockchain *core.BlockChain, chaindb ethdb.Database, useGraphene bool) (*ProtocolManager, error) {
// Create the protocol manager with the base fields
manager := &ProtocolManager{
networkID: networkID,