Skip to content
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

Revert "Fix: isSameIssue() should check counterparty" #841

Closed
wants to merge 1 commit into from

Conversation

m3anid
Copy link

@m3anid m3anid commented Jan 27, 2018

Reverts #836

@intelliot
Copy link
Collaborator

Why do you want to revert this commit?

@FredKSchott
Copy link
Contributor

Just catching up here, was #835 introduced in the move to TypeScript? If #836 fixed one bug and introduced another (this issue?), there might be a missing or added call to renameCounterpartyToIssuer(). Hard to say without more info about what's broken here, but I remember changing issuer to counterparty for a reason.

@intelliot
Copy link
Collaborator

Good point. I'll take a closer look later today.

@intelliot
Copy link
Collaborator

intelliot commented Jan 30, 2018

We may want to move to using the term issuer instead of counterparty for consistency with rippled. Unfortunately, this is a departure from what RippleAPI has done in the past.

For instance, a USD obligation between A and B can equally be thought of as USD/A or USD/B. A having USD/B and B having USD/A is just the same number with an opposite sign. There is a USD balance between A and B and it can be positive or negative. So A and B can both be issuers on the XRP Ledger, as long we don't restrict "issuer" to only refer to someone who owes money to others.

I'm not sure if that completely clarifies things, but it does imply that issuer should be a fine term to use, as long as we expand what it means in our context. @mDuo13 what do you think?

@mDuo13
Copy link
Collaborator

mDuo13 commented Jan 30, 2018

That's about right. I mean, a lot of times we use "issuer" to mean the one who has a negative balance, so in that sense you can only be an "issuer" for a currency if others set nonzero trust limits to you for that currency. But, of course, rippled uses the "issuer" field to refer to either side of that relationship, as you described.

@intelliot
Copy link
Collaborator

We want to eventually move to using "issuer" in most contexts, but not for 1.0.0. Closing.

@intelliot intelliot closed this Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants