aboutsummaryrefslogtreecommitdiffstats
path: root/utils/cmd.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-15 07:07:40 +0800
committerobscuren <geffobscura@gmail.com>2014-08-15 07:07:40 +0800
commitc362172567e7bd499ea0d0bcf84c54a9b7788614 (patch)
treee1b15a860e6c2a286d441ef1e69bdfd0f0b64efb /utils/cmd.go
parentaadc5be3ff9e3818e41d83910b9730e5f1af042e (diff)
downloaddexon-c362172567e7bd499ea0d0bcf84c54a9b7788614.tar
dexon-c362172567e7bd499ea0d0bcf84c54a9b7788614.tar.gz
dexon-c362172567e7bd499ea0d0bcf84c54a9b7788614.tar.bz2
dexon-c362172567e7bd499ea0d0bcf84c54a9b7788614.tar.lz
dexon-c362172567e7bd499ea0d0bcf84c54a9b7788614.tar.xz
dexon-c362172567e7bd499ea0d0bcf84c54a9b7788614.tar.zst
dexon-c362172567e7bd499ea0d0bcf84c54a9b7788614.zip
Got rid of warnings and updated storage getters
Diffstat (limited to 'utils/cmd.go')
-rw-r--r--utils/cmd.go21
1 files changed, 11 insertions, 10 deletions
diff --git a/utils/cmd.go b/utils/cmd.go
index 0eeb1049e..d34348ad8 100644
--- a/utils/cmd.go
+++ b/utils/cmd.go
@@ -1,8 +1,17 @@
package utils
import (
- "bitbucket.org/kardianos/osext"
"fmt"
+ "io"
+ "log"
+ "os"
+ "os/signal"
+ "path"
+ "path/filepath"
+ "runtime"
+ "time"
+
+ "bitbucket.org/kardianos/osext"
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go/ethcrypto"
"github.com/ethereum/eth-go/ethdb"
@@ -12,14 +21,6 @@ import (
"github.com/ethereum/eth-go/ethrpc"
"github.com/ethereum/eth-go/ethutil"
"github.com/ethereum/eth-go/ethwire"
- "io"
- "log"
- "os"
- "os/signal"
- "path"
- "path/filepath"
- "runtime"
- "time"
)
var logger = ethlog.NewLogger("CLI")
@@ -227,7 +228,7 @@ func KeyTasks(keyManager *ethcrypto.KeyManager, KeyRing string, GenAddr bool, Se
func StartRpc(ethereum *eth.Ethereum, RpcPort int) {
var err error
- ethereum.RpcServer, err = ethrpc.NewJsonRpcServer(ethpub.NewPEthereum(ethereum), RpcPort)
+ ethereum.RpcServer, err = ethrpc.NewJsonRpcServer(ethpub.New(ethereum), RpcPort)
if err != nil {
logger.Errorf("Could not start RPC interface (port %v): %v", RpcPort, err)
} else {