diff --git a/_pkg.dev/wire/payload/mgetaddr.go b/_pkg.dev/wire/payload/mgetaddr.go deleted file mode 100644 index 58010adc5..000000000 --- a/_pkg.dev/wire/payload/mgetaddr.go +++ /dev/null @@ -1,30 +0,0 @@ -package payload - -import ( - "io" - - "github.com/CityOfZion/neo-go/pkg/wire/command" -) - -//GetAddrMessage represents a GetAddress message on the neo-network -type GetAddrMessage struct{} - -// NewGetAddrMessage returns a GetAddrMessage object -func NewGetAddrMessage() (*GetAddrMessage, error) { - return &GetAddrMessage{}, nil -} - -// DecodePayload Implements Messager interface -func (v *GetAddrMessage) DecodePayload(r io.Reader) error { - return nil -} - -// EncodePayload Implements messager interface -func (v *GetAddrMessage) EncodePayload(w io.Writer) error { - return nil -} - -// Command Implements messager interface -func (v *GetAddrMessage) Command() command.Type { - return command.GetAddr -} diff --git a/_pkg.dev/wire/payload/mgetaddr_test.go b/_pkg.dev/wire/payload/mgetaddr_test.go deleted file mode 100644 index db6491d5a..000000000 --- a/_pkg.dev/wire/payload/mgetaddr_test.go +++ /dev/null @@ -1,24 +0,0 @@ -package payload - -import ( - "bytes" - "testing" - - "github.com/CityOfZion/neo-go/pkg/wire/util/Checksum" - - "github.com/CityOfZion/neo-go/pkg/wire/command" - "github.com/stretchr/testify/assert" -) - -func TestNewGetAddr(t *testing.T) { - - getAddrMessage, err := NewGetAddrMessage() - assert.Equal(t, nil, err) - - assert.Equal(t, command.GetAddr, getAddrMessage.Command()) - - buf := new(bytes.Buffer) - - assert.Equal(t, int(3806393949), int(checksum.FromBuf(buf))) - assert.Equal(t, int(0), len(buf.Bytes())) -}