-
Notifications
You must be signed in to change notification settings - Fork 973
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
Conversation
bea20c7
to
f8ed2e3
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.
LGTM, modulo a minor nitpick
src/simulation/LoadGenerator.cpp
Outdated
@@ -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); |
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.
nit: Use static_cast
? Using a constructor for cast is a bit confusing.
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.
agree. fixed
@@ -48,26 +44,6 @@ encode_b64(T const& v) | |||
return res; | |||
} | |||
|
|||
#ifdef ENABLE_NEXT_PROTOCOL_VERSION_UNSAFE_FOR_PRODUCTION |
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.
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?
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.
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
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.
If you want to remove the base64 stuff you might as well cut it out of the rust side too, but fine by me.
f8ed2e3
to
0aaef62
Compare
r+ 0aaef62 |
No description provided.