Commit Graph

75 Commits

Author SHA1 Message Date
Jude Nelson
61f6052938 fix bugs in name import safety checks (discovered in testing) 2017-04-13 10:59:58 -04:00
Jude Nelson
0df007409c have the registrar track unconfirmed name imports and replicate zone files once they are confirmed 2017-04-13 10:59:34 -04:00
Jude Nelson
b7bdb1aa97 expand the safety checker to include namespace_preorder, namespace_reveal, namespace_ready, and name_import. Also, expand the fee calculations to include fee estimates for these operations. 2017-04-12 17:11:54 -04:00
Jude Nelson
ef07e594dd have do_namespace_preorder, do_namespace_reveal, and do_namespace_ready use the safety module to verify safety properties prior to executing the transaction. Also, extend the fee estimators to include dust fees. 2017-04-12 17:11:07 -04:00
Jude Nelson
7edeb76bff update config and symbols for UTXO clients 2017-04-10 11:49:29 -04:00
Jude Nelson
a4f64bd1bf renamed old blockstack_utxo to blockstack_core as UTXO endpoint 2017-04-10 11:49:13 -04:00
Jude Nelson
580b5cbb11 Renamed blockstack_utxo to refer to the Insight API endpoint we'll be running; consolidated code for the explorer UTXO endpoint and the dedicated UTXO endpoint we maintain (both use insight API) 2017-04-10 11:48:44 -04:00
Jude Nelson
311687d322 consolidated insight API code 2017-04-10 11:48:32 -04:00
Jude Nelson
46e84402d6 use new ecdsa_private_key() wrapper to enforce our compression semantics 2017-03-30 18:26:45 -04:00
Jude Nelson
f777a890ac get off of virtualchain.BitcoinPublicKey wherever possible in favor of keylib 2017-03-30 14:59:14 -04:00
Jude Nelson
1d49fe8cf2 don't try to push zonefiles to node.blockstack.org if we're only testing 2017-03-30 14:23:17 -04:00
Jude Nelson
127b05b282 get off of pybitcoin; switch to virtualchain API 2017-03-30 14:05:54 -04:00
Jude Nelson
c6046a07f6 need b40 2017-03-30 11:59:25 -04:00
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