2019-02-25 22:44:14 +00:00
|
|
|
package payload
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/CityOfZion/neo-go/pkg/wire/command"
|
|
|
|
)
|
|
|
|
|
2019-03-17 18:26:35 +00:00
|
|
|
// GetDataMessage represents a GetData message on the neo-network
|
2019-02-25 22:44:14 +00:00
|
|
|
type GetDataMessage struct {
|
|
|
|
*InvMessage
|
|
|
|
}
|
|
|
|
|
2019-03-17 18:26:35 +00:00
|
|
|
//NewGetDataMessage returns a GetDataMessage object
|
2019-02-25 22:44:14 +00:00
|
|
|
func NewGetDataMessage(typ InvType) (*GetDataMessage, error) {
|
|
|
|
getData, err := newAbstractInv(typ, command.GetData)
|
|
|
|
return &GetDataMessage{
|
|
|
|
getData,
|
|
|
|
}, err
|
|
|
|
}
|