28 Commits

Author SHA1 Message Date
jholdstock
78abc59e97 Update for go 1.18 2022-03-28 16:37:39 +01:00
Jamie Holdstock
040ed56f11
Use DCP-0010 status to calculate fees.
vspd will now call dcrd RPC `getblockchaininfo` to determine if DCP-0010 is active, and take that information into consideration when calculating ticket registration fee.
2022-01-20 08:54:52 +00:00
Jamie Holdstock
522a363bda
Add architecture diagram to deployment.md. (#296)
Also add a note that voting wallets should not be run on the
web server.
2021-09-15 13:47:48 -05:00
Jamie Holdstock
83253f3c19
Use go 1.16 features (#292)
* Use features from Go 1.16 tooling.

- GO111MODULE environment variable now defaults to "on"
- "go build" and "go test" now exit with an error rather than silently modifying go.mod or go.sum files
- Update README.md

* Don't use deprecated ioutil package.
2021-08-26 09:29:43 -05:00
Jamie Holdstock
b56dc26558 Add shutdownWg to dcrd notif handler.
This prevents db/dcrd/dcrwallet connections from being closed while the dcrd notification handler is running.
2021-06-15 10:13:31 +08:00
Jamie Holdstock
e5d449f149
Clear TODOs from accountability doc (#216)
* Clear TODOs from accountability doc

* Add note about master/release

* Add missing space
2020-12-29 18:59:21 +00:00
jholdstock
2f0c5149ac Update to go 1.15 2020-08-17 19:13:33 +00:00
jholdstock
9ade20bf1c Mention admin features in docs. 2020-06-13 23:40:05 +00:00
jholdstock
fb6ea54f15 Add tmux test harness. 2020-06-03 12:50:16 +00:00
jholdstock
381cf9e5a2 Add deployment guide. 2020-06-03 12:49:43 +00:00
jholdstock
86fdf888da Move to decred github org 2020-05-28 12:29:42 -05:00
Jamie Holdstock
6b6bc20522
Periodically write a database backup. (#76) 2020-05-28 06:58:34 +01:00
Jamie Holdstock
67dece7041
Rename to vspd. (#75) 2020-05-27 15:59:30 +01:00
Jamie Holdstock
d5c949b9ad
Split docs into seperate files (#72) 2020-05-27 15:36:21 +01:00
Jamie Holdstock
9151f4f221
Generate fee addresses in dcrvsp, not dcrwallet (#59)
* Remove unnecessary error handling.

* Generate fee addresses in dcrvsp, not dcrwallet

* Break loop if multiple invalid children are generated.

* Use Mutex instead of RWMutex
2020-05-26 14:51:05 +01:00
Jamie Holdstock
ac488464c0
Rework client/server authentication. (#58)
* Rework client/server authentication.

- Remove Signature from all requests, and instead expect a signature in HTTP header "VSP-Client-Signature".
- Remove CommitmentSignatures from the database.
- Use a bool flag to indicate when a ticket is missing from the database rather than an error.

This commit introduces a lot of duplication into each of the authenticated HTTP handlers. This should be removed in future work which moves the authentication to a dedicated middleware.

* Introduce auth and rpc middleware.

This removed the duplication added in the previous commit, and also removes the duplication of RPC client error handling.
2020-05-26 14:14:38 +01:00
Jamie Holdstock
740b9c8e0f
Get relay fee from wallet (#47) 2020-05-22 15:09:51 +01:00
Jamie Holdstock
869b68fad5
Split voting wallet and fee wallet clients (#45) 2020-05-22 07:54:09 +01:00
Jamie Holdstock
bb416e8bc9
Set vote choices on voting wallets (#43) 2020-05-21 07:59:51 +01:00
Jamie Holdstock
bd518d7e24
Split methods.go (#39) 2020-05-20 15:37:01 +01:00
Jamie Holdstock
36c748ba12
Import xpub tweaks (#41) 2020-05-20 15:18:24 +01:00
Jamie Holdstock
d31c24b531
Add missing tests and log errors. (#36) 2020-05-19 17:21:40 +01:00
Jamie Holdstock
5c1c19844c
Error logging for API methods (#28) 2020-05-19 10:55:25 +01:00
Jamie Holdstock
8768014348
Add shutdown context. (#20) 2020-05-17 07:49:53 +01:00
Jamie Holdstock
7c5ab7ebae
Add basic HTML page and project license (#15) 2020-05-15 16:07:26 +01:00
Jamie Holdstock
d0236e5c04
Implement ticket storage and retrieval (#5) 2020-05-14 14:04:14 +01:00
jholdstock
f919d4d8fc Add missing db stubs and begin db implementation 2020-05-13 21:25:35 +01:00
jholdstock
1c72b8f1e5 init 2020-05-13 17:08:02 +01:00