diff --git a/api/proto/node/node.go b/api/proto/node/node.go index ee46f888c..a1f752715 100644 --- a/api/proto/node/node.go +++ b/api/proto/node/node.go @@ -86,7 +86,7 @@ type Info struct { } func (info Info) String() string { - return fmt.Sprintf("Info:%v/%v=>%v/%v", info.IP, info.Port, info.ValidatorID, info.PeerID) + return fmt.Sprintf("Info:%v/%v=>%v/%v", info.IP, info.Port, info.ValidatorID, info.PeerID.Pretty()) } // BlockMessageType represents the type of messages used for Node/Block diff --git a/api/proto/node/node_test.go b/api/proto/node/node_test.go index ae3680bef..62042e71c 100644 --- a/api/proto/node/node_test.go +++ b/api/proto/node/node_test.go @@ -10,7 +10,6 @@ import ( "github.com/harmony-one/harmony/core/state" "github.com/harmony-one/harmony/core/types" - // "fmt" "math/big" "reflect" "testing" @@ -131,7 +130,7 @@ func TestInfoToString(t *testing.T) { ValidatorID: 1, PeerID: "peer", } - if strings.Compare(info.String(), "Info:127.0.0.1/81=>1/") != 0 { - t.Error("Info string mismatch") + if strings.Compare(info.String(), "Info:127.0.0.1/81=>1/3sdfvR") != 0 { + t.Errorf("Info string mismatch: %v", info.String()) } } diff --git a/go.mod b/go.mod index 314417eb7..1f877ce37 100644 --- a/go.mod +++ b/go.mod @@ -22,7 +22,7 @@ require ( github.com/gorilla/mux v1.7.0 github.com/gorilla/websocket v1.4.0 // indirect github.com/gxed/hashland v0.0.1 - github.com/harmony-one/bls v0.0.0-20190220064443-3c0ae384f04f + github.com/harmony-one/bls v0.0.0-20190309234102-1bd75ac96c09 github.com/hashicorp/golang-lru v0.5.0 github.com/ipfs/go-cid v0.9.0 // indirect github.com/ipfs/go-datastore v3.2.0+incompatible