forked from TrueCloudLab/neoneo-go
network: add getblocks
message parsing
It has identical structure to the `getheaders`.
This commit is contained in:
parent
b5813efb29
commit
2d94a1e337
1 changed files with 2 additions and 0 deletions
|
@ -201,6 +201,8 @@ func (m *Message) decodePayload(r io.Reader) error {
|
||||||
if err := p.DecodeBinary(buf); err != nil {
|
if err := p.DecodeBinary(buf); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
case CMDGetBlocks:
|
||||||
|
fallthrough
|
||||||
case CMDGetHeaders:
|
case CMDGetHeaders:
|
||||||
p = &payload.GetBlocks{}
|
p = &payload.GetBlocks{}
|
||||||
if err := p.DecodeBinary(buf); err != nil {
|
if err := p.DecodeBinary(buf); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue