-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined reference to NeoScrypt when using -DASM #7
Comments
If you define -DASM, you have to assemble neoscrypt_asm.S and link towards neoscrypt_asm.o Scratchpad is a fixed size buffer in memory. Caller allocates and manages it. neoscrypt_4way() doesn't do memory allocation on its own unlike neoscrypt() |
@ghostlander Thanks for answering. Another strange thing: For hashing blocks with nVersion it is not working. Neither scrypt or yescrypt. |
Well, at least the PXC, ORB and HAL wallets use -DASM, so it's working. It's up to a miner or daemon to assemble properly a 80-byte block header hashed by NeoScrypt. Nonce can be any between 0 and 0xFFFFFFFF. There is also extra nonce in coin base. |
@ghostlander Is just 80 byte possible? My blocks require min 81 byte or more because of Auxpow and nAlgo |
AuxPoW is for merged mining. The hashing is done on the parent chain. Aux chains verify PoW by reconstructing the block header as it could appear on the parent chain. |
Thank you. Sometimes I tried to generate Blocks in Regtest and it tooked about 30 minutes until I generated a yescrypt, scrypt or neoscrypt block. Regards, |
Byte order of NeoScrypt is different to Scrypt or SHA-256. It's native little endian. It takes a while to generate a valid hash on CPU even at the lowest difficulty such as 1 / 2^12. |
@ghostlander Thanks for your reply. Thanks for your help.
|
It has to be 80 bytes exactly or padded up to. Mix nAlgo into an existing field such as nVersion. |
Thanks @ghostlander for your help. Again thanks for your help. Any suggestions here? Regards, |
That's an older version. |
@ghostlander Okay where can I find newest Version? |
The newest is on GitHub as usual. |
@ghostlander Oh I used Latest commit 9a52159 on 14 Mar 2016 |
Hello @ghostlander,
While compiling I receive an error: "unresolved refference to neoscrypt", which is just caused when using neoscrypt with -DSHA256 -DOPT -DASM -DMINER_4WAY.
If I delete -DASM -DMINER_4WAY, it works.
Why is neoscrypt not defined for -DASM -DMINER_4WAY?
And what to use at neoscrypt_4way *scratchpad arg?
What is scratchpad? any doc available?
Regards,
Pawel
The text was updated successfully, but these errors were encountered: