-
Notifications
You must be signed in to change notification settings - Fork 17
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
Use int64 for API timestamp #500
Conversation
Seems we have similar but unrelated problem in ipfsync too https://github.com/vocdoni/vocdoni-node/blob/master/ipfssync/ipfssync.go#L40 @altergui I guess that should be treated separately |
dfc5f4f
to
4205624
Compare
right, but in ipfssync, AFAIU, there's no api involved, the messages are only passed between ipfssync instances. so maybe it's a non-issue? |
If you plan to make it obsolete before 2037 no problem ;) |
LGTM @marcvelmer @brickpop @emmdim I think this also affects other repos can we sync on this ? |
I have made a PR for dvote-js too vocdoni/dvote-js#99 |
@G10h4ck Why are you using the json |
Are you getting that error attempting to parse a JSON generated by older version with the new one? |
Jumping in without full context. As @G10h4ck states in the issue, there could be a precission problem if using int64 when interacting with JS libraries, please do not merge this until we are sure we won't have interoperability problems: @mvdan @brickpop @marcvelmer ? In the worst case we can let it unmerged since the RPC API will require a full refactor in some moment. |
I thought we were fine with this small API breaking change, given that we can update the clients too at the same time. If we want the transition to be smoother, the server could accept both forms when decoding by implementing |
Address #345