28 #define SECONDS_PER_DAY (60 * 60 * 24) 30 namespace graphene {
namespace protocol {
38 uint32_t fee_per_kb )
const 55 uint64_t kb = ( preimage.size() + 1023 ) / 1024;
58 return fee_params.
fee + product;
69 FC_ASSERT( days == 0 || per_day_fee / days == fee_params.
fee_per_day,
"Fee calculation overflow" );
70 return fee_params.
fee + per_day_fee;
extension< additional_options_type > extensions
size_t pack_size(const T &v)
microseconds days(int64_t d)
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
#define GRAPHENE_IMPLEMENT_EXTERNAL_SERIALIZATION(type)
share_type calculate_fee(const fee_parameters_type &fee_params) const
uint32_t claim_period_seconds
safe< int64_t > share_type
share_type calculate_fee(const fee_parameters_type &fee_params, uint32_t fee_per_kb) const
static uint64_t calculate_data_fee(uint64_t bytes, uint64_t price_per_kbyte)
share_type calculate_fee(const fee_parameters_type &fee_params) const