devwarrior777 / lyra2z-py

Python C module for Lyra2z proof of work compatible with Zcoin
3 stars 8 forks source link

expected output of test.py #1

Open tofutim opened 6 years ago

tofutim commented 6 years ago

Hi, what is the expected output of test.py? My hash looks odd, many zeros.

Tims-Air:lyra2z-py tim$ python test.py
507de2070100000000000000000000400300db07010000000000000000000000

Maybe it is a mac issue?

in fact, it changes every time! Now that is very odd.

Tims-Air:lyra2z-py tim$ python test.py
502d4b0b0100000000000000000000e00200f10a0100000030c60c0b01000200
Tims-Air:lyra2z-py tim$ python test.py
500d130b0100000088303f24fb0700d00200bd0a0100000000dfba0a01000200
Tims-Air:lyra2z-py tim$ python test.py
504d57030100000000000000000000b00300020301000000001fff0201000000
Tims-Air:lyra2z-py tim$ python test.py
502d100c010000008a3deda6ff0700c00400bb0b0100000000ffb70b01000000
Tims-Air:lyra2z-py tim$ python test.py
506d2002010000005444e498fa0700d00300408ea97f00000861190201002700
Tims-Air:lyra2z-py tim$ python test.py
506d8d010100000000000000000000600200380101000000003f350101000200
Tims-Air:lyra2z-py tim$ python test.py
50bdc40101000000ef010502fb07000003006f0101000000008f6c0101000000
Tims-Air:lyra2z-py tim$ python test.py
500ddd0b0100000000000000000000f00300870b0100000000df840b01000000
Tims-Air:lyra2z-py tim$ python test.py
50bd880401000000a42d6679f90700d002000000000000000000000000000200

In Linux it also seems changing!

gitian@vps177685:~/lyra2z-py$ python test.py
0000000000000000700e75020000000000000000000000000000000000000000
gitian@vps177685:~/lyra2z-py$ python test.py
0000000000000000703e60010000000000000000000000000000000000000000
gitian@vps177685:~/lyra2z-py$ 
gitian@vps177685:~/lyra2z-py$ python test.py
0000000000000000703e0a020000000000000000000000000000000000000000
gitian@vps177685:~/lyra2z-py$ python test.py
000000000000000070ceaa010000000000000000000000000000000000000000
gitian@vps177685:~/lyra2z-py$ python test.py
000000000000000070bee9010000000000000000000000000000000000000000
gitian@vps177685:~/lyra2z-py$ python test.py
0000000000000000701e87020000000000000000000000000000000000000000
gitian@vps177685:~/lyra2z-py$ python test.py
0000000000000000705ee2010000000000000000000000000000000000000000
gitian@vps177685:~/lyra2z-py$ python test.py
000000000000000070be6e020000000000000000000000000000000000000000
tofutim commented 6 years ago

I ended up swapping in an updated Lyra2 implementation and was able to get something that matched what I was aiming for. Not sure how that affects your coin code though.

Tims-Air:lyra2z-py tim$ python test.py
affda9a0a62e3feeaaae6fb122d41d1fd482769cdeeb1cc2afe074996db88175
Tims-Air:lyra2z-py tim$ python test.py
affda9a0a62e3feeaaae6fb122d41d1fd482769cdeeb1cc2afe074996db88175
Tims-Air:lyra2z-py tim$ python test.py
affda9a0a62e3feeaaae6fb122d41d1fd482769cdeeb1cc2afe074996db88175

Let me know if you would like to see a PR. That strange buffer at the beginning was screwing me up.

ghost commented 5 years ago

@tofutim could you tell me what you did?

Thank you!

ghost commented 5 years ago

I'm getting stable output with this: https://github.com/LapoLab/lyra2z-py