Commit Graph

18 Commits

Author SHA1 Message Date
Jude Nelson
3775dfac97 clean up subdomains infrastructure port from develop 2018-04-20 18:51:05 -04:00
Jude Nelson
4fc7c5f999 Merge branch 'develop' into feature/token-v1 2018-04-20 15:54:54 -04:00
Aaron Blankstein
51f8e61d7b add+refactor to /v1/subdomains and /v1/blockchains/bitcoin/subdomains_count 2018-04-20 12:02:08 -04:00
Aaron Blankstein
7a5bf1751c include subdomains in response to /v1/names/ pagination 2018-04-20 11:11:19 -04:00
Jude Nelson
bcb2b514e0 add get_all_subdomains() and get_subdomain_last_sequence() methods to make server-side subdomains compatible with core.blockstack.org's API 2018-04-05 17:31:33 -04:00
Jude Nelson
8d8d2d1218 don't accidentally treat _missing (or a few other reserved RR names) as subdomain records 2018-02-18 00:33:56 -05:00
Jude Nelson
bb4e55295b add method to get a subdomain's DID 2018-02-14 17:42:17 -05:00
Jude Nelson
b0eae9b03b force lowercase RR name 2018-02-12 19:47:41 -05:00
Jude Nelson
c37843aae1 print bad subdomain on error 2018-02-12 19:42:50 -05:00
Jude Nelson
0904e6f89c don't log invalid zone files' stack traces when parsing 2018-02-12 19:02:14 -05:00
Jude Nelson
ae562068e6 method to get the subdomain db handle 2018-02-12 16:18:43 -05:00
Jude Nelson
05e96f6213 add method for getting a subdomain from a DID, and DID info from a subdomain 2018-02-11 18:58:34 -05:00
Jude Nelson
e28438eed3 add a fast-path for inserting subdomains that don't reorg their histories due to ownership change (O(1) DB operations instead of O(N) operations for N existing updates). Also, only process a zone file at most once 2018-02-09 18:35:10 -05:00
Jude Nelson
61b9ec1b93 use dedicated variable for queue file name 2018-02-08 19:16:15 -05:00
Jude Nelson
821e7d4d62 rewrite subdomain processor to support history reorgs on subdomains based on ownership or sequence number conflicts, and have the subdomain query method determine at runtime whether or not the subdomain is in a "pending" state (i.e. are there missing zone files out there that could reorg the subdomain's owner) 2018-02-07 19:02:02 -05:00
Jude Nelson
b9ad8cba1d WIP: address some of the concerns in #726. Only allow an address-change from a subdomain's creator domain (for now; needs testing). Also, be more efficient in how we address subdomain reorgs 2018-02-02 18:40:25 -05:00
Jude Nelson
d8e769577c bugfix: reindex a subdomain across different updates in different names. Also, add the ability to reindex from scratch, and add methods to explicitly clear the subdomain db. Also, add subdomain history query methods 2018-01-30 17:42:49 -05:00
Jude Nelson
344c20f813 initial stab at a server-side subdomain indexer. Atlas and the RPC daemon will both queue up zone files to the subdomain indexer as they arrive, and the indexer will be activated once per block to re-process all subdomains in the names whose zone files arrived. This is based in part on the code from blockstack_client/subdomains.py, as well as subdomain_registrar/. It does not depend on blockstack_client. 2018-01-29 19:05:18 -05:00