-
Notifications
You must be signed in to change notification settings - Fork 24
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
Support batched votes #240
Conversation
And verify behavior end-to-end!
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 add a batch vote to one of the end to end ledger tests? thanks!
117e0a3
to
d62fd2c
Compare
d62fd2c
to
6464393
Compare
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.
this looks good, tests are passing.
my only remaining request is that you relocate the surveyor.test.js
that you added and restore the original test-unit
command. (the test you added is an integration test, and there are actual unit tests for bat-utils
) thanks!
They pass when pointed at localhost running the branch
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.
LGTM
@maikelmclauflin - you ask
no. the "..." is used to test the parsing and error handling, there isn't an actual value in the tests. |
Resolves #212
adds
POST /{apiV}/batch/surveyor/voting
with a payload containing an array of 1 or more{ surveyorId: '...', proof: '...' }
elements, each corresponding to something created using a previous calls toGET /v2/surveyor/voting/{surveyorId}