Skip to content

Commit

Permalink
Forbid no-op zero delegation steemit#1126
Browse files Browse the repository at this point in the history
  • Loading branch information
theoreticalbts committed Jun 2, 2017
1 parent f4c4054 commit aeb2703
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/chain/steem_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2261,6 +2261,10 @@ void delegate_vesting_shares_evaluator::do_apply( const delegate_vesting_shares_
FC_ASSERT( delta >= min_update, "Steem Power decrease is not enough of a difference. min_update: ${min}", ("min", min_update) );
FC_ASSERT( op.vesting_shares >= min_delegation, "Delegation must be removed or leave minimum delegation amount of ${v}", ("v", min_delegation) );
}
else
{
FC_ASSERT( delegation->vesting_shares.amount > 0, "Delegation would set vesting_shares to zero, but it is already zero");
}
}
else // TODO: Check and remove after HF19
{
Expand Down

0 comments on commit aeb2703

Please sign in to comment.