-
Notifications
You must be signed in to change notification settings - Fork 26
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
Promote value arithmetic to i128 #46
Conversation
Hi! I looked through the changes and just wanted to contextualize myself a little bit:
|
Notes can be a minimum of 0 value and maximum of
I don't think it will help to make this an
Should probably do both, in addition. Since it's not mutually exclusive.
Since
Yes, this could be a problem. Since these |
…o u64 (as opposed to i128) assumptions.
…nt due to u64 (as opposed to i128) assumptions." This reverts commit 9320c6b.
@joebebel Thanks for the answers! Understood: the It seems that conceptually we are using In this light, generics could simultaneously achieve these goals in a way that is consistent with your |
This might be good for saving storage costs, although I'm concerned about using
It's possible, but I'm not 100% sure this is the correct place for this - since the API here would have to handle the splitting of one
Yes, I think #52 is the way to do this. |
@joebebel Understood. So I've made the following changes in #52 :
Let me know if anything else remains to be done. Thanks! |
This does all value arithmetic in i128, which allows u64::MAX value amounts in transactions, and also slightly lessens the risk of overflow problems.