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

Warning and Infotext Fixes #1959

Merged
merged 2 commits into from Aug 27, 2019

Conversation

crypto-ape
Copy link
Contributor

Hey Monkeys!

Just purging two compiler warnings and fixing one incorrect test info message.

Ape out!

Copy link
Contributor

@jmjatlanta jmjatlanta left a comment

Choose a reason for hiding this comment

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

Squashes warnings. All looks good. Thanks.

@abitmore abitmore added this to the 4.1.0 - Feature Release milestone Aug 26, 2019
@abitmore abitmore added this to In development in Protocol Upgrade Release (5.0.0) via automation Aug 26, 2019
@@ -117,7 +117,7 @@ asset cdd_vesting_policy::get_allowed_withdraw(const vesting_policy_context& ctx
return asset(0, ctx.balance.asset_id);
fc::uint128_t cs_earned = compute_coin_seconds_earned(ctx);
fc::uint128_t withdraw_available = cs_earned / std::max(vesting_seconds, 1u);
assert(withdraw_available <= ctx.balance.amount.value);
assert(withdraw_available <= static_cast<fc::uint128_t>(ctx.balance.amount.value));
Copy link
Member

Choose a reason for hiding this comment

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

This assert only works for debug build. I guess we want to remove it or change it to FC_ASSERT, but it belongs to a new PR (see #511).

@pmconrad pmconrad merged commit 3e372ed into bitshares:develop Aug 27, 2019
Protocol Upgrade Release (5.0.0) automation moved this from In development to Done Aug 27, 2019
@pmconrad pmconrad added this to In development in Protocol Upgrade Release (4.0.0) via automation Oct 15, 2019
@pmconrad pmconrad moved this from In development to Done in Protocol Upgrade Release (4.0.0) Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

4 participants