210 Commits

Author SHA1 Message Date
Jamie Holdstock
b40681d38e
HTTP 428 when fee tx references unknown outputs. (#195)
JSON body will be `{"code": 16, "message":"fee transaction could not be broadcast due to unknown outputs"}`
2020-10-27 11:15:39 +00:00
David Hill
c83a2a0085
rpc: verify dcrwallet's have --manualtickets set. (#187) 2020-09-25 09:55:53 +01:00
jholdstock
825a717ca7 Store records of vote choice changes 2020-09-17 16:05:07 +00:00
jholdstock
d0c3abf258 Make funcNames constant.
Aside from just being a sensible thing to do, this also prevents a local stack allocation.
2020-09-17 14:21:17 +00:00
jholdstock
f2ae9a81ea Dont underline logo on hover 2020-08-31 17:18:30 +00:00
jholdstock
c7f8cea4dc webapi: base64 encode server signature 2020-08-31 17:14:33 +00:00
jholdstock
5a8bc49c22 Unique error for fee broadcast failure 2020-08-21 12:46:58 +00:00
jholdstock
8c428c769d Return descriptive error if ticket cannot be broadcast 2020-08-21 12:46:58 +00:00
jholdstock
4a207b15f8 Add missing copyright notices 2020-08-19 20:22:12 +00:00
jholdstock
dab1666310 Only load .html files in template dir 2020-08-19 20:20:13 +00:00
jholdstock
4bcfa80dc4 Fix admin page load when no wallet clients connected. 2020-08-07 17:03:27 +00:00
jholdstock
aa790b28aa Fix colspan on wallet status table. 2020-08-07 17:03:27 +00:00
jholdstock
e0fc5b8d04 Add basic http auth for /admin/status. Update docs. 2020-08-07 17:03:27 +00:00
jholdstock
bcb6fd5ec3 Don't export types unnecessarily 2020-08-07 17:03:03 +00:00
jholdstock
9d503e67ae Wallet consistency checks & setting ticket outcome 2020-07-28 20:09:23 +00:00
jholdstock
8c3cab7942 API versioning 2020-07-17 14:31:42 +00:00
vctt94
0a57bd3ce7 Change docs to POST 2020-07-16 18:09:45 +00:00
vctt94
6f2a069047 Fix ticket status request erroring on json unmarshal 2020-07-16 18:09:45 +00:00
jholdstock
2f8d2ab53d Remove timestamp from ticket status request 2020-07-16 15:06:50 +00:00
jholdstock
5018d45908 base64 encoding for pubkey on homepage 2020-07-15 13:46:59 +00:00
jholdstock
a112127247 Add vspd versioning 2020-07-15 13:46:00 +00:00
jholdstock
3bbad27624 Endpoint for JSON wallet status 2020-07-09 21:01:20 +00:00
jholdstock
1c351d02ec Add voting wallet status to admin page 2020-07-09 21:01:20 +00:00
jholdstock
c5485a28ec Return string for failed rpc connections 2020-07-09 21:01:20 +00:00
David Hill
b24c1a4c78
webapi: sanity check the fee transaction (#151) 2020-07-06 10:07:59 +01:00
jholdstock
08be1fa55a Log failing wallet client 2020-06-30 14:57:38 +00:00
jholdstock
27e49e5e69 Include ticket hex in feeaddress request. 2020-06-30 14:57:38 +00:00
jholdstock
1131e15ff1 Include ticket hex in feeaddress request. 2020-06-29 16:42:10 +00:00
jholdstock
8b049204eb Load fonts.css last 2020-06-25 15:46:27 +00:00
jholdstock
eb0946fada Don't write http body on db write error 2020-06-25 15:45:48 +00:00
jholdstock
5e8ef4e7f2 Prefix for dcrd/dcrwallet/db errors 2020-06-25 15:45:01 +00:00
jholdstock
0e953dc225 Add extra debug info to log messages 2020-06-25 15:45:01 +00:00
jholdstock
2c91a9bf9d Add funcName to middleware logs 2020-06-25 15:45:01 +00:00
jholdstock
f42d3ee62f Use correct format verb for dcrutil.Amount 2020-06-25 15:45:01 +00:00
jholdstock
9d6cf57219 Add funcName to web api logs 2020-06-25 15:45:01 +00:00
degeri
fdc8f22199
Set autocomplete off for tx search (#143) 2020-06-24 11:02:22 +01:00
jholdstock
80f5e6f55c Extract code to decode tx and validate tickets 2020-06-22 16:23:31 +00:00
jholdstock
ed21f0af64 Don't put request bytes into context. 2020-06-22 16:23:31 +00:00
jholdstock
705ea51fc1 Remove quotes from generic font-family names 2020-06-20 12:51:18 +00:00
jholdstock
892e6c5716 Modernize login and admin pages 2020-06-18 20:18:17 +00:00
jholdstock
03a5ef4fd1 Modernize homepage 2020-06-18 20:18:17 +00:00
jholdstock
600cd7bf9b Use modern logo and colours. 2020-06-18 20:18:17 +00:00
jholdstock
13c4f4faea Protect cached vsp stats with mutex. 2020-06-16 14:23:35 +00:00
jholdstock
3a76d44113 Extra ticket hash validation before using db/rpc.
Provides extra protection against DoS.
2020-06-15 13:32:51 +00:00
jholdstock
5af2f595ac Remove //TODOs which are already resolved. 2020-06-15 13:32:05 +00:00
Jamie Holdstock
bfeddd25d1 Download db backup from admin page. 2020-06-12 13:35:43 +00:00
jholdstock
d53676a907 Use middleware to check admin status. 2020-06-12 13:35:43 +00:00
jholdstock
2f7c46e5f8 Misc front end improvements.
- Use bootstrap to improve layout.
- Add warning banners for webserver debug mode and vspd closed.

Admin page:
- Replace listing of all tickets with form to search by ticket hash
2020-06-12 13:35:43 +00:00
jholdstock
a304fc9890 Close the database after web server is stopped.
Previously all of the shutdown tasks were running concurrently, which meant the db could be closed before the webserver is finished using it.
2020-06-12 13:23:55 +00:00
jholdstock
4f2766352b Improve handling of fee status.
- Fee tx status is now tracked using a dedicated field, with values none/received/broadcast/confirmed/error.
- Fee tx hex and hash are now both set in /payfee. The absense of txhash is no longer used to determine if a fee tx has been broadcast or not.
- setvotechoices can no longer be called before a fee is received.
- Remove `binding:required` from response types. It has no effect on responses, it is only needed on request types which are validated by gin.
2020-06-09 14:17:43 +00:00