-
Notifications
You must be signed in to change notification settings - Fork 94
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
wallet-only mode #915
wallet-only mode #915
Conversation
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.
@shamardy Thanks for the PR!
Could you please check the proposed minor changes? 🙂
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, thanks!
@tonymorony Could you please test the PR using the checklist? #864 (comment)
@artemii235 Tested on
passed
passed 3. Returns error
passed
passed
passed On the side note: outside of "wallet_only" option for coins config, should we default to |
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.
See conversation.
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.
@shamardy Could you please fix the
- best_orders should filter out wallet-only coins orders from the response.
Returns error "error": "rpc:253] best_orders:130] Coin WONLY is wallet only" if there is any wallet-only coins in response instead of filtering.
Other nodes might have different configs and treat the WONLY
as available for trade. This should not cause RPC errors on the node considering WONLY
as wallet-only. It might be even a vector for DoS in such a case.
|
On the same build, I was able to enable coin with Example: (coins file entry - MORTY clone)
UPD: opened issue #919 |
Yes, please, as it's irrelevant to this PR. Please share the config of the coin, the request body, etc. in the issue description. |
@SirSevenG Please retest the latest commit. |
Returns filtered orders json, as intended. Found no new issues. |
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.
@SirSevenG Thanks for testing! |
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.
🔥
fixes #864