aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/main.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-05-27 07:47:10 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-05-27 07:47:10 +0800
commit3590591e674b14fd025aac91952d9408bb841527 (patch)
tree7dccb0359577de4b4daa0470c13e44a68b0859d5 /cmd/geth/main.go
parent612f01400f59b0b4d0db9f9ceaa38f45805ea89e (diff)
parent222249e622cd552b0500051fbbcbfb00a5366da4 (diff)
downloadgo-tangerine-3590591e674b14fd025aac91952d9408bb841527.tar
go-tangerine-3590591e674b14fd025aac91952d9408bb841527.tar.gz
go-tangerine-3590591e674b14fd025aac91952d9408bb841527.tar.bz2
go-tangerine-3590591e674b14fd025aac91952d9408bb841527.tar.lz
go-tangerine-3590591e674b14fd025aac91952d9408bb841527.tar.xz
go-tangerine-3590591e674b14fd025aac91952d9408bb841527.tar.zst
go-tangerine-3590591e674b14fd025aac91952d9408bb841527.zip
Merge pull request #1113 from obscuren/develop
core: block database version update
Diffstat (limited to 'cmd/geth/main.go')
-rw-r--r--cmd/geth/main.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 9d935efbd..742dae10f 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -533,9 +533,9 @@ func importchain(ctx *cli.Context) {
}
// force database flush
- ethereum.BlockDb().Close()
- ethereum.StateDb().Close()
- ethereum.ExtraDb().Close()
+ ethereum.BlockDb().Flush()
+ ethereum.StateDb().Flush()
+ ethereum.ExtraDb().Flush()
fmt.Printf("Import done in %v", time.Since(start))
@@ -630,9 +630,9 @@ func upgradeDb(ctx *cli.Context) {
}
// force database flush
- ethereum.BlockDb().Close()
- ethereum.StateDb().Close()
- ethereum.ExtraDb().Close()
+ ethereum.BlockDb().Flush()
+ ethereum.StateDb().Flush()
+ ethereum.ExtraDb().Flush()
os.Remove(exportFile)