Updated libraries

This commit is contained in:
DataHoarder 2022-10-25 14:14:55 +02:00
parent d4e94c615e
commit c291cdbaa3
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk
3 changed files with 8 additions and 4 deletions

View file

@ -1 +0,0 @@
The folder holds the binary lib of random-x

View file

@ -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>

View file

@ -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()
}
}