-
Notifications
You must be signed in to change notification settings - Fork 12
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
Edge cases: payment with multiple outputs in one tx, ambigious txs #52
Comments
I'm not sure I understand. Can you give an example in which the current On Mon, May 5, 2014 at 9:29 AM, dexX7 notifications@github.com wrote:
|
Will post a probably more length thread on the spec soon, since this is a broader topic than I thought in the first place. What I meant here specifically: say I accept an offer and want to pay for it in BTC. The transaction looks like this: Output 1: Exodus While I sent a payment of 8 BTC to the seller, I probably end up with nothing, because the transaction is not recognized, because only transactions with 2 or less (besides Exodus) outputs are considered as payment transaction. |
I think our answer to that is: don't do that :) Keep in mind that we control the UI which generates these messages. Only On Tue, May 6, 2014 at 4:14 PM, dexX7 notifications@github.com wrote:
|
Current logic:
If type is basic:
Source:
mastercoin-tools/msc_parse.py
Line 182 in f5d382f
Payment is parsed here:
mastercoin-tools/msc_utils_parsing.py
Line 108 in f5d382f
I think there may be some edge cases where a transaction is a payment, but with more than two outputs overall. This would currently slip through and be considered as class A type-ish transaction.
On a longer term I think it would be beneficial, if transactions are not parsed in a "this or that" way, but based on parsing priorities. What I mean is something like:
The text was updated successfully, but these errors were encountered: