aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-09-15 19:09:47 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-09-15 19:09:47 +0800
commit30860491ba9f1fae2eb9e7dac1c35b679b20fbe9 (patch)
treea390e1e5c7acf90acf4ee6a1a1edd8fb524385a2 /eth
parent0f6f83a709c465b5e140743fc7cfe6d83faf9f20 (diff)
downloadgo-tangerine-30860491ba9f1fae2eb9e7dac1c35b679b20fbe9.tar
go-tangerine-30860491ba9f1fae2eb9e7dac1c35b679b20fbe9.tar.gz
go-tangerine-30860491ba9f1fae2eb9e7dac1c35b679b20fbe9.tar.bz2
go-tangerine-30860491ba9f1fae2eb9e7dac1c35b679b20fbe9.tar.lz
go-tangerine-30860491ba9f1fae2eb9e7dac1c35b679b20fbe9.tar.xz
go-tangerine-30860491ba9f1fae2eb9e7dac1c35b679b20fbe9.tar.zst
go-tangerine-30860491ba9f1fae2eb9e7dac1c35b679b20fbe9.zip
cmd, eth: drop the blockchain version from cli/eth configs
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/eth/backend.go b/eth/backend.go
index e1d123a02..c4a883c9e 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -70,7 +70,6 @@ type Config struct {
Genesis string // Genesis JSON to seed the chain database with
FastSync bool // Enables the state download based fast synchronisation algorithm
- BlockChainVersion int
SkipBcVersionCheck bool // e.g. blockchain export
DatabaseCache int
DatabaseHandles int
@@ -180,10 +179,10 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
if !config.SkipBcVersionCheck {
bcVersion := core.GetBlockChainVersion(chainDb)
- if bcVersion != config.BlockChainVersion && bcVersion != 0 {
- return nil, fmt.Errorf("Blockchain DB version mismatch (%d / %d). Run geth upgradedb.\n", bcVersion, config.BlockChainVersion)
+ if bcVersion != core.BlockChainVersion && bcVersion != 0 {
+ return nil, fmt.Errorf("Blockchain DB version mismatch (%d / %d). Run geth upgradedb.\n", bcVersion, core.BlockChainVersion)
}
- core.WriteBlockChainVersion(chainDb, config.BlockChainVersion)
+ core.WriteBlockChainVersion(chainDb, core.BlockChainVersion)
}
// load the genesis block or write a new one if no genesis