-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add protection tools #5053
Add protection tools #5053
Conversation
Use isShowAllEntry methods instead of equals checks
Add UNCONF_TX_LIMIT_HIT and MAKER_DENIED_API_USER to AvailabilityResult enum Apply handling for api filter features
@chimp1984 If you want to back out that new core api
|
Good. I hope |
Add offerFilter.canTakeOffer to getOffer and getOffers
@ripcurlx Any idea why travis is failing so frequently?
|
@chimp1984 The filter added to Also, this filter is flushing out bugs in some of my offer/trade aptest cases, first one: creating offers for other fiat currencies than the dummy acct's currency, but that should be easy to fix. There may be other problems to be found while using this new filter... |
Ah true. It filters out all offers you cannot take, including your own ones. I assume the getOffer/getOffers methods are primarily used for finding an offer to take. To browse through offers for informational purpose seems not a real use-case, no? We could add a getAllOffers method (without the filter) if that makes sense. It just should be clear that those are not usable for selecting to take an offer. |
I would want to be able to see my own offers for correctness, current price (if not fixed), and get the id if I wanted to edit it (todo). |
Ah ok. We could include a flag showMyOffers or a new methods for that. Whateven you find better suited for your needs... Or any other idea? |
@chimp1984 Does this filter work (not filter out) offers associated with the regtest dummy acct? I'm checking the filter's rejection reasons when I create a USD offer, then No doubt, the filter will flush out apitest case bugs, but this seems strange. Have you tried this on regtest, using the dummy acct to |
I will think a bit. |
The filter is in the app since long. I just added the denyApiUser flag. With the dummy accounts created in devtest mode it worked for me. Best to debug into it to see where it fails. Maybe account aget witness related? |
@chimp1984 I'm working on new I know this is a bottleneck for you. I'll check it in later tonight or tomorrow afternoon. |
After manually merging my I don't know how you want to proceed, @chimp1984, but I would do the following:
|
Refering to PR bisq-network#5053. Test cases need to explicitly use a matching fiat payment account type when calling 'getoffers'.
Ok. I will remove the changes possible. |
…to implement it.
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.
A qualified Tested ACK
I reviewed the code changes, and manually copied my changes from #5056 into a clone of this PR for some basic api getoffer(s)
testing -- but not all of the filtering edge cases.
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.
utACK based on #5053 (review)
Implements protection tools in context of API deployment (bisq-network/projects#46)
Based on #5048. Starts at 4bbc394
Replaced #5051