lib/protocol: Include WeakHash in BlocksHash (#6799)

This commit is contained in:
Simon Frei
2020-06-29 09:33:07 +02:00
committed by GitHub
parent 9d4a700829
commit ebbe1abe28
2 changed files with 8 additions and 4 deletions
+2 -1
View File
@@ -887,7 +887,8 @@ func TestBlocksEqual(t *testing.T) {
{blocksOne, nil, blocksOne, nil, true}, // blocks compared
{blocksOne, nil, blocksTwo, nil, false}, // blocks compared
{blocksOne, hashOne, blocksTwo, hashOne, true}, // hashes equal, blocks not looked at
{blocksOne, hashOne, blocksOne, hashTwo, false}, // hashes different, blocks not looked at
{blocksOne, hashOne, blocksOne, hashTwo, true}, // hashes different, blocks compared
{blocksOne, hashOne, blocksTwo, hashTwo, false}, // hashes different, blocks compared
{blocksOne, hashOne, nil, nil, false}, // blocks is different from no blocks
{blocksOne, nil, nil, nil, false}, // blocks is different from no blocks
{nil, hashOne, nil, nil, true}, // nil blocks are equal, even of one side has a hash