network: implement getblocks command

Fixes #577, tested with C# nodes connecting to neo-go privnet.
This commit is contained in:
Roman Khimov 2019-12-25 19:40:18 +03:00
parent 9145855d2c
commit 234d94d27e
2 changed files with 37 additions and 0 deletions

View file

@ -5,6 +5,11 @@ import (
"github.com/CityOfZion/neo-go/pkg/util"
)
// Maximum inventory hashes number is limited to 500.
const (
MaxHashesCount = 500
)
// GetBlocks contains fields and methods to be shared with the
type GetBlocks struct {
// hash of latest block that node requests