@@ -59,10 +59,13 @@ namespace golos { namespace chain {
5959 _is_generating = p;
6060 }
6161
62+ bool is_transit_enabled () const ;
63+
6264 bool _is_producing = false ;
6365 bool _is_generating = false ;
6466 bool _is_testing = false ; // /< set for tests to avoid low free memory spam
6567 bool _log_hardforks = true ;
68+ uint32_t _fixed_irreversible_block_num = UINT32_MAX ;
6669
6770 enum validation_steps {
6871 skip_nothing = 0 ,
@@ -346,6 +349,11 @@ namespace golos { namespace chain {
346349 */
347350 fc::signal<void (const signed_transaction &)> on_applied_transaction;
348351
352+ /* *
353+ * This signal is emitted when required number of votes is reached to transit to CyberWay
354+ */
355+ fc::signal<void (const uint32_t , const uint32_t )> transit_to_cyberway;
356+
349357 /* *
350358 * Emitted After a block has been applied and committed. The callback
351359 * should not yield and should execute quickly.
@@ -447,7 +455,7 @@ namespace golos { namespace chain {
447455
448456 uint64_t pay_delegators (const account_object& delegatee, const comment_vote_object& cvo, uint64_t claim);
449457
450- share_type pay_curators (const comment_curation_info& c, share_type max_rewards);
458+ share_type pay_curators (const comment_curation_info& c, share_type max_rewards, share_type& actual_rewards );
451459
452460 void cashout_comment_helper (const comment_object &comment);
453461
@@ -606,6 +614,8 @@ namespace golos { namespace chain {
606614
607615 void update_witness_schedule4 ();
608616
617+ void process_transit_to_cyberway (const signed_block& b, uint32_t skip);
618+
609619 void update_median_witness_props ();
610620
611621 void clear_null_account_balance ();
@@ -632,7 +642,7 @@ namespace golos { namespace chain {
632642
633643 bool _resize (uint32_t block_num);
634644
635- void pay_curator (const comment_vote_object& cvo, uint64_t claim, const account_name_type& author, const std::string& permlink);
645+ uint64_t pay_curator (const comment_vote_object& cvo, uint64_t claim, const account_name_type& author, const std::string& permlink);
636646
637647 void adjust_sbd_balance (const account_object &a, const asset &delta);
638648
0 commit comments