Commit Graph

257 Commits

Author SHA1 Message Date
Jude Nelson
2fcd64eb08 catch assertionerror when estimating preorder/register fees, so we can do a rough estimate 2017-03-02 12:17:24 -05:00
Jude Nelson
add43afe3d make sure the wallet exists before starting the API endpoint 2017-03-02 12:17:11 -05:00
Jude Nelson
dbd870bcc3 fix altering node config fields 2017-03-02 11:50:05 -05:00
Jude Nelson
ee4f897ea3 use exclusively the required storage drivers for data stores 2017-03-01 23:08:35 -05:00
Jude Nelson
7e8ba1ae8b allow put/delete mutable data to specify that they want to use the required set of drivers exclusively 2017-03-01 23:07:56 -05:00
Jude Nelson
1586cef169 don't json.loads data 2017-03-01 19:30:58 -05:00
Jude Nelson
a48d407d60 do a better job translating errno into HTTP errors where appropriate; return datastore ID on datastore creation 2017-03-01 19:30:33 -05:00
Jude Nelson
90ee4f7fa8 don't json.dumps our data; delete consistency info on delete-inode and delete-datastore 2017-03-01 19:30:05 -05:00
Jude Nelson
762820c046 take a list of drivers when creating a data store 2017-03-01 19:29:41 -05:00
Jude Nelson
5b98322d41 Add skeleton driver with documentation 2017-03-01 11:53:47 -05:00
Jude Nelson
1060393156 Always include node.blockstack.org:6264 as a zonefile push destination (for now) 2017-02-28 23:03:05 -05:00
Jude Nelson
aef029ecda blockchain_headers, not bitcoind_spv_path 2017-02-28 18:13:58 -05:00
Jude Nelson
4b3c9f179c don't take a separate data text field; just take JSON or text (but serialize either way) 2017-02-28 16:27:39 -05:00
Jude Nelson
574bf23698 add method to swap zone file URLs 2017-02-28 16:27:23 -05:00
Jude Nelson
e19a35f140 print_result() to a specific file 2017-02-28 16:27:15 -05:00
Jude Nelson
eed683abc7 add config-change enpoints; stub out remaining API with HTTP 501 2017-02-28 16:26:59 -05:00
Jude Nelson
1ea951581e support 'raw' pragma 2017-02-28 16:26:48 -05:00
Jude Nelson
6a622322bf add zonefile configuration wizard; add commands to manage the config file 2017-02-28 16:26:30 -05:00
Jude Nelson
ca9ef4324b add "typed netstrings" to use to serialize and parse mutable data (so we don't rely on JSON, which has limits) 2017-02-28 16:26:06 -05:00
Jude Nelson
70c51389e1 always print debug to stdout; return the pragmas of a command 2017-02-28 16:25:47 -05:00
Jude Nelson
d442f0880a do early safety-checks for better UX experience; also add sign_data and verify_data commands for raw data 2017-02-28 16:25:18 -05:00
Jude Nelson
4c33ab5c03 if dry-run, then only return the signed transaction 2017-02-27 16:43:56 -05:00
Jude Nelson
cf1119ecb2 return raw tx if given; make error messages consistent 2017-02-27 16:43:34 -05:00
Jude Nelson
521173008e add -n/--dry-run CLI argument 2017-02-27 16:43:18 -05:00
Jude Nelson
2bf6fbeee4 propagate specific operation-sanity-check error messages 2017-02-27 16:43:04 -05:00
Jude Nelson
2a10ccfbcd return the raw tx, if given 2017-02-27 16:42:53 -05:00
Jude Nelson
426b7b2f2d add support for dry-runs (return the tx, but don't send it) 2017-02-27 16:42:33 -05:00
Jude Nelson
d5102fdd92 fix some typos; on renewal, verify that we own the name in the CLI 2017-02-27 16:42:09 -05:00
Jude Nelson
d0206780f8 make sure the API server is running before running name operations 2017-02-27 11:40:03 -05:00
Jude Nelson
1ffc7e3075 if an RPC method fails, tell the user to try again with --debug 2017-02-27 09:36:18 -05:00
Jude Nelson
895fc95a4a handle connection errors correctly, and tell the user to try again with --debug 2017-02-27 09:35:59 -05:00
Jude Nelson
03d3505d94 inform the user on error to try again with --debug 2017-02-27 09:35:43 -05:00
Jude Nelson
5dfbd50825 allow 'tx_fee' on POST to /v1/names to renew 2017-02-26 02:42:09 -05:00
Jude Nelson
5120dc10c2 include name in profile cache, so we re-send the same profile for different names (but not the same name) 2017-02-26 02:41:39 -05:00
Jude Nelson
65cdd7beec always return zonefile_hash on set_zonefile_hash 2017-02-26 02:41:22 -05:00
Jude Nelson
05736acc36 fix bugs in daemonization logic 2017-02-25 00:40:39 -05:00
Jude Nelson
df3fbcf75d expose daemonize 2017-02-24 19:20:32 -05:00
Jude Nelson
5e230ae382 better handling of put_immutable_data where there's a zone file hash collision 2017-02-24 19:18:44 -05:00
Jude Nelson
9a8b77ebcb factor out daemonization logic so we can reuse it 2017-02-24 19:18:27 -05:00
Jude Nelson
4329a657b7 fix bugs found in testing; better error messages 2017-02-24 19:18:08 -05:00
Jude Nelson
a436a232a0 fix bugs found in testing 2017-02-24 19:17:53 -05:00
Jude Nelson
f23dc89780 app resources can have '/' in them, so differentiate between url-encoded string pattern with and without '/' (since datastore inode names cannot have '/') 2017-02-23 17:24:47 -05:00
Jude Nelson
24ed5c6954 add resources endpoint; don't require wallet keys on datastore read 2017-02-23 17:24:29 -05:00
Jude Nelson
cd52a8f9e6 fix bugs found in testing; no longer need wallet keys to read data 2017-02-23 17:24:10 -05:00
Jude Nelson
e9fe6e7989 make sure we always always always use the chain code when deriving a hardened child 2017-02-23 17:23:50 -05:00
Jude Nelson
7942d74e33 make sure we return an errno on data-plane operations 2017-02-23 17:23:36 -05:00
Jude Nelson
6c94fbe368 in all non-fatal error paths, return the set of sanity check results, the balance, name cost, and tx fee (even if some of the required checks failed) 2017-02-23 17:22:50 -05:00
Jude Nelson
b8d2270bcd always verify that we get a tx fee, and always run the safety checks even if we can tolerate their failure (since the safety checks get the tx fee) 2017-02-23 17:22:25 -05:00
Jude Nelson
7446d5cbbf update app-loading logic to use the new account key generation protocol 2017-02-23 17:22:03 -05:00
Jude Nelson
860a6baadc fix bugs found in testing 2017-02-23 17:21:50 -05:00