cmd/ethereum, cmd/utils: partial fix for chain import

This commit is contained in:
Felix Lange
2015-03-18 14:04:19 +01:00
parent d15f90645d
commit 064279c0ec
2 changed files with 4 additions and 8 deletions

View File

@ -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()
}