Browse Source

small fixes

pull/55/head
Jae Kwon 9 years ago
parent
commit
06b167c669
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      Dockerfile
  2. +3
    -3
      rpc/core/accounts.go

+ 1
- 1
Dockerfile View File

@ -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" ]

+ 3
- 3
rpc/core/accounts.go View File

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


Loading…
Cancel
Save