Commit 5f958a58 authored by obscuren's avatar obscuren

fixed other tests to use hashes as well

parent e27237a0
......@@ -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")
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment