Remove votechoices from setVoteChoices response. (#81)
This commit is contained in:
parent
67dece7041
commit
d275fddf1b
12
docs/api.md
12
docs/api.md
@ -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>"}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user