aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-12-11 08:33:45 +0800
committerFelix Lange <fjl@twurst.com>2015-12-18 19:09:10 +0800
commite6fb69296e647ff305e5d9df059e5aa956303538 (patch)
tree4af2d5237abf01ebe7ab35825266775aa7f76400 /cmd/geth
parent1b89bd5d269d2d85a7c72067e18212135d8757f9 (diff)
downloaddexon-e6fb69296e647ff305e5d9df059e5aa956303538.tar
dexon-e6fb69296e647ff305e5d9df059e5aa956303538.tar.gz
dexon-e6fb69296e647ff305e5d9df059e5aa956303538.tar.bz2
dexon-e6fb69296e647ff305e5d9df059e5aa956303538.tar.lz
dexon-e6fb69296e647ff305e5d9df059e5aa956303538.tar.xz
dexon-e6fb69296e647ff305e5d9df059e5aa956303538.tar.zst
dexon-e6fb69296e647ff305e5d9df059e5aa956303538.zip
common: remove old RLP implementation, Value and ExtPackage
In order to make this happen, kill all remaining trivial uses of common/{rlp,value}.go. The non-trivial ones have been updated earlier.
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/chaincmd.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go
index 80f3777d6..868ee7db1 100644
--- a/cmd/geth/chaincmd.go
+++ b/cmd/geth/chaincmd.go
@@ -137,8 +137,7 @@ func upgradeDB(ctx *cli.Context) {
glog.Infoln("Upgrading blockchain database")
chain, chainDb := utils.MakeChain(ctx)
- v, _ := chainDb.Get([]byte("BlockchainVersion"))
- bcVersion := int(common.NewValue(v).Uint())
+ bcVersion := core.GetBlockChainVersion(chainDb)
if bcVersion == 0 {
bcVersion = core.BlockChainVersion
}
@@ -154,7 +153,7 @@ func upgradeDB(ctx *cli.Context) {
// Import the chain file.
chain, chainDb = utils.MakeChain(ctx)
- chainDb.Put([]byte("BlockchainVersion"), common.NewValue(core.BlockChainVersion).Bytes())
+ core.WriteBlockChainVersion(chainDb, core.BlockChainVersion)
err := utils.ImportChain(chain, exportFile)
chainDb.Close()
if err != nil {