Skip to content
This repository was archived by the owner on Oct 4, 2019. It is now read-only.

Commit b6aeef4

Browse files
authored
Merge pull request #811 from VIM-Arcange/patch-3
Fix negative vesting withdrawals
2 parents 2e71565 + 274f214 commit b6aeef4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libraries/chain/steem_evaluator.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,10 @@ namespace golos { namespace chain {
911911
database &_db = db();
912912

913913
const auto &account = _db.get_account(o.account);
914-
914+
915+
FC_ASSERT(o.vesting_shares.amount >= 0,
916+
"Cannot withdraw negative GESTS. account: ${account}, vests:${vests}",
917+
("account", o.account)("vests", o.vesting_shares) );
915918
FC_ASSERT(account.vesting_shares.amount >= 0,
916919
"Account does not have sufficient Golos Power for withdraw.");
917920
FC_ASSERT(account.available_vesting_shares() >= o.vesting_shares,

0 commit comments

Comments
 (0)