diff --git a/libraries/chain/include/graphene/chain/protocol/chain_parameters.hpp b/libraries/chain/include/graphene/chain/protocol/chain_parameters.hpp index 88d5dccf9..0dbf04bd0 100644 --- a/libraries/chain/include/graphene/chain/protocol/chain_parameters.hpp +++ b/libraries/chain/include/graphene/chain/protocol/chain_parameters.hpp @@ -59,7 +59,7 @@ namespace graphene { namespace chain { optional < uint32_t > son_vesting_amount = SON_VESTING_AMOUNT; optional < uint32_t > son_vesting_period = SON_VESTING_PERIOD; - optional < uint32_t > son_pay_max = SON_PAY_MAX; + optional < uint64_t > son_pay_max = SON_PAY_MAX; optional < uint32_t > son_pay_time = SON_PAY_TIME; optional < uint32_t > son_deregister_time = SON_DEREGISTER_TIME; optional < uint32_t > son_heartbeat_frequency = SON_HEARTBEAT_FREQUENCY; @@ -181,19 +181,19 @@ namespace graphene { namespace chain { inline uint32_t son_vesting_period()const { return extensions.value.son_vesting_period.valid() ? *extensions.value.son_vesting_period : SON_VESTING_PERIOD; /// current period start date } - inline uint16_t son_pay_max()const { + inline uint64_t son_pay_max()const { return extensions.value.son_pay_max.valid() ? *extensions.value.son_pay_max : SON_PAY_MAX; } - inline uint16_t son_pay_time()const { + inline uint32_t son_pay_time()const { return extensions.value.son_pay_time.valid() ? *extensions.value.son_pay_time : SON_PAY_TIME; } - inline uint16_t son_deregister_time()const { + inline uint32_t son_deregister_time()const { return extensions.value.son_deregister_time.valid() ? *extensions.value.son_deregister_time : SON_DEREGISTER_TIME; } - inline uint16_t son_heartbeat_frequency()const { + inline uint32_t son_heartbeat_frequency()const { return extensions.value.son_heartbeat_frequency.valid() ? *extensions.value.son_heartbeat_frequency : SON_HEARTBEAT_FREQUENCY; } - inline uint16_t son_down_time()const { + inline uint32_t son_down_time()const { return extensions.value.son_down_time.valid() ? *extensions.value.son_down_time : SON_DOWN_TIME; } inline uint16_t son_bitcoin_min_tx_confirmations()const { diff --git a/libraries/chain/include/graphene/chain/rbac_hardfork_visitor.hpp b/libraries/chain/include/graphene/chain/rbac_hardfork_visitor.hpp index 6851c4e76..21cf492fe 100644 --- a/libraries/chain/include/graphene/chain/rbac_hardfork_visitor.hpp +++ b/libraries/chain/include/graphene/chain/rbac_hardfork_visitor.hpp @@ -17,6 +17,27 @@ namespace graphene int first_allowed_op = operation::tag::value; switch (op_type) { + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + case operation::tag::value: + FC_ASSERT(block_time >= HARDFORK_SON_TIME, "Custom permissions and roles not allowed on this operation yet!"); + break; case operation::tag::value: case operation::tag::value: case operation::tag::value: @@ -45,4 +66,4 @@ namespace graphene }; } // namespace chain -} // namespace graphene \ No newline at end of file +} // namespace graphene