core: Add getter for VM config to BlockChain

This commit is contained in:
Paweł Bylica 2018-10-22 00:19:59 +02:00
parent dae82f0985
commit 3c257f377a
No known key found for this signature in database
GPG key ID: 7A0C037434FE77EF

View file

@ -210,6 +210,11 @@ func (bc *BlockChain) getProcInterrupt() bool {
return atomic.LoadInt32(&bc.procInterrupt) == 1
}
// GetVMConfig returns the block chain VM config.
func (bc *BlockChain) GetVMConfig() *vm.Config {
return &bc.vmConfig
}
// loadLastState loads the last known chain state from the database. This method
// assumes that the chain manager mutex is held.
func (bc *BlockChain) loadLastState() error {