-
Notifications
You must be signed in to change notification settings - Fork 29
Implement listbanned method and test #225
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
base: master
Are you sure you want to change the base?
Conversation
There are a few problems with this one. Primarily the integration test does not test anything because the vector in Can you fix that up and we'll go from there? Also:
Thanks |
oh my... Let me fix them up. |
a303ca2
to
66875fb
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.
Looking much better man.
12c00a4
to
afba694
Compare
I think something is still wrong here. If I comment out the fields in |
Woaw... Let check what is wrong. |
Thank you for pointing this out. seems the test was only checking if there is at least an element inside of the |
The fact that the list is not empty should imply that at least one |
True, I was surprised with the behaviour too. No problem. Thank you... |
Needs rebase. Can you post when you force push with what changed please. I'm still confused by this PR. |
Before now what I did was to improve the test to check for the address field if it correctly returns the address that is being banned. Let me rebase now... |
25e8f27
to
656ad41
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 now, just a couple of minor suggestions.
The test works now as far as I can tell, but would be improved with the previously suggested change.
Thank you for your review, suggestions have been effected. |
52896c8
to
257d74b
Compare
In v17 |
This seems to be a bigger issue with the tests in general and not just localized to this PR. See issue #241 |
Alright, in the docs, for v17 not much was said about the |
I can confirm that v17 does return all of the fields in |
Sorry mate, needs rebase again. I'll try get this one in next. |
ded3243
to
5469b7c
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.
ACK f76918a
The JSON-RPC method
listbanned
does return a type. We want to test this to catch any changes in behavior in future Core versions.This PR adds a client function that errors if the return value is anything other than the type it returns, along with an integration test that calls this function.
Ref: #116