2018-02-01 09:56:33 +00:00
|
|
|
package payload
|
|
|
|
|
2018-02-01 18:54:23 +00:00
|
|
|
import "github.com/CityOfZion/neo-go/pkg/util"
|
2018-02-01 09:56:33 +00:00
|
|
|
|
|
|
|
// 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
|
|
|
|
}
|