@@ -360,7 +360,7 @@ class CMainParams : public CChainParams {
360
360
consensus.nGovernanceMinQuorum = 10 ;
361
361
consensus.nGovernanceFilterElements = 20000 ;
362
362
consensus.nMasternodeMinimumConfirmations = 15 ;
363
- consensus.V16DeploymentHeight = 1600000 ;
363
+ consensus.V16DeploymentHeight = std::numeric_limits< int64_t >:: max () ;
364
364
consensus.BIP34Height = 1 ;
365
365
consensus.BIP34Hash = uint256S (" 000001364c4ed20f1b240810b5aa91fee23ae9b64b6e746b594b611cf6d8c87b" );
366
366
consensus.BIP65Height = consensus.V16DeploymentHeight ;
@@ -379,14 +379,19 @@ class CMainParams : public CChainParams {
379
379
// Wagerr specific parameters
380
380
// Proof of Stake parameters
381
381
consensus.nPosStartHeight = 201 ;
382
- consensus.nPivxProtocolV2StartHeight = std::numeric_limits< int >:: max () ;
382
+ consensus.nBlockTimeProtocolV2 = consensus. V16DeploymentHeight ;
383
383
consensus.posLimit = uint256S (" 000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ); // ~uint256(0) >> 24
384
+ consensus.posLimit_V2 = uint256S (" 00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ); // ~uint256(0) >> 20
385
+ consensus.nTimeSlotLength = 15 ;
384
386
consensus.nPosTargetSpacing = 1 * 60 ; // 1 minute
387
+ consensus.nPosTargetTimespan = 40 * 60 ; // 40 minutes
388
+ consensus.nPosTargetTimespan_V2 = 2 * consensus.nTimeSlotLength * 60 ; // 30 minutes
385
389
consensus.nStakeMinDepth = 600 ;
390
+ consensus.nStakeMinAge = 60 * 60 ; // 1 hour
386
391
consensus.nBlockStakeModifierV1A = 1000 ;
387
- consensus.nBlockStakeModifierV2 = std::numeric_limits< int >:: max () ;
392
+ consensus.nBlockStakeModifierV2 = consensus. V16DeploymentHeight ;
388
393
// ATP parameters
389
- consensus.ATPStartHeight = std::numeric_limits< int64_t >:: max () ;
394
+ consensus.ATPStartHeight = consensus. V16DeploymentHeight ;
390
395
consensus.WagerrAddrPrefix = " wagerr" ;
391
396
consensus.strTokenManagementKey = " sYG1qGUtbTdNRYtFsKvnY3GvuauF3eVwhT" ;
392
397
consensus.nOpGroupNewRequiredConfirmations = 1 ;
@@ -548,7 +553,7 @@ class CTestNetParams : public CChainParams {
548
553
consensus.nGovernanceMinQuorum = 1 ;
549
554
consensus.nGovernanceFilterElements = 500 ;
550
555
consensus.nMasternodeMinimumConfirmations = 1 ;
551
- consensus.V16DeploymentHeight = 1600000 ;
556
+ consensus.V16DeploymentHeight = std::numeric_limits< int >:: max () ;
552
557
consensus.BIP34Height = 1 ;
553
558
consensus.BIP34Hash = uint256S (" 0000065432f43b3efb23bd0f63fe33d00d02a5f36233fe1b982c08274d58ef12" );
554
559
consensus.BIP65Height = consensus.V16DeploymentHeight ;
@@ -567,10 +572,15 @@ class CTestNetParams : public CChainParams {
567
572
// Wagerr specific parameters
568
573
// Proof of Stake parameters
569
574
consensus.nPosStartHeight = 201 ;
570
- consensus.nPivxProtocolV2StartHeight = std::numeric_limits< int >:: max () ;
575
+ consensus.nBlockTimeProtocolV2 = consensus. V16DeploymentHeight ;
571
576
consensus.posLimit = uint256S (" 000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ); // ~uint256(0) >> 24
577
+ consensus.posLimit_V2 = uint256S (" 00000fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ); // ~uint256(0) >> 20
578
+ consensus.nTimeSlotLength = 15 ;
572
579
consensus.nPosTargetSpacing = 1 * 60 ; // 1 minute
580
+ consensus.nPosTargetTimespan = 40 * 60 ; // 40 minutes
581
+ consensus.nPosTargetTimespan_V2 = 2 * consensus.nTimeSlotLength * 60 ; // 30 minutes
573
582
consensus.nStakeMinDepth = 100 ;
583
+ consensus.nStakeMinAge = 60 * 60 ; // 1 hour
574
584
consensus.nBlockStakeModifierV1A = 51197 ;
575
585
consensus.nBlockStakeModifierV2 = std::numeric_limits<int >::max ();
576
586
// ATP parameters
@@ -739,12 +749,17 @@ class CDevNetParams : public CChainParams {
739
749
// Wagerr specific parameters
740
750
// Proof of Stake parameters
741
751
consensus.nPosStartHeight = 201 ;
742
- consensus.nPivxProtocolV2StartHeight = 2000 ;
752
+ consensus.nBlockTimeProtocolV2 = consensus. V16DeploymentHeight ;
743
753
consensus.posLimit = uint256S (" 7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ); // ~uint256(0) >> 1
754
+ consensus.posLimit_V2 = uint256S (" 7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ); // ~uint256(0) >> 1
755
+ consensus.nTimeSlotLength = 15 ;
744
756
consensus.nPosTargetSpacing = 1 * 60 ; // 1 minute
757
+ consensus.nPosTargetTimespan = 40 * 60 ; // 40 minutes
758
+ consensus.nPosTargetTimespan_V2 = 2 * consensus.nTimeSlotLength * 60 ; // 30 minutes
745
759
consensus.nStakeMinDepth = 100 ;
760
+ consensus.nStakeMinAge = 60 * 60 ; // 1 hour
746
761
consensus.nBlockStakeModifierV1A = 1000 ;
747
- consensus.nBlockStakeModifierV2 = consensus.nPivxProtocolV2StartHeight ;
762
+ consensus.nBlockStakeModifierV2 = consensus.V16DeploymentHeight ;
748
763
// ATP parameters
749
764
consensus.ATPStartHeight = std::numeric_limits<int64_t >::max ();
750
765
consensus.WagerrAddrPrefix = " wagerrtest" ;
@@ -889,7 +904,7 @@ class CRegTestParams : public CChainParams {
889
904
consensus.nGovernanceMinQuorum = 1 ;
890
905
consensus.nGovernanceFilterElements = 100 ;
891
906
consensus.nMasternodeMinimumConfirmations = 1 ;
892
- consensus.V16DeploymentHeight = 1600000 ;
907
+ consensus.V16DeploymentHeight = 300 ;
893
908
consensus.BIP34Height = 100000000 ; // BIP34 has not activated on regtest (far in the future so block v1 are not rejected in tests)
894
909
consensus.BIP34Hash = uint256 ();
895
910
consensus.BIP65Height = 1351 ; // BIP65 activated on regtest (Used in rpc activation tests)
@@ -908,12 +923,17 @@ class CRegTestParams : public CChainParams {
908
923
// Wagerr specific parameters
909
924
// Proof of Stake parameters
910
925
consensus.nPosStartHeight = 201 ;
911
- consensus.nPivxProtocolV2StartHeight = 2000 ;
926
+ consensus.nBlockTimeProtocolV2 = consensus. V16DeploymentHeight ;
912
927
consensus.posLimit = uint256S (" 7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ); // ~uint256(0) >> 1
928
+ consensus.posLimit_V2 = uint256S (" 7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" ); // ~uint256(0) >> 1
929
+ consensus.nTimeSlotLength = 15 ;
913
930
consensus.nPosTargetSpacing = 1 * 60 ; // 1 minute
931
+ consensus.nPosTargetTimespan = 40 * 60 ; // 40 minutes
932
+ consensus.nPosTargetTimespan_V2 = 2 * consensus.nTimeSlotLength * 60 ; // 30 minutes
914
933
consensus.nStakeMinDepth = 100 ;
934
+ consensus.nStakeMinAge = 0 ;
915
935
consensus.nBlockStakeModifierV1A = 1000 ;
916
- consensus.nBlockStakeModifierV2 = consensus.nPivxProtocolV2StartHeight ;
936
+ consensus.nBlockStakeModifierV2 = consensus.V16DeploymentHeight ;
917
937
// ATP parameters
918
938
consensus.ATPStartHeight = std::numeric_limits<int64_t >::max ();
919
939
consensus.WagerrAddrPrefix = " wagerrreg" ;
0 commit comments