README: pre-generate votes
This commit is contained in:
parent
c202c4edef
commit
c0117869b3
|
@ -56,3 +56,10 @@ Request Body
|
|||
]
|
||||
```
|
||||
|
||||
# Pre-generate vote IDs
|
||||
For large events with many votes, generating the vote IDs takes a long time. `generate_hashes.sh` helps to generate a large amount of hashes in advance, chunked in many smaller requests.
|
||||
The script uses the following parameters: `./generate_hashes.sh FILE_USERNAMES EVENT_ID VOTING_ROUNDS`.
|
||||
`FILE_USERNAMES` is the relative path to a text file containing the names of voters, one name per line.
|
||||
`EVENT_ID` should be the already existing token of an event.
|
||||
`VOTING_ROUNDS` is the maximum number of expected voting rounds. To be sure, generate IDs for more rounds than expected.
|
||||
The script expects the client key and certificate to be located in the same directory and to be named `client.key` and `client.crt`. Edit the script, if you need to change this. Also, the host URL is set in a variable within the script.
|
||||
|
|
Loading…
Reference in a new issue