mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
privatesend: Increase max participants to 20 (#3610)
* Add spork to change max mixing participants to 20 Signed-off-by: pasta <pasta@dashboost.org> * Also change min participants on devnet/testnet Signed-off-by: pasta <pasta@dashboost.org> * adjust formatting Signed-off-by: pasta <pasta@dashboost.org> * add nPoolNewMinParticipants under regtest Signed-off-by: pasta <pasta@dashboost.org>
This commit is contained in:
parent
b07a7b810c
commit
1d94d914c5
@ -405,7 +405,9 @@ public:
|
||||
nLLMQConnectionRetryTimeout = 60;
|
||||
|
||||
nPoolMinParticipants = 3;
|
||||
nPoolMaxParticipants = 5; // TODO: bump on next HF / mandatory upgrade
|
||||
nPoolNewMinParticipants = 3;
|
||||
nPoolMaxParticipants = 5;
|
||||
nPoolNewMaxParticipants = 20;
|
||||
nFulfilledRequestExpireTime = 60*60; // fulfilled requests expire in 1 hour
|
||||
|
||||
vSporkAddresses = {"Xgtyuk76vhuFW2iT7UAiHgNdWXCf3J34wh"};
|
||||
@ -581,8 +583,10 @@ public:
|
||||
fAllowMultiplePorts = true;
|
||||
nLLMQConnectionRetryTimeout = 60;
|
||||
|
||||
nPoolMinParticipants = 3; // TODO drop to 2 with next mandatory upgrade
|
||||
nPoolMinParticipants = 3;
|
||||
nPoolNewMinParticipants = 2;
|
||||
nPoolMaxParticipants = 5;
|
||||
nPoolNewMaxParticipants = 20;
|
||||
nFulfilledRequestExpireTime = 5*60; // fulfilled requests expire in 5 minutes
|
||||
|
||||
vSporkAddresses = {"yjPtiKh2uwk3bDutTEA2q9mCtXyiZRWn55"};
|
||||
@ -739,8 +743,10 @@ public:
|
||||
fAllowMultiplePorts = true;
|
||||
nLLMQConnectionRetryTimeout = 60;
|
||||
|
||||
nPoolMinParticipants = 3; // same, drop to 2 w/ breaking change
|
||||
nPoolMinParticipants = 3;
|
||||
nPoolNewMinParticipants = 2;
|
||||
nPoolMaxParticipants = 5;
|
||||
nPoolNewMaxParticipants = 20;
|
||||
nFulfilledRequestExpireTime = 5*60; // fulfilled requests expire in 5 minutes
|
||||
|
||||
vSporkAddresses = {"yjPtiKh2uwk3bDutTEA2q9mCtXyiZRWn55"};
|
||||
@ -852,7 +858,9 @@ public:
|
||||
|
||||
nFulfilledRequestExpireTime = 5*60; // fulfilled requests expire in 5 minutes
|
||||
nPoolMinParticipants = 2;
|
||||
nPoolNewMinParticipants = 2;
|
||||
nPoolMaxParticipants = 5;
|
||||
nPoolNewMaxParticipants = 20;
|
||||
|
||||
// privKey: cP4EKFyJsHT39LDqgdcB43Y3YXjNyjb5Fuas1GQSeAtjnZWmZEQK
|
||||
vSporkAddresses = {"yj949n1UH6fDhw6HtVE5VMj2iSTaSWBMcW"};
|
||||
|
@ -89,7 +89,9 @@ public:
|
||||
void UpdateLLMQTestParams(int size, int threshold);
|
||||
void UpdateLLMQDevnetParams(int size, int threshold);
|
||||
int PoolMinParticipants() const { return nPoolMinParticipants; }
|
||||
int PoolNewMinParticipants() const { return nPoolNewMinParticipants; }
|
||||
int PoolMaxParticipants() const { return nPoolMaxParticipants; }
|
||||
int PoolNewMaxParticipants() const { return nPoolNewMaxParticipants; }
|
||||
int FulfilledRequestExpireTime() const { return nFulfilledRequestExpireTime; }
|
||||
const std::vector<std::string>& SporkAddresses() const { return vSporkAddresses; }
|
||||
int MinSporkKeys() const { return nMinSporkKeys; }
|
||||
@ -118,7 +120,9 @@ protected:
|
||||
CCheckpointData checkpointData;
|
||||
ChainTxData chainTxData;
|
||||
int nPoolMinParticipants;
|
||||
int nPoolNewMinParticipants;
|
||||
int nPoolMaxParticipants;
|
||||
int nPoolNewMaxParticipants;
|
||||
int nFulfilledRequestExpireTime;
|
||||
std::vector<std::string> vSporkAddresses;
|
||||
int nMinSporkKeys;
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <primitives/transaction.h>
|
||||
#include <pubkey.h>
|
||||
#include <sync.h>
|
||||
#include <spork.h>
|
||||
#include <timedata.h>
|
||||
#include <tinyformat.h>
|
||||
|
||||
@ -445,8 +446,12 @@ public:
|
||||
static std::string GetMessageByID(PoolMessage nMessageID);
|
||||
|
||||
/// Get the minimum/maximum number of participants for the pool
|
||||
static int GetMinPoolParticipants() { return Params().PoolMinParticipants(); }
|
||||
static int GetMaxPoolParticipants() { return Params().PoolMaxParticipants(); }
|
||||
static int GetMinPoolParticipants() { return sporkManager.IsSporkActive(SPORK_22_PS_MORE_PARTICIPANTS) ?
|
||||
Params().PoolNewMinParticipants() :
|
||||
Params().PoolMinParticipants(); }
|
||||
static int GetMaxPoolParticipants() { return sporkManager.IsSporkActive(SPORK_22_PS_MORE_PARTICIPANTS) ?
|
||||
Params().PoolNewMaxParticipants() :
|
||||
Params().PoolMaxParticipants(); }
|
||||
|
||||
static CAmount GetMaxPoolAmount() { return vecStandardDenominations.empty() ? 0 : PRIVATESEND_ENTRY_MAX_SIZE * vecStandardDenominations.front(); }
|
||||
|
||||
|
@ -24,6 +24,7 @@ std::vector<CSporkDef> sporkDefs = {
|
||||
MAKE_SPORK_DEF(SPORK_17_QUORUM_DKG_ENABLED, 4070908800ULL), // OFF
|
||||
MAKE_SPORK_DEF(SPORK_19_CHAINLOCKS_ENABLED, 4070908800ULL), // OFF
|
||||
MAKE_SPORK_DEF(SPORK_21_QUORUM_ALL_CONNECTED, 4070908800ULL), // OFF
|
||||
MAKE_SPORK_DEF(SPORK_22_PS_MORE_PARTICIPANTS, 4070908800ULL), // OFF
|
||||
};
|
||||
|
||||
CSporkManager sporkManager;
|
||||
|
@ -28,6 +28,7 @@ enum SporkId : int32_t {
|
||||
SPORK_17_QUORUM_DKG_ENABLED = 10016,
|
||||
SPORK_19_CHAINLOCKS_ENABLED = 10018,
|
||||
SPORK_21_QUORUM_ALL_CONNECTED = 10020,
|
||||
SPORK_22_PS_MORE_PARTICIPANTS = 10021,
|
||||
|
||||
SPORK_INVALID = -1,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user