aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/ethereum
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-18 21:16:07 +0800
committerobscuren <geffobscura@gmail.com>2015-03-18 21:16:07 +0800
commit4d0ae8b0cb32e9de63092bc36022ea4af76cad8b (patch)
tree240356371b44765d64c9ceed9be84064258e8c1d /cmd/ethereum
parent48dd601de0ffea4e1bf57a8923f2a6126553b575 (diff)
parent064279c0ec2f048cbdd965c095ea332bb8666f94 (diff)
downloadgo-tangerine-4d0ae8b0cb32e9de63092bc36022ea4af76cad8b.tar.gz
go-tangerine-4d0ae8b0cb32e9de63092bc36022ea4af76cad8b.tar.zst
go-tangerine-4d0ae8b0cb32e9de63092bc36022ea4af76cad8b.zip
Merge branch 'conversion' of github.com-obscure:ethereum/go-ethereum into conversion
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()
}