Skip to content

Commit cfa999f

Browse files
committed
Merge pull request #2504 from Arachnid/public-vmconfig
Provide a public accessor for ChainConfig
2 parents 9672a62 + c74a575 commit cfa999f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/blockchain.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,3 +1213,6 @@ func (self *BlockChain) GetBlockHashesFromHash(hash common.Hash, max uint64) []c
12131213
func (self *BlockChain) GetHeaderByNumber(number uint64) *types.Header {
12141214
return self.hc.GetHeaderByNumber(number)
12151215
}
1216+
1217+
// Config retrieves the blockchain's chain configuration.
1218+
func (self *BlockChain) Config() *ChainConfig { return self.config }

0 commit comments

Comments
 (0)