-
Notifications
You must be signed in to change notification settings - Fork 979
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
Cap 0027: first class multiplexed accounts #2498
Cap 0027: first class multiplexed accounts #2498
Conversation
@@ -47,7 +47,7 @@ PathPaymentStrictReceiveOpFrame::doApply(AbstractLedgerTxn& ltx) | |||
return false; | |||
} | |||
innerResult().success().last = SimplePaymentResult( | |||
getDestID(), getDestAsset(), mPathPayment.destAmount); | |||
getDestMuxedAccount(), getDestAsset(), mPathPayment.destAmount); |
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.
This change isn't mentioned in the proposal. Is this change actually desired?
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.
yeah I saw this too. I don't think we can actually do this either as SDKs are probably using the return the RAW result (like exchanges checking if a transaction is for them).
This is not a conversation for the PR but against the CAP, so let's discuss elsewhere.
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.
Oh it was actually mentioned. I missed it as well (last bullet point).
The following fields, which were previously an AccountID or AccountID*, are now a MuxedAccount or MuxedAccount* (respectively):
PaymentOp::destination
PathPaymentStrictReceiveOp::destination
PathPaymentStrictSendOp::destination
Operation::sourceAccount
Operation::destination (for ACCOUNT_MERGE)
Transaction::sourceAccount
SimplePaymentResult::destination
innerResult().success().last = | ||
SimplePaymentResult(getDestID(), getDestAsset(), maxAmountSend); | ||
innerResult().success().last = SimplePaymentResult( | ||
getDestMuxedAccount(), getDestAsset(), maxAmountSend); |
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.
Same comment as for PathPaymentStrictReceipeOpFrame
.
03eb108
to
7253b0b
Compare
7253b0b
to
ef71e8c
Compare
r+ ef71e8c |
Description
This PR implements CAP-0027 : First-class multiplexed accounts
This PR addresses feedback from #2497
Checklist
clang-format
v5.0.0 (viamake format
or the Visual Studio extension)