From b0e4cc8a4bd9b7ede1cbeb250b28fb0244ced691 Mon Sep 17 00:00:00 2001 From: VoR0220 <rj@erisindustries.com> Date: Thu, 15 Sep 2016 16:11:12 -0500 Subject: [PATCH] had to clean up the mock area Signed-off-by: VoR0220 <rj@erisindustries.com> --- client/mock/client_mock.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/mock/client_mock.go b/client/mock/client_mock.go index 2cd9d8a1..c8a31bc9 100644 --- a/client/mock/client_mock.go +++ b/client/mock/client_mock.go @@ -19,7 +19,7 @@ package mock import ( "github.com/tendermint/go-crypto" "github.com/tendermint/go-p2p" - + rpc_types "github.com/eris-ltd/eris-db/rpc/tendermint/core/types" acc "github.com/eris-ltd/eris-db/account" @@ -75,11 +75,12 @@ func (mock *MockNodeClient) MockAddAccount(account *acc.Account) { func (mock *MockNodeClient) Status() (*rpc_types.ResultStatus, error) { // make zero account var zero [32]byte - pub := crypto.PubKey(crypto.PubKeyEd25519(zero)) + ed25519 := crypto.PubKeyEd25519(zero) + pub := crypto.PubKey(ed25519) // create a status nodeInfo := &p2p.NodeInfo{ - PubKey: pub, + PubKey: ed25519, Moniker: "Mock", Network: "MockNet", RemoteAddr: "127.0.0.1", @@ -95,5 +96,5 @@ func (mock *MockNodeClient) Status() (*rpc_types.ResultStatus, error) { LatestBlockHash: nil, LatestBlockHeight: 1, LatestBlockTime: 1, - } + }, nil } -- GitLab