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

Fix rust dependencies on Windows #3565

Merged
merged 4 commits into from
Oct 6, 2022

Conversation

MonsieurNicolas
Copy link
Contributor

No description provided.

@MonsieurNicolas MonsieurNicolas changed the title Fix rust deps windows Fix rust dependencies on Windows Oct 5, 2022
Copy link
Contributor

@dmkozh dmkozh left a comment

Choose a reason for hiding this comment

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

LGTM, modulo a minor nitpick

@@ -770,8 +770,8 @@ LoadGenerator::createTransactionFramePtr(
// some_int`. This also would exercise more code paths/logic during the
// transaction comparisons.
auto fractionalFeeDistr =
uniform_int_distribution<uint32_t>(0, ops.size() - 1);
fee = ops.size() * feeRateDistr(gRandomEngine) +
uniform_int_distribution<uint32_t>(0, uint32_t(ops.size()) - 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Use static_cast? Using a constructor for cast is a bit confusing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

agree. fixed

@@ -48,26 +44,6 @@ encode_b64(T const& v)
return res;
}

#ifdef ENABLE_NEXT_PROTOCOL_VERSION_UNSAFE_FOR_PRODUCTION
Copy link
Contributor

Choose a reason for hiding this comment

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

Just to make sure I understand this correctly: this was just a proof-of-concept change for the bridge and it's not really needed to be here, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

correct this was added early on with no use cases. We can add something like that (in a different header) if we need it in the future

Copy link
Contributor

Choose a reason for hiding this comment

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

If you want to remove the base64 stuff you might as well cut it out of the rust side too, but fine by me.

@MonsieurNicolas
Copy link
Contributor Author

r+ 0aaef62

@latobarita latobarita merged commit 5a331e1 into stellar:master Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants