mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
_pkg.dev: drop useless mgetdata from payload
This commit is contained in:
parent
e72a8bbecd
commit
a5566841fe
2 changed files with 0 additions and 37 deletions
|
@ -1,18 +0,0 @@
|
|||
package payload
|
||||
|
||||
import (
|
||||
"github.com/CityOfZion/neo-go/pkg/wire/command"
|
||||
)
|
||||
|
||||
// GetDataMessage represents a GetData message on the neo-network
|
||||
type GetDataMessage struct {
|
||||
*InvMessage
|
||||
}
|
||||
|
||||
//NewGetDataMessage returns a GetDataMessage object
|
||||
func NewGetDataMessage(typ InvType) (*GetDataMessage, error) {
|
||||
getData, err := newAbstractInv(typ, command.GetData)
|
||||
return &GetDataMessage{
|
||||
getData,
|
||||
}, err
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
package payload
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/CityOfZion/neo-go/pkg/wire/command"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestGetDataCommandType(t *testing.T) {
|
||||
getData, err := NewGetDataMessage(InvTypeBlock)
|
||||
|
||||
assert.Equal(t, err, nil)
|
||||
assert.Equal(t, command.GetData, getData.Command())
|
||||
}
|
||||
|
||||
func TestOtherFunctions(t *testing.T) {
|
||||
// Other capabilities are tested in the inherited struct
|
||||
}
|
Loading…
Reference in a new issue