Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
cfa999f0
Commit
cfa999f0
authored
Apr 29, 2016
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2504 from Arachnid/public-vmconfig
Provide a public accessor for ChainConfig
parents
9672a62a
c74a5757
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
blockchain.go
core/blockchain.go
+3
-0
No files found.
core/blockchain.go
View file @
cfa999f0
...
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment