-
Notifications
You must be signed in to change notification settings - Fork 319
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
Invalid block balance weirdness #60
Comments
Bump. I have found out nothing more, this just seem to "happen" after running for a while...? |
This is due to the weirdness in JavaScript's float processing. If you want a package designed for handling these kind of numbers, try "bignum" packages. |
Good Kitty - Thank you, solved! |
BigInt is a thing now so native JS should work. |
Hey there (yet again),
So I have been getting an invalid block balance when mining an empty block all of a sudden and I can't seem to work out why. Doesn't matter if I restart the blockchain or not. Seems to happen randomly.
This is the exact error:
Invalid block balance: inputs sum '46.04300000000003', outputs sum '46.04300000000004
Obviously the amounts will differ, it's been bugging me for a while now.
Thanks!
Edit:
Here's my config...
https://i.imgur.com/FA0TWEt.png
The text was updated successfully, but these errors were encountered: