good morning!!!!

Skip to content
Snippets Groups Projects
Commit 5f958a58 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

fixed other tests to use hashes as well

parent e27237a0
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,6 @@ import (
"fmt"
"os"
"path"
"reflect"
"runtime"
"strconv"
"testing"
......@@ -125,7 +124,7 @@ func TestChainMultipleInsertions(t *testing.T) {
<-done
}
if !reflect.DeepEqual(chains[longest][len(chains[longest])-1], chainMan.CurrentBlock()) {
if !bytes.Equal(chains[longest][len(chains[longest])-1].Hash(), chainMan.CurrentBlock().Hash()) {
t.Error("Invalid canonical chain")
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment