From 064279c0ec2f048cbdd965c095ea332bb8666f94 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 18 Mar 2015 14:04:19 +0100 Subject: cmd/ethereum, cmd/utils: partial fix for chain import --- cmd/ethereum/admin.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cmd/ethereum') 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() } -- cgit v1.2.3