mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-01 00:31:21 +00:00
85219b651e
This reverts commit cc4dd3695d
.
12 lines
292 B
Go
12 lines
292 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/ledgerwatch/turbo-geth/core/rawdb"
|
|
"github.com/ledgerwatch/turbo-geth/params"
|
|
)
|
|
|
|
func getChainConfig(db rawdb.DatabaseReader) *params.ChainConfig {
|
|
genesisHash := rawdb.ReadBlockByNumber(db, 0).Hash()
|
|
return rawdb.ReadChainConfig(db, genesisHash)
|
|
}
|