-
Notifications
You must be signed in to change notification settings - Fork 44
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
swapResultsList improvements #656
Comments
Yes, wanted to open an issue for this too!
Adding preimage: yes, but why remove r_hash
Yep, I think we can remove this (always taker). |
@kilrau I wrote
note the |
Summary @ImmanuelSegol (also let us know your opinion):
|
Adding the price makes sense, but what's the value in adding the preimage? It wouldn't hurt but I don't know how it would be useful. The role indeed can always be determined based on whether it's a swap result from |
r_hash and preimage should be together. Both included or both excluded.
SubscribeSwap is working only on the maker side?
Here again we confuse the CLI level with with the RPC calls/objects. The
point here is that there is no value to should the `role` as part of
placeorder CLI command since it will always be 'taker`.
IMHO This simple change should be done on the CLI level and not on the
backend level.
…On Mon, Nov 12, 2018 at 1:10 AM Daniel McNally ***@***.***> wrote:
Adding the price makes sense, but what's the value in adding the preimage?
It wouldn't hurt but I don't know how it would be useful.
The role indeed can always be determined based on whether it's a swap
result from placeOrder (always taker) or from subscribeSwaps (always
maker). So we can remove it but it'd be nice to add some comments
explaining that clearly in the proto definition.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#656 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJQ0csXyplOtvtMosUjJg2QoXpM63P2Cks5uuK5ugaJpZM4YWvCS>
.
|
Yes this is how we agreed to approach it (otherwise it would duplicate info that we get in the I'm not confusing anything, I just think the same reasons why we might not want role in the cli output also apply to why we might not want it in the api response. Either way works tho, it's a minor/cosmetic change and I was just sharing my opinion. |
Agree and let's include it for now for testing purposes of outside testers.
That's correct, but it's fine - a minor change and Daniel already agreed on removing it. |
Regarding Let's re-open the discussion about
I suggest we offer the same SYNC + ASYNC way to update about a swap result as we offer for I understand this is not implemented yet, hence would open an issue. Agree/different opinions about my suggestion? @offerm @sangaman |
The rpc subscription methods were discussed a ton (see #123 and #500). If we want to discuss more or about |
Taking the |
price is missing from the swapResultsList.
Consider also to add the preimage or remove the rhash.
Should we have role here? isn't it always zero?
The text was updated successfully, but these errors were encountered: