Repository navigation
rpc: Validate provided keys for query_options parameter in listunspent - #19169
Merged
maflcko merged 1 commit intoAug 27, 2020
Merged
Conversation
luke-jr
suggested changes
Jun 5, 2020
luke-jr
left a comment
Contributor
There was a problem hiding this comment.
Can you refactor this to use RPCTypeCheckObj?
PastaPastaPasta
force-pushed
the
bitcoin-validate-keys-listunspent
branch
from
June 5, 2020 18:40
604b265 to
79f31d5
Compare
Contributor
Author
|
I like that, makes it simpler, changed, and squashed/force-pushed |
Contributor
Author
|
Tested with Everything worked as expected |
With this change listunspent will throw an error if there is a wrong key in the query_option object. Signed-off-by: pasta <[email protected]>
PastaPastaPasta
force-pushed
the
bitcoin-validate-keys-listunspent
branch
from
June 5, 2020 20:03
79f31d5 to
a99a3c0
Compare
Contributor
Author
|
Resolved test failure. made amounts not have their type checked since that gets checked anyway in |
luke-jr
pushed a commit
to bitcoinknots/bitcoin
that referenced
this pull request
Jun 9, 2020
With this change listunspent will throw an error if there is a wrong key in the query_option object. Signed-off-by: pasta <[email protected]> Github-Pull: bitcoin#19169 Rebased-From: a99a3c0
Contributor
|
ACK |
meshcollider
left a comment
Contributor
There was a problem hiding this comment.
Seems fine to me. utACK a99a3c0
Member
|
@MarcoFalke can you take a look here? |
Member
|
RPCman will do this in the future, but nothing wrong adding something like that in the meantime |
Fabcien
pushed a commit
to Bitcoin-ABC/bitcoin-abc
that referenced
this pull request
Sep 16, 2021
Summary: > With this change listunspent will throw an error if there is a wrong key > in the query_option object. > > Signed-off-by: pasta <[email protected]> Comment by @MarcoFalke: > RPCman will do this in the future, but nothing wrong adding something like that in the meantime This is a backport of [[bitcoin/bitcoin#19169 | core#19169]] Test Plan: `ninja all check-all` Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Differential Revision: https://reviews.bitcoinabc.org/D10129
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
At Dash, one of our developers was working with the
listunspentRPC command, but instead of saying "minimumAmount" he said "minimmumAmount" as such the RPC wasn't working as expected.In dashpay#3507 we implemented a check so that
listunspentreturns an error if an unrecognized option is given. I figured I might as well adapt the code and throw up a PR here.Cheers!