diff --git a/libraries/chain/include/graphene/chain/global_property_object.hpp b/libraries/chain/include/graphene/chain/global_property_object.hpp index 1d985a2df..c34265cbd 100644 --- a/libraries/chain/include/graphene/chain/global_property_object.hpp +++ b/libraries/chain/include/graphene/chain/global_property_object.hpp @@ -79,7 +79,7 @@ namespace graphene { namespace chain { time_point_sec last_budget_time; share_type witness_budget; //Last SON Payout time, it can be different to the maintenance interval time - time_point_sec last_son_payout_time; + time_point_sec last_son_payout_time = HARDFORK_SON_TIME; share_type son_budget = 0; uint32_t accounts_registered_this_interval = 0; /** @@ -138,6 +138,8 @@ FC_REFLECT_DERIVED( graphene::chain::dynamic_global_property_object, (graphene:: (next_maintenance_time) (last_budget_time) (witness_budget) + (last_son_payout_time) + (son_budget) (accounts_registered_this_interval) (recently_missed_count) (current_aslot) diff --git a/libraries/chain/son_evaluator.cpp b/libraries/chain/son_evaluator.cpp index c95c717fd..4155dc6b5 100644 --- a/libraries/chain/son_evaluator.cpp +++ b/libraries/chain/son_evaluator.cpp @@ -141,6 +141,8 @@ object_id_type son_heartbeat_evaluator::do_apply(const son_heartbeat_operation& { sso.current_interval_downtime += op.ts.sec_since_epoch() - sso.last_down_timestamp.sec_since_epoch(); sso.last_active_timestamp = op.ts; + // TODO: Remove me after sidechain tx signing is finished + sso.txs_signed = sso.txs_signed + 1; } ); db().modify(*itr, [&is_son_active](son_object &so) { @@ -154,6 +156,8 @@ object_id_type son_heartbeat_evaluator::do_apply(const son_heartbeat_operation& db().modify( itr->statistics( db() ), [&]( son_statistics_object& sso ) { sso.last_active_timestamp = op.ts; + // TODO: Remove me after sidechain tx signing is finished + sso.txs_signed = sso.txs_signed + 1; } ); } }