Commit Graph

47 Commits

Author SHA1 Message Date
Jude Nelson
801c845483 take data_privkey as a kwarg 2017-03-09 20:03:29 -05:00
Jude Nelson
165b5d13d4 fix task reported; fix error output 2017-03-02 12:17:41 -05:00
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
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
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
895fc95a4a handle connection errors correctly, and tell the user to try again with --debug 2017-02-27 09:35:59 -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
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
b4ba1b48e0 fix error string 2017-02-21 12:35:00 -05:00
Jude Nelson
cf91518ae0 fix up symbols 2017-02-20 21:17:21 -05:00
Jude Nelson
22b92dacc9 remove unused code 2017-02-20 20:58:17 -05:00
Jude Nelson
d9efa25325 Registrar cleanup. Remove legacy JSONRPC interface, remove rpc_token, enable callers to specify a desired tx fee, sync with other API changes 2017-02-20 20:57:34 -05:00
Jude Nelson
7a979fb3ec fix segfault from infinite recursive loop 2017-02-20 20:57:05 -05:00
Jude Nelson
9e6950ed50 Refactor nameops logic with new consolidated safety-check logic. Also, clean up the interfaces, since we're now guaranteed that the caller will have access to the private keys. 2017-02-20 20:56:16 -05:00
Jude Nelson
86a4aa6f86 consolidate all nameop-sanity-check logic into one place. Make it easy to use and hard to use improperly by giving it a declarative interface. Make it fast by running sanity-checks in parallel. 2017-02-20 20:55:23 -05:00
Jude Nelson
0128953c2a warn about different number of confirmations 2017-02-12 15:36:21 -05:00
Jude Nelson
62119866b2 fix typo in error path 2017-02-12 14:04:36 -05:00
Larry Salibra
37b1510301 fix typo causing 500 error #295 2017-02-12 16:29:49 +02:00
Jude Nelson
e2c8b18895 accept min_confs to check the minimum number of confirmations on payment UTXOs 2017-02-12 03:58:41 -05:00
Jude Nelson
1dec655c6f accept min_confs and pass along to async_preorder 2017-02-12 03:58:27 -05:00
Jude Nelson
b8714b45e0 take min confirmations on preorder 2017-02-12 03:32:05 -05:00
Jude Nelson
5dee476031 bugfixes to name renewal fee estimation 2017-02-11 15:03:10 -05:00
Jude Nelson
e5545df1d9 print exceptions directly; don't require a logger 2017-02-10 17:38:30 -05:00
Jude Nelson
c842082a55 remove dead code; have registrar thread track pending transfers; do transfers after updates if requested 2017-02-10 17:38:06 -05:00
Jude Nelson
dfd2aba3e7 remove dead code 2017-02-10 17:37:51 -05:00
Jude Nelson
9835b7f80a refactor price estimation for better fee estimates on preorders, registers, and transfers. Also, make it so we don't need any UTXOs to do estimations. 2017-02-10 17:37:01 -05:00
Jude Nelson
02c81b5f5f documentation on pricing for transaction 2017-02-10 17:36:46 -05:00
Jude Nelson
4f8e14a841 retry getting the consensus hash with exponential backoff 2017-02-07 15:45:23 -05:00
Jude Nelson
25fca97eed be more rigorous about authenticating the rpc token 2017-02-06 19:40:10 -05:00
Jude Nelson
d51042066e specifically verify that the data private key is hex-encoded 2017-02-06 15:04:44 -05:00
Jude Nelson
80782f09dd WIP: refactoring and cleaning up transaction-creation logic in preparation for outsourcing tx-signing to external programs via the REST interface 2017-02-06 15:04:17 -05:00
Jude Nelson
ae70608d27 blockstack_server storage driver will *not* replicate zonefiles, since blockstack servers already do so via Atlas protocol 2017-02-06 15:03:51 -05:00
Jude Nelson
9d7212039b don't try zonefiles over and over again once replicated 2017-01-30 01:37:36 -05:00
Jude Nelson
5e5b020e22 fix error path when we don't have all row keys 2017-01-30 01:37:09 -05:00
Jude Nelson
515bf29393 make global variables in the disk driver configurable in the config file 2017-01-30 01:36:52 -05:00
Jude Nelson
f41a304330 upgrade blockstack_server driver to deal with mutable data (as opposed to only profiles) 2017-01-30 01:36:33 -05:00
Jude Nelson
33eee60c22 registration now requires a data key 2017-01-23 19:04:56 -05:00
Jude Nelson
37579ccdb6 migrate over to the timestamp-based profile replication protocol 2017-01-23 19:04:36 -05:00
Jude Nelson
8a95892b72 don't needlessly encrypt and decrypt secrets in the backend process 2017-01-17 19:05:01 -05:00
Jude Nelson
0b152e80e4 remove the old profile-pointers to mutable data 2017-01-17 19:03:40 -05:00
Jude Nelson
7e6b635afc merge rc-0.14.1 registrar.py 2017-01-17 11:20:59 -05:00
Jude Nelson
cb17880826 merge rc-0.14.1 nameops.py 2017-01-17 11:20:46 -05:00
Jude Nelson
e4455caf96 Repository re-organization 2017-01-17 11:16:19 -05:00