-
Notifications
You must be signed in to change notification settings - Fork 33
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
All numbers in Addr are ints #1
Comments
Ah good call. And also, classic dogecoin. Wish there was an int128 type...I guess Big Int is the answer? https://golang.org/pkg/math/big/ |
uint64 should be enough, faster and much easier to manipulate. |
👍 I'll probably keep a few things as ints (off the top of my head, unconfirmed_balance because negatives are possible and should never be very big) |
JIC anyone is following this, @matthieu and I talked in meatspace and agreed that this came down to a 32-bit vs 64-bit issue (since Go 1.1 the size of the |
For blockchains with large amounts (cough dogecoin cough) or very large or active wallets, total received, sent or balance can overflow an int. Someday, even NumTx could.
The text was updated successfully, but these errors were encountered: