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
PaymentOpFrame cannot handle PATH_PAYMENT_MALFORMED result #1949
Comments
I see, I just looked and |
I see two places in stellar-core/src/transactions/PathPaymentOpFrame.cpp Lines 78 to 86 in 4833465
This return code was already there as of (at least) v9.0.0. But I think this was intended to be an unexpected error condition at that time, along the lines of how we use stellar-core/src/transactions/PathPaymentOpFrame.cpp Lines 202 to 210 in 4833465
Correct me if I'm wrong, but I don't think this should be reachable in the current protocol version. |
cool, yes both make sense (return line full when dealing with liabilities) and for the second one, I don't think there is anything to do as it's probably unreachable code now. |
PathPaymentOpFrame::doApply
can produce the operation resultPATH_PAYMENT_MALFORMED
butPaymentOpFrame::doApply
does not handle this result. This leads totxINTERNAL_ERROR
, instead of producing the corresponding operation resultPAYMENT_MALFORMED
. Two options to fix this:PATH_PAYMENT_MALFORMED
during apply, returning more specific results instead thatPaymentOpFrame
can handlePATH_PAYMENT_MALFORMED
inPaymentOpFrame
The text was updated successfully, but these errors were encountered: