Add missing fee for 2-character account names

This commit is contained in:
Nathan Hourt 2015-06-10 15:21:54 -04:00
parent 876e9a125d
commit 4080a2e7ee
2 changed files with 4 additions and 0 deletions

View file

@ -357,6 +357,7 @@ namespace graphene { namespace chain {
uint32_t account_len5_fee;
uint32_t account_len4_fee;
uint32_t account_len3_fee;
uint32_t account_len2_fee;
uint32_t account_premium_fee; ///< accounts with premium names; i.e. @ref is_cheap_name returns false
uint32_t account_whitelist_fee; ///< the fee to whitelist an account
uint32_t delegate_create_fee; ///< fixed fee for registering as a delegate; used to discourage frivioulous delegates
@ -538,6 +539,7 @@ FC_REFLECT( graphene::chain::fee_schedule_type,
(account_len5_fee)
(account_len4_fee)
(account_len3_fee)
(account_len2_fee)
(account_premium_fee)
(account_whitelist_fee)
(delegate_create_fee)

View file

@ -127,6 +127,8 @@ share_type account_create_operation::calculate_fee( const fee_schedule_type& sch
core_fee_required = schedule.account_len4_fee;
else if( s == 3 )
core_fee_required = schedule.account_len3_fee;
else if( s == 2 )
core_fee_required = schedule.account_len2_fee;
return core_fee_required;
}