mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-28 14:47:16 +00:00
Merge pull request #2504 from Arachnid/public-vmconfig
Provide a public accessor for ChainConfig
This commit is contained in:
commit
cfa999f006
@ -1213,3 +1213,6 @@ func (self *BlockChain) GetBlockHashesFromHash(hash common.Hash, max uint64) []c
|
|||||||
func (self *BlockChain) GetHeaderByNumber(number uint64) *types.Header {
|
func (self *BlockChain) GetHeaderByNumber(number uint64) *types.Header {
|
||||||
return self.hc.GetHeaderByNumber(number)
|
return self.hc.GetHeaderByNumber(number)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Config retrieves the blockchain's chain configuration.
|
||||||
|
func (self *BlockChain) Config() *ChainConfig { return self.config }
|
||||||
|
Loading…
Reference in New Issue
Block a user