Commit Graph

62 Commits

Author SHA1 Message Date
Jude Nelson
042266ec5a remove old mock_utxo code; import utxo functionality from pybitcoin; add support for blockstack_explorer utxo provider 2017-03-27 18:07:56 -04:00
Jude Nelson
2206c74c8d remove pybitcoin dependency 2017-03-27 18:07:44 -04:00
Jude Nelson
3641e89f9b symbol imports 2017-03-27 18:07:31 -04:00
Jude Nelson
b397502c68 clean up imports; move broadcast_tx() to this module 2017-03-27 18:07:16 -04:00
Jude Nelson
2e8ddd929c add blockstack explorer utxo client (#297) 2017-03-27 18:06:31 -04:00
Jude Nelson
805e2e1d2f import blockcypher utxo client from pybitcoin 2017-03-27 18:06:20 -04:00
Jude Nelson
fa74fbf9d4 import blockchain.info utxo provider client from pybitcoin 2017-03-27 18:06:09 -04:00
Jude Nelson
39fe76a347 import generic blockchain client from pybitcoin 2017-03-27 18:05:59 -04:00
Jude Nelson
e44ccd9bb6 import bitcoind utxo provider from pybitcoin 2017-03-27 18:05:50 -04:00
Jude Nelson
cabe0e626e test driver 2017-03-23 18:59:01 -04:00
Jude Nelson
90f1d9a011 fix documentation typo 2017-03-21 11:34:36 -04:00
Jude Nelson
6aa16b482d remove dead imports 2017-03-21 11:34:28 -04:00
Jude Nelson
7c5bf714c8 remove dead imports 2017-03-21 11:34:20 -04:00
Jude Nelson
6d3313b25f drop dead code; use scrypt for encryption/decryption in the future 2017-03-21 11:34:02 -04:00
Jude Nelson
be4b5c4f12 remove dead code 2017-03-21 11:33:47 -04:00
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