mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-03 23:19:44 +00:00
17 lines
286 B
Go
17 lines
286 B
Go
|
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
|
||
|
}
|