Author

Topic: Need a help: -- warning: large integer implicitly truncated to unsigned type (Read 122 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
Assuming the warning message is right, the block.nNonce number is larger than the biggest number possible in unsigned integer which is about 4.2 billion while your number is bigger than it.

While i never experiment with Bitcoin Core, i think simply modify the block.nNonce number to less than 4.2 billion should fix the problem. But if i'm right, you need to rework the Proof-of-Work since nonce change also change the block hash. CMIIW.

Its too hard Smiley

Can I change variables type instead?   

Surely reduce the number easier, but if you want to change the variable type, i think you should get the source code, modify the variable and compile it yourself.
member
Activity: 252
Merit: 11
Lord Shiva
Assuming the warning message is right, the block.nNonce number is larger than the biggest number possible in unsigned integer which is about 4.2 billion while your number is bigger than it.

While i never experiment with Bitcoin Core, i think simply modify the block.nNonce number to less than 4.2 billion should fix the problem. But if i'm right, you need to rework the Proof-of-Work since nonce change also change the block hash. CMIIW.

Its too hard Smiley

Can I change variables type instead?   
member
Activity: 252
Merit: 11
Lord Shiva
Hello.

I change a genesis block in Bitcoin Core 0.8.

All is working. But when I compile it, have warning:

Code:
src/main.cpp:2755:24: warning: large integer implicitly truncated to unsigned type [-Woverflow]
         block.nNonce   = 24923453120;

Is block.nNonce too big for it?

What can I do with it?

Thank you!
Jump to: