@@ -751,9 +751,30 @@ impl ConsensusConstants {
751751 let mut con_3 = con_2. clone ( ) ;
752752 con_3. coinbase_min_maturity = 360 ;
753753 con_3. effective_from_height = 30 * 24 * 7 * 2 ; // 2 weeks
754+
754755 let mut con_4 = con_3. clone ( ) ;
756+ con_4. effective_from_height = 15_000 ;
755757 con_4. coinbase_min_maturity = 180 ; // 6 hours
756- con_4. effective_from_height = 30 * 24 * 7 * 3 ; // 3 weeks
758+ let mut algos = HashMap :: new ( ) ;
759+ algos. insert ( PowAlgorithm :: Sha3x , PowAlgorithmConstants {
760+ min_difficulty : Difficulty :: from_u64 ( 150_000_000_000 ) . expect ( "valid difficulty" ) ,
761+ max_difficulty : Difficulty :: max ( ) ,
762+ target_time : 360 ,
763+ } ) ;
764+ algos. insert ( PowAlgorithm :: RandomXM , PowAlgorithmConstants {
765+ min_difficulty : Difficulty :: from_u64 ( 1_200_000 ) . expect ( "valid difficulty" ) ,
766+ max_difficulty : Difficulty :: max ( ) ,
767+ target_time : 360 ,
768+ } ) ;
769+ algos. insert ( PowAlgorithm :: RandomXT , PowAlgorithmConstants {
770+ min_difficulty : Difficulty :: from_u64 ( 1_200_000 ) . expect ( "valid difficulty" ) ,
771+ max_difficulty : Difficulty :: max ( ) ,
772+ target_time : 360 ,
773+ } ) ;
774+ con_4. blockchain_version = 1 ;
775+ con_4. valid_blockchain_version_range = 1 ..=1 ;
776+ con_4. proof_of_work = algos;
777+
757778 let consensus_constants = vec ! [ con_1, con_2, con_3, con_4] ;
758779 consensus_constants
759780 }
0 commit comments