Remove votechoices from setVoteChoices response. (#81)

This commit is contained in:
Jamie Holdstock 2020-05-28 06:58:26 +01:00 committed by GitHub
parent 67dece7041
commit d275fddf1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 10 deletions

View File

@ -69,9 +69,14 @@ the expiration time has passed.
Provide the voting key for the ticket, voting preference, and a signed Provide the voting key for the ticket, voting preference, and a signed
transaction which pays the fee to the specified address. If the fee has expired, transaction which pays the fee to the specified address. If the fee has expired,
this call will return an error and the client will need to request a new fee by this call will return an error and the client will need to request a new fee by
calling `/feeaddress` again. The VSP will not broadcast the fee transaction calling `/feeaddress` again.
until the ticket purchase has 6 confirmations, and it will not add the ticket to
its voting wallets until the fee transaction has 6 confirmations. The VSP will not broadcast the fee transaction until the ticket purchase has 6
confirmations. For this reason, it is important that the client ensures the
output being spent in the transaction is not spent elsewhere.
The VSP will not add the ticket to its voting wallets until the fee transaction
has 6 confirmations.
- `POST /payfee` - `POST /payfee`
@ -149,7 +154,6 @@ after calling `/payfee`.
```json ```json
{ {
"timestamp":1590509066, "timestamp":1590509066,
"votechoices":{"headercommitments":"no"},
"request": {"<Copy of request body>"} "request": {"<Copy of request body>"}
} }
``` ```

View File

@ -74,6 +74,5 @@ func setVoteChoices(c *gin.Context) {
sendJSONResponse(setVoteChoicesResponse{ sendJSONResponse(setVoteChoicesResponse{
Timestamp: time.Now().Unix(), Timestamp: time.Now().Unix(),
Request: setVoteChoicesRequest, Request: setVoteChoicesRequest,
VoteChoices: voteChoices,
}, c) }, c)
} }

View File

@ -45,7 +45,6 @@ type SetVoteChoicesRequest struct {
type setVoteChoicesResponse struct { type setVoteChoicesResponse struct {
Timestamp int64 `json:"timestamp" binding:"required"` Timestamp int64 `json:"timestamp" binding:"required"`
Request SetVoteChoicesRequest `json:"request" binding:"required"` Request SetVoteChoicesRequest `json:"request" binding:"required"`
VoteChoices map[string]string `json:"votechoices" binding:"required"`
} }
type TicketStatusRequest struct { type TicketStatusRequest struct {