[DEV-34] Updated peer test to compile and run when there are multiple prevBlockHashes

This commit is contained in:
Mike Zak 2018-06-26 16:00:45 +03:00
parent 4b5e99e486
commit dbcc15c552

View File

@ -502,7 +502,7 @@ func TestPeerListeners(t *testing.T) {
{
"OnBlock",
wire.NewMsgBlock(wire.NewBlockHeader(1,
&daghash.Hash{}, &daghash.Hash{}, 1, 1)),
[]daghash.Hash{}, &daghash.Hash{}, 1, 1)),
},
{
"OnInv",
@ -568,7 +568,7 @@ func TestPeerListeners(t *testing.T) {
{
"OnMerkleBlock",
wire.NewMsgMerkleBlock(wire.NewBlockHeader(1,
&daghash.Hash{}, &daghash.Hash{}, 1, 1)),
[]daghash.Hash{}, &daghash.Hash{}, 1, 1)),
},
// only one version message is allowed
// only one verack message is allowed