Skip to content
Snippets Groups Projects
Unverified Commit b0e4cc8a authored by VoR0220's avatar VoR0220
Browse files

had to clean up the mock area


Signed-off-by: default avatarVoR0220 <rj@erisindustries.com>
parent 4144a2d5
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment