[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 03cb6cbd4d
commit 1e6458973b

View File

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