From b2e4107c09252f7aecff080ad1e786fb17d4bad7 Mon Sep 17 00:00:00 2001 From: Luke Williams Date: Sat, 23 Feb 2019 01:22:16 +0100 Subject: [PATCH] core/chain_makers: remove import consensus/misc (unused); remove call to MakeChainConfig (legacy function) in GenerateChain() --- core/chain_makers.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/chain_makers.go b/core/chain_makers.go index 05eb496558..b06da3e573 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -22,7 +22,6 @@ import ( "github.com/ubiq/go-ubiq/common" "github.com/ubiq/go-ubiq/consensus/ubqhash" - "github.com/ubiq/go-ubiq/consensus/misc" "github.com/ubiq/go-ubiq/core/state" "github.com/ubiq/go-ubiq/core/types" "github.com/ubiq/go-ubiq/core/vm" @@ -164,10 +163,7 @@ func GenerateChain(config *params.ChainConfig, parent *types.Block, db ethdb.Dat blocks, receipts := make(types.Blocks, n), make([]types.Receipts, n) genblock := func(i int, h *types.Header, statedb *state.StateDB) (*types.Block, types.Receipts) { b := &BlockGen{parent: parent, i: i, chain: blocks, header: h, statedb: statedb, config: config} - // Mutate the state and block according to any hard-fork specs - if config == nil { - config = MakeChainConfig() - } + // Execute any user modifications to the block and finalize it if gen != nil { gen(i, b)