[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 GitHub
parent 1271d2f113
commit 1358911d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -589,7 +589,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)
}