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