Skip to content

Commit

Permalink
Prevent bid_collateral from executing through proposal before hardfork
Browse files Browse the repository at this point in the history
  • Loading branch information
pmconrad committed Oct 25, 2017
1 parent 8a24d33 commit a605c5f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/chain/include/graphene/chain/asset_evaluator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ namespace graphene { namespace chain {
template<typename T>
void operator()( const T& v )const {}

void operator()( const graphene::chain::bid_collateral_operation& v )const {
FC_ASSERT( false, "Not allowed until hardfork" );
}

void operator()( const graphene::chain::asset_create_operation& v )const {
FC_ASSERT( v.fee.asset_id == asset_id_type(), "Can only pay fee in BTS since block #21040000" );
}
Expand Down

0 comments on commit a605c5f

Please sign in to comment.