-
Notifications
You must be signed in to change notification settings - Fork 976
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-0030 - remove NO_ISSUER results #2389
Conversation
402348b
to
526d2ae
Compare
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.
Looks good now, just a few tiny nitpicks left.
a1.manageBuyOffer(0, makeAsset(getAccount("fake"), "CUR3"), | ||
native, Price{1, 1}, 1), | ||
ex_MANAGE_BUY_OFFER_SELL_NO_ISSUER); | ||
SECTION("no issuer") |
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.
I think you missed this one.
adb3098
to
d66b44a
Compare
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.
Aside from the lambda question in test code that @jonjove has, this looks good.
I have one suggestion to simplify the actual code changes (remove condition on prefetching)
src/transactions/PaymentOpFrame.cpp
Outdated
{ | ||
keys.emplace(accountKey(mPayment.destination)); | ||
|
||
// Prefetch issuer for non-native assets | ||
if (mPayment.asset.type() != ASSET_TYPE_NATIVE) | ||
{ | ||
auto issuer = getIssuer(mPayment.asset); | ||
keys.emplace(accountKey(issuer)); | ||
if (ledgerVersion < 13) |
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.
we should just stop pre-fetching issuers even for protocol 12: this avoids the code bloat related to passing ledgerVersion
through the various layers
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.
Done
71b439f
to
42900bc
Compare
42900bc
to
c0ce78a
Compare
There is one comment that hasn't been addressed: #2389 (comment). Other than that, this is ready to be merged. |
r+ c0ce78a |
Description
Implements https://github.com/stellar/stellar-protocol/blob/master/core/cap-0030.md
Checklist
clang-format
v5.0.0 (viamake format
or the Visual Studio extension)