-
Notifications
You must be signed in to change notification settings - Fork 0
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
Ridvan batch reveal cache #56
Conversation
Signed-off-by: rozaydin <ridvan@namebase.io>
Signed-off-by: rozaydin <ridvan@namebase.io>
Signed-off-by: rozaydin <ridvan@namebase.io>
Signed-off-by: rozaydin <ridvan@namebase.io>
lib/wallet/http.js
Outdated
const tx = await req.wallet.sendMTX(mtx, passphrase); | ||
return res.json(200, {tx: tx.getJSON(this.network), | ||
errors: errorMessages}); | ||
const revealCache = req.wallet.sendRevealResults; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you split this function up it's doing so many things so it's a bit hard to review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed ...
Signed-off-by: rozaydin <ridvan@namebase.io>
Signed-off-by: rozaydin <ridvan@namebase.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes, could you address all the github actions complains about JSDoc stuff and trailing whitespaces? I think this is failing the eslint rules.
Additionally, can we remove the need to update namebase-hs-client? We can have two different hsd-proxy endpoints and communicate with them over http like normal, never hitting hs-client.
|
||
const revealCache = req.wallet.sendRevealResults; | ||
|
||
const { cacheMisses: uniqueNames, cacheHits: processedReveals } = util |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice aliasing
Signed-off-by: rozaydin <ridvan@namebase.io>
Signed-off-by: rozaydin <ridvan@namebase.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still reusing some variable names I'll update it
contains batch-reveal wallet code, tested locally, including timeout testing, local tests are failing (9 of them) but it's because our production-namebase have the same tests failing.