From 06b167c6693e4f1391ae1f2bd8573d565dc3a703 Mon Sep 17 00:00:00 2001 From: Jae Kwon Date: Thu, 9 Apr 2015 16:39:58 -0700 Subject: [PATCH] small fixes --- Dockerfile | 2 +- rpc/core/accounts.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 615e348a..64b4ff6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,4 +24,4 @@ USER tendermint ENV USER tendermint ENV TMROOT /tendermint_root # docker run -v $(pwd)/tendermint_root:/tendermint_root -CMD [ "./tendermint", "daemon" ] +CMD [ "./build/tendermint", "node" ] diff --git a/rpc/core/accounts.go b/rpc/core/accounts.go index 98b0bdd7..21f334c4 100644 --- a/rpc/core/accounts.go +++ b/rpc/core/accounts.go @@ -44,11 +44,11 @@ func ListAccounts() (*ctypes.ResponseListAccounts, error) { return &ctypes.ResponseListAccounts{blockHeight, accounts}, nil } -func DumpStorage(addr []byte) (*ctypes.ResponseDumpStorage, error) { +func DumpStorage(address []byte) (*ctypes.ResponseDumpStorage, error) { state := consensusState.GetState() - account := state.GetAccount(addr) + account := state.GetAccount(address) if account == nil { - return nil, fmt.Errorf("Unknown address: %X", addr) + return nil, fmt.Errorf("Unknown address: %X", address) } storageRoot := account.StorageRoot storageTree := state.LoadStorage(storageRoot)