@@ -58,10 +58,13 @@ namespace golos { namespace chain {
5858 _is_generating = p;
5959 }
6060
61+ bool is_transit_enabled () const ;
62+
6163 bool _is_producing = false ;
6264 bool _is_generating = false ;
6365 bool _is_testing = false ; // /< set for tests to avoid low free memory spam
6466 bool _log_hardforks = true ;
67+ uint32_t _fixed_irreversible_block_num = UINT32_MAX ;
6568
6669 enum validation_steps {
6770 skip_nothing = 0 ,
@@ -328,6 +331,11 @@ namespace golos { namespace chain {
328331 */
329332 fc::signal<void (const signed_transaction &)> on_applied_transaction;
330333
334+ /* *
335+ * This signal is emitted when required number of votes is reached to transit to CyberWay
336+ */
337+ fc::signal<void (const uint32_t , const uint32_t )> transit_to_cyberway;
338+
331339 /* *
332340 * Emitted After a block has been applied and committed. The callback
333341 * should not yield and should execute quickly.
@@ -429,7 +437,7 @@ namespace golos { namespace chain {
429437
430438 uint64_t pay_delegators (const account_object& delegatee, const comment_vote_object& cvo, uint64_t claim);
431439
432- share_type pay_curators (const comment_curation_info& c, share_type max_rewards);
440+ share_type pay_curators (const comment_curation_info& c, share_type max_rewards, share_type& actual_rewards );
433441
434442 void cashout_comment_helper (const comment_object &comment);
435443
@@ -581,6 +589,8 @@ namespace golos { namespace chain {
581589
582590 void update_witness_schedule4 ();
583591
592+ void process_transit_to_cyberway (const signed_block& b, uint32_t skip);
593+
584594 void update_median_witness_props ();
585595
586596 void clear_null_account_balance ();
@@ -607,7 +617,7 @@ namespace golos { namespace chain {
607617
608618 bool _resize (uint32_t block_num);
609619
610- void pay_curator (const comment_vote_object& cvo, const uint64_t & claim, const account_name_type& author, const std::string& permlink);
620+ uint64_t pay_curator (const comment_vote_object& cvo, const uint64_t & claim, const account_name_type& author, const std::string& permlink);
611621
612622 void adjust_sbd_balance (const account_object &a, const asset &delta);
613623
0 commit comments