Skip to content

Commit

Permalink
Merge pull request #441 from pmconrad/testnet_release
Browse files Browse the repository at this point in the history
Prevent bid_collateral from executing through proposal before hardfork
  • Loading branch information
pmconrad authored Oct 25, 2017
2 parents 6d6f5dd + a605c5f commit 504e63e
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 504e63e

Please sign in to comment.