mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-05 03:06:16 +00:00
network: implement getblocks command
Fixes #577, tested with C# nodes connecting to neo-go privnet.
This commit is contained in:
parent
9145855d2c
commit
234d94d27e
2 changed files with 37 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue