aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-04-29 19:50:10 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-04-29 19:50:10 +0800
commitcfa999f006c30613aa4acce42d8edad056f39c10 (patch)
treee8873466f3cba905f79370a6809e42c8e82c254e
parent9672a62a382380347ff6d5ecc5a205a9836b5ae1 (diff)
parentc74a57572515543cf24b71cd9c275921ddf24075 (diff)
downloadgo-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.go3
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 }