neoneo-go/pkg/wire/payload/mgetdata.go

17 lines
286 B
Go
Raw Normal View History

2019-02-25 22:44:14 +00:00
package payload
import (
"github.com/CityOfZion/neo-go/pkg/wire/command"
)
type GetDataMessage struct {
*InvMessage
}
func NewGetDataMessage(typ InvType) (*GetDataMessage, error) {
getData, err := newAbstractInv(typ, command.GetData)
return &GetDataMessage{
getData,
}, err
}