From 59af68b6e56d43076fa1928fc8d5595547a03e08 Mon Sep 17 00:00:00 2001 From: JoeGruffins <34998433+JoeGruffins@users.noreply.github.com> Date: Wed, 25 Sep 2019 01:12:44 +0900 Subject: [PATCH] multi: Update maxuser TODOs (#466) --- backend/stakepoold/server.go | 2 +- controllers/main.go | 1 + sample-dcrwallet.conf | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/stakepoold/server.go b/backend/stakepoold/server.go index 17e5360e..bc2eb152 100644 --- a/backend/stakepoold/server.go +++ b/backend/stakepoold/server.go @@ -29,7 +29,7 @@ import ( ) const ( - // TODO: sync with controllers/main.go MaxUsers + // TODO: Remove this. numServicePaymentFeeAddresses uint32 = 10000 ) diff --git a/controllers/main.go b/controllers/main.go index ea3c6102..da993946 100644 --- a/controllers/main.go +++ b/controllers/main.go @@ -44,6 +44,7 @@ const ( // MaxUsers is the maximum number of users supported by a voting service. // This is an artificial limit and can be increased by adjusting the // ticket/fee address indexes above 10000. + // TODO Remove this limitation by deriving fee addresses from an imported xpub. MaxUsers = 10000 // agendasCacheLife is the amount of time to keep agenda data in memory. agendasCacheLife = time.Hour diff --git a/sample-dcrwallet.conf b/sample-dcrwallet.conf index a862191e..55d8383a 100644 --- a/sample-dcrwallet.conf +++ b/sample-dcrwallet.conf @@ -1,6 +1,8 @@ ; Derive 10000 addresses from the specified extended public key for use ; as user's payment addresses to the cold wallet/fee collecting wallet. ; xpub portion needs to match coldwalletextpub from dcrstakepool configuration. +; The amount of addresses MUST be set to 10000. This limitation will be removed +; in a future release. ;stakepoolcoldextkey=xpub:10000 ; Fees as a percentage. 7.5 = 7.5%. Precision of 2, 7.99 = 7.99%.