|
|
@ -113,7 +113,7 @@ type BlockChain struct { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// NewBlockChain returns a fully initialised block chain using information
|
|
|
|
// NewBlockChain returns a fully initialised block chain using information
|
|
|
|
// available in the database. It initialiser the default Ethereum Validator and
|
|
|
|
// available in the database. It initialises the default Ethereum Validator and
|
|
|
|
// Processor.
|
|
|
|
// Processor.
|
|
|
|
func NewBlockChain(chainDb ethdb.Database, config *params.ChainConfig, engine consensus.Engine, mux *event.TypeMux, vmConfig vm.Config) (*BlockChain, error) { |
|
|
|
func NewBlockChain(chainDb ethdb.Database, config *params.ChainConfig, engine consensus.Engine, mux *event.TypeMux, vmConfig vm.Config) (*BlockChain, error) { |
|
|
|
bodyCache, _ := lru.New(bodyCacheLimit) |
|
|
|
bodyCache, _ := lru.New(bodyCacheLimit) |
|
|
|