diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-04-29 19:50:10 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-04-29 19:50:10 +0800 |
commit | cfa999f006c30613aa4acce42d8edad056f39c10 (patch) | |
tree | e8873466f3cba905f79370a6809e42c8e82c254e | |
parent | 9672a62a382380347ff6d5ecc5a205a9836b5ae1 (diff) | |
parent | c74a57572515543cf24b71cd9c275921ddf24075 (diff) | |
download | go-tangerine-cfa999f006c30613aa4acce42d8edad056f39c10.tar.gz go-tangerine-cfa999f006c30613aa4acce42d8edad056f39c10.tar.zst go-tangerine-cfa999f006c30613aa4acce42d8edad056f39c10.zip |
Merge pull request #2504 from Arachnid/public-vmconfig
Provide a public accessor for ChainConfig
-rw-r--r-- | core/blockchain.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/blockchain.go b/core/blockchain.go index ecf8297cb..4598800d5 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1213,3 +1213,6 @@ func (self *BlockChain) GetBlockHashesFromHash(hash common.Hash, max uint64) []c func (self *BlockChain) GetHeaderByNumber(number uint64) *types.Header { return self.hc.GetHeaderByNumber(number) } + +// Config retrieves the blockchain's chain configuration. +func (self *BlockChain) Config() *ChainConfig { return self.config } |