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

CAP-0024 #2269

Merged
merged 9 commits into from
Sep 18, 2019
Merged

CAP-0024 #2269

merged 9 commits into from
Sep 18, 2019

Conversation

jonjove
Copy link
Contributor

@jonjove jonjove commented Sep 10, 2019

This PR implements CAP-0024, which introduces the new operation PathPaymentStrictSend.

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v5.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

src/transactions/OfferExchange.cpp Outdated Show resolved Hide resolved
src/transactions/PathPaymentOpFrameBase.cpp Outdated Show resolved Hide resolved
src/transactions/PathPaymentStrictSendOpFrame.cpp Outdated Show resolved Hide resolved
destination, xlm, amount, xlm, 1, {}),
ex_PATH_PAYMENT_STRICT_SEND_MALFORMED);
// clang-format off
market.requireBalances(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(reminder for later) in general, we should leverage the invariant from applyCheck that only specific changes can be made on failure

src/transactions/test/PathPaymentStrictSendTests.cpp Outdated Show resolved Hide resolved
src/transactions/test/PathPaymentStrictSendTests.cpp Outdated Show resolved Hide resolved
src/transactions/test/PathPaymentStrictSendTests.cpp Outdated Show resolved Hide resolved
src/transactions/OfferExchange.cpp Outdated Show resolved Hide resolved
@@ -75,6 +75,56 @@ assetPathToString(const std::deque<Asset>& assets)
}
return r;
};

void
checkClaimedOffers(std::vector<ClaimOfferAtom> const& actual,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Copy link
Contributor

@MonsieurNicolas MonsieurNicolas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! I kicked off some tests off that branch, we should squash some commits to tidy things up and we'll merge it.

@jonjove
Copy link
Contributor Author

jonjove commented Sep 18, 2019

@MonsieurNicolas squashed and rebased.

@MonsieurNicolas
Copy link
Contributor

r+ c7283b9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v12.0.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants