peerplays_migrated/libraries/chain/protocol/custom.cpp

15 lines
335 B
C++
Raw Normal View History

#include <graphene/chain/protocol/custom.hpp>
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 );
}
} }