Skip to content

Commit

Permalink
multi: Update maxuser TODOs (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGruffins authored and dajohi committed Sep 24, 2019
1 parent c692b11 commit e6e3418
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/stakepoold/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
)

const (
// TODO: sync with controllers/main.go MaxUsers
// TODO: Remove this.
numServicePaymentFeeAddresses uint32 = 10000
)

Expand Down
1 change: 1 addition & 0 deletions controllers/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions sample-dcrwallet.conf
Original file line number Diff line number Diff line change
@@ -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%.
Expand Down

0 comments on commit e6e3418

Please sign in to comment.