Skip to content

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