Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
revflash committed Mar 30, 2016
1 parent 7e3016e commit 0719714
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions libraries/chain/protocol/steem_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ namespace steemit { namespace chain {
{
FC_ASSERT( is_valid_account_name( account ), "Account name invalid" );
FC_ASSERT( vesting_shares.amount > 0, "Must withdraw a nonzero amount" );
FC_ASSERT( is_asset_type( vesting_shares, VESTS_SYMBOL, "Amount must be VESTS ) );
FC_ASSERT( is_asset_type( vesting_shares, VESTS_SYMBOL), "Amount must be VESTS" );
}

void witness_update_operation::validate() const
Expand All @@ -131,14 +131,11 @@ namespace steemit { namespace chain {
FC_ASSERT( fc::is_utf8( url ) );
FC_ASSERT( fee >= asset( 0, STEEM_SYMBOL ) );
props.validate();
// TODO: Add this in the next hard fork
if ( db.is_pruducing() )
FC_ASSERT( url.size() <= 2048 );
}

void account_witness_vote_operation::validate() const
{
FC_ASSERT( is_valid_account_name( account ), "Account );
FC_ASSERT( is_valid_account_name( account ), "Account ${a}", ("a",account) );
FC_ASSERT( is_valid_account_name( witness ) );
}

Expand Down
2 changes: 2 additions & 0 deletions libraries/chain/steem_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ void witness_update_evaluator::do_apply( const witness_update_operation& o )
{
const auto& witness_account = db().get_account( o.owner );

if ( db().is_producing() ) FC_ASSERT( o.url.size() <= 2048 ); /// TODO: Enforce at next Hardfork

const auto& by_witness_name_idx = db().get_index_type< witness_index >().indices().get< by_name >();
auto wit_itr = by_witness_name_idx.find( o.owner );
if( wit_itr != by_witness_name_idx.end() )
Expand Down

0 comments on commit 0719714

Please sign in to comment.