Skip to content
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

always overwrite nonce #63

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

askmike
Copy link
Contributor

@askmike askmike commented Sep 4, 2018

Currently you can pass a nonce in the params object and this lib will use it. If you don't it will mutate the params object by attaching a nonce.

However my retry mechanism passes the params object to this lib multiple times (in case of kraken API errors). And since this lib adds the nonce the first time, the second time this nonce gets reused resulting in "Invalid nonce" since it's using the same nonce it used the first time.

This hot fixes that, always overwriting the nonce property every call.

Better solution would be to not attach the nonce property to the params object passed from userland.

I was using this lib in my project called Gekko, but I will be using my fork until this is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant