neoneo-go/pkg/network/payload/getheaders.go
2018-02-01 10:54:23 -08:00

17 lines
375 B
Go

package payload
import "github.com/CityOfZion/neo-go/pkg/util"
// GetHeaders payload is the same as the "GetBlocks" payload.
type GetHeaders struct {
HashStartStop
}
// NewGetHeaders return a pointer to a GetHeaders object.
func NewGetHeaders(start []util.Uint256, stop util.Uint256) *GetHeaders {
p := &GetHeaders{}
p.HashStart = start
p.HashStop = stop
return p
}