Jamie Holdstock
78bb28056c
Remove global cache variable. ( #341 )
...
* Remove global cache variable.
Rather than maintaining cached data in a global variable, instantiate a cache struct and keep it in the `Server` struct.
* Store net params in RPC clients.
This means net params only need to be supplied once at startup, and also removes a global instance of net params in `background.go`.
2022-03-30 11:00:42 -05:00
Jamie Holdstock
da1cb8f916
Enable treasury vote choices. ( #319 )
...
This allows both tspend and treasury policies to be set by clients on a per-ticket basis. Preferences can be set when initially registering a ticket with `/payfee`, and can be later updated using `/setvotechoices`.
Any requests which alter treasury/tspend policy will be stored in the database using the existing accountability system.
**Note:** This does not include consistency checking, it will need to be added later when dcrwallet has an RPC to retrieve policies in batches.
2022-02-04 14:14:49 -05:00
David Hill
0fd96388ce
build: bump dcr deps ( #310 )
2021-12-29 11:23:45 +00:00
Jamie Holdstock
4858af2682
Upgrade deps ( #239 )
...
* Update to latest deps.
Includes using the dcrd stdaddr package instead of dcrutil.
* Use stdaddr.Hash160
2021-04-26 09:12:23 -05:00
David Hill
2a096d81f9
fix errorlint warnings ( #193 )
2020-11-25 15:14:18 +00:00
Jamie Holdstock
4f8b3c79eb
Add debug logging to TicketInfo RPC. ( #208 )
2020-11-21 22:12:29 +00:00
David Hill
a67de8a024
rpc: optimize TicketInfo ( #189 )
2020-10-05 10:30:42 +01:00
David Hill
c83a2a0085
rpc: verify dcrwallet's have --manualtickets set. ( #187 )
2020-09-25 09:55:53 +01:00
jholdstock
4a207b15f8
Add missing copyright notices
2020-08-19 20:22:12 +00:00
jholdstock
ba77d39f35
Comment exported methods
2020-08-07 17:03:03 +00:00
jholdstock
c308b8a9a6
Close RPC connection if server doesnt meet reqs
2020-08-03 13:26:47 +00:00
jholdstock
4139f25670
semver matching for dcrd/dcrwallet RPC versions
2020-08-03 13:26:47 +00:00
jholdstock
6cc246ceea
Configure RPC auth per wallet host.
2020-07-30 18:26:01 +00:00
jholdstock
9d503e67ae
Wallet consistency checks & setting ticket outcome
2020-07-28 20:09:23 +00:00
jholdstock
1c351d02ec
Add voting wallet status to admin page
2020-07-09 21:01:20 +00:00
jholdstock
da410b5060
Update log format
2020-07-09 21:01:20 +00:00
jholdstock
c5485a28ec
Return string for failed rpc connections
2020-07-09 21:01:20 +00:00
jholdstock
7f969c6db5
Dont fail wallet connection if wallet is locked
2020-07-09 21:01:20 +00:00
jholdstock
aed1e5f5d4
Extract walletinfo for re-use
2020-07-09 21:01:20 +00:00
jholdstock
b029d88fdb
Check dcrwallet network before calling walletinfo RPC
2020-07-09 21:01:20 +00:00
jholdstock
70ba1adc93
Combine ImportPrivKey and AddTransaction
2020-07-09 21:01:20 +00:00
jholdstock
72c16ad2c7
Close RPC connections after the web server is stopped.
...
Previously all of the shutdown tasks were running concurrently, which meant the RPC connections be closed before the webserver is finished using them.
2020-06-12 13:23:55 +00:00
jholdstock
a6d9b79619
Tolerate dcrwallet connection failures.
...
If at least 1 wallet connection succeeds, vspd should proceed to use the connected wallet(s). Only error out if all wallet connections fail.
2020-06-04 15:56:43 +00:00
jholdstock
7da79c7561
Simplify dcrd and dcrwallet client creation.
2020-06-03 15:46:24 +00:00
jholdstock
225dcaf29e
multi wallet support ( #32 )
...
* multiwallet
* print host
Co-authored-by: Jamie Holdstock <jholdstock@decred.org>
2020-05-28 12:52:06 +01:00
Jamie Holdstock
e1a18804ac
Check dcrwallet and dcrd config ( #70 )
...
* Verify dcrd network and txindex
* Verify dcrwallet network
2020-05-27 14:45:06 +01:00
Jamie Holdstock
86c4195931
Replace local fee wallet with dcrd. ( #61 )
2020-05-26 17:30:51 +01:00