diff options
Diffstat (limited to 'dex/backend.go')
-rw-r--r-- | dex/backend.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dex/backend.go b/dex/backend.go index 2b4db94c4..d01ab8040 100644 --- a/dex/backend.go +++ b/dex/backend.go @@ -108,11 +108,14 @@ func New(ctx *node.ServiceContext, config *Config) (*Dexon, error) { } dex := &Dexon{ config: config, + chainDb: chainDb, + chainConfig: chainConfig, eventMux: ctx.EventMux, accountManager: ctx.AccountManager, shutdownChan: make(chan bool), networkID: config.NetworkId, bloomRequests: make(chan chan *bloombits.Retrieval), + bloomIndexer: NewBloomIndexer(chainDb, params.BloomBitsBlocks, params.BloomConfirms), network: network, blockdb: db, engine: dexcon.New(¶ms.DexconConfig{}), @@ -143,9 +146,9 @@ func New(ctx *node.ServiceContext, config *Config) (*Dexon, error) { dex.APIBackend = &DexAPIBackend{dex, nil} gpoParams := config.GPO - //if gpoParams.Default == nil { - // gpoParams.Default = config.MinerGasPrice - //} + if gpoParams.Default == nil { + gpoParams.Default = config.DefaultGasPrice + } dex.APIBackend.gpo = gasprice.NewOracle(dex.APIBackend, gpoParams) dex.governance = NewDexconGovernance(dex.APIBackend, dex.chainConfig, config.PrivateKey) |