[NOD-1064] Don't send GetBlockInvsMsg with lowHash = nil (#769)

This commit is contained in:
Svarog 2020-06-17 14:18:00 +03:00 committed by Mike Zak
parent 956b6f7d95
commit 686c25c72d

View File

@ -607,7 +607,7 @@ func TestOutboundPeer(t *testing.T) {
t.Errorf("PushAddrMsg: unexpected err %v\n", err)
return
}
if err := p2.PushGetBlockInvsMsg(nil, &daghash.Hash{}); err != nil {
if err := p2.PushGetBlockInvsMsg(&daghash.Hash{}, &daghash.Hash{}); err != nil {
t.Errorf("PushGetBlockInvsMsg: unexpected err %v\n", err)
return
}