aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/ethereum
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-18 21:04:19 +0800
committerFelix Lange <fjl@twurst.com>2015-03-18 21:04:44 +0800
commit064279c0ec2f048cbdd965c095ea332bb8666f94 (patch)
tree4cd33a264eb0825080eef7aa718580b5092ca887 /cmd/ethereum
parentd15f90645d5b2e90c441140972d9fe6ecd753643 (diff)
downloadgo-tangerine-064279c0ec2f048cbdd965c095ea332bb8666f94.tar.gz
go-tangerine-064279c0ec2f048cbdd965c095ea332bb8666f94.tar.zst
go-tangerine-064279c0ec2f048cbdd965c095ea332bb8666f94.zip
cmd/ethereum, cmd/utils: partial fix for chain import
Diffstat (limited to 'cmd/ethereum')
-rw-r--r--cmd/ethereum/admin.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/ethereum/admin.go b/cmd/ethereum/admin.go
index 967af2553..41aaf46d8 100644
--- a/cmd/ethereum/admin.go
+++ b/cmd/ethereum/admin.go
@@ -221,13 +221,10 @@ func (js *jsre) exportChain(call otto.FunctionCall) otto.Value {
fmt.Println(err)
return otto.FalseValue()
}
-
- data := js.ethereum.ChainManager().Export()
- if err := common.WriteFile(fn, data); err != nil {
+ if err := utils.ExportChain(js.ethereum.ChainManager(), fn); err != nil {
fmt.Println(err)
return otto.FalseValue()
}
-
return otto.TrueValue()
}