#include namespace graphene { namespace chain { void custom_operation::validate()const { FC_ASSERT( fee.amount > 0 ); } share_type custom_operation::calculate_fee(const fee_parameters_type& k)const { return k.fee + calculate_data_fee( fc::raw::pack_size(*this), k.price_per_kbyte ); } } }