当前位置: 首页>>代码示例>>C++>>正文


C++ database::has_hardfork方法代码示例

本文整理汇总了C++中database::has_hardfork方法的典型用法代码示例。如果您正苦于以下问题:C++ database::has_hardfork方法的具体用法?C++ database::has_hardfork怎么用?C++ database::has_hardfork使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在database的用法示例。


在下文中一共展示了database::has_hardfork方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1:

 chain_api_properties::chain_api_properties(
     const chain_properties& src,
     const database& db
 ) : account_creation_fee(src.account_creation_fee),
     maximum_block_size(src.maximum_block_size),
     sbd_interest_rate(src.sbd_interest_rate)
 {
     if (db.has_hardfork(STEEMIT_HARDFORK_0_18__673)) {
         create_account_min_golos_fee = src.create_account_min_golos_fee;
         create_account_min_delegation = src.create_account_min_delegation;
         create_account_delegation_time = src.create_account_delegation_time;
         min_delegation = src.min_delegation;
     }
     if (db.has_hardfork(STEEMIT_HARDFORK_0_19)) {
         max_referral_interest_rate = src.max_referral_interest_rate;
         max_referral_term_sec = src.max_referral_term_sec;
         min_referral_break_fee = src.min_referral_break_fee;
         max_referral_break_fee = src.max_referral_break_fee;
         posts_window = src.posts_window;
         posts_per_window = src.posts_per_window;
         comments_window = src.comments_window;
         comments_per_window = src.comments_per_window;
         votes_window = src.votes_window;
         votes_per_window = src.votes_per_window;
         auction_window_size = src.auction_window_size;
         max_delegated_vesting_interest_rate = src.max_delegated_vesting_interest_rate;
         custom_ops_bandwidth_multiplier = src.custom_ops_bandwidth_multiplier;
         min_curation_percent = src.min_curation_percent;
         max_curation_percent = src.max_curation_percent;
         curation_reward_curve = src.curation_reward_curve;
         allow_distribute_auction_reward = src.allow_distribute_auction_reward;
         allow_return_auction_reward_to_fund = src.allow_return_auction_reward_to_fund;
     }
 }
开发者ID:Rsteem,项目名称:steem,代码行数:34,代码来源:chain_api_properties.cpp


注:本文中的database::has_hardfork方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。