Updated libraries
This commit is contained in:
parent
d4e94c615e
commit
c291cdbaa3
|
@ -1 +0,0 @@
|
|||
The folder holds the binary lib of random-x
|
|
@ -3,7 +3,7 @@ package randomx
|
|||
//#cgo CFLAGS: -I./randomx
|
||||
//#cgo LDFLAGS: -L${SRCDIR}/lib -lrandomx
|
||||
//#cgo LDFLAGS: -lstdc++
|
||||
//#cgo LDFLAGS: -static -static-libgcc -static-libstdc++ -lpthread
|
||||
//#cgo LDFLAGS: -static -static-libgcc -static-libstdc++ -lpthread -lm
|
||||
/*
|
||||
#include "randomx.h"
|
||||
#include <time.h>
|
||||
|
|
|
@ -88,7 +88,11 @@ func TestCreateVM(t *testing.T) {
|
|||
log.Println(err)
|
||||
}
|
||||
|
||||
if bytes.Compare(CalculateHash(vm, tp[1]), hashCorrect) != 0 {
|
||||
hash := CalculateHash(vm, tp[1])
|
||||
|
||||
if bytes.Compare(hash, hashCorrect) != 0 {
|
||||
t.Log(hex.EncodeToString(hash))
|
||||
t.Log(hex.EncodeToString(hashCorrect))
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
@ -120,7 +124,8 @@ func TestNewRxVM(t *testing.T) {
|
|||
}
|
||||
|
||||
if bytes.Compare(hash, hashCorrect) != 0 {
|
||||
log.Println(hash)
|
||||
t.Log(hex.EncodeToString(hash))
|
||||
t.Log(hex.EncodeToString(hashCorrect))
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue