Commit Graph

730 Commits

Author SHA1 Message Date
Jude Nelson
ec0d37cb20 handle db timeouts in the queue creation 2018-02-08 19:15:55 -05:00
Jude Nelson
8ce40b5462 fix up bugs in imports and packages 2018-02-08 19:15:12 -05:00
Jude Nelson
2d4c1af141 bugfixes: use the right variable; don't set the ping result to None unless there's an error 2018-02-08 19:13:26 -05:00
Jude Nelson
ce69ff0add better logging of peer discovery 2018-02-08 19:13:14 -05:00
Jude Nelson
e03434e50e Merge branch 'feature/clean-chainstate' into feature/blockstackd-subdomain-indexing 2018-02-08 17:02:32 -05:00
Jude Nelson
841f1bbe93 do peer exchange in addition to getting atlas peers 2018-02-08 17:02:04 -05:00
Jude Nelson
f65ab918ba use atlas_peer_exchange() over get_atlas_peers() 2018-02-08 17:01:47 -05:00
Jude Nelson
e1e6dee503 add atlas_peer_exchange() call 2018-02-08 17:01:36 -05:00
Jude Nelson
47ffb6c655 add db_format_query 2018-02-07 19:02:49 -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
9091720bd3 add 'pending' field 2018-02-07 19:01:50 -05:00
Jude Nelson
79742bc8c1 use db_format_query 2018-02-07 19:01:43 -05:00
Jude Nelson
68c0b1fd33 add method to count missing zone files by name 2018-02-07 19:01:28 -05:00
Jude Nelson
c462acb53d report pending status on subdomains 2018-02-07 19:01:18 -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
13c415cb6e not required to build up the subdomain index using the instance provided in the db state 2018-02-02 18:39:51 -05:00
Jude Nelson
11e4b40802 more methods moved from blockstack_client/proxy.py to blockstack/lib/client.py 2018-02-02 18:39:33 -05:00
Jude Nelson
98c69d139a remove dead code; return JSON on subdomain lookup 2018-02-02 18:39:18 -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
d773ce5bf1 add name to subdomain fields; relax required history fields for subdomains 2018-01-30 17:42:21 -05:00
Jude Nelson
e6249729ad on fast-sync, capture the subdomain.db database 2018-01-30 17:42:05 -05:00
Jude Nelson
c2fe7fec55 track first block for subdomains 2018-01-30 17:41:48 -05:00
Jude Nelson
bdcaf5a08d bugfix: have Atlas tell the subdomain indexer when a zonefile arrives 2018-01-30 17:41:30 -05:00
Jude Nelson
f172e0a58a fix up imports 2018-01-30 17:41:15 -05:00
Jude Nelson
ab813e5f87 bugfix: don't try to load a zone file on get_name_record() if there is no value hash 2018-01-30 17:40:58 -05:00
Jude Nelson
e0e64b4f6a version bump to 0.18 2018-01-29 19:10:31 -05:00
Jude Nelson
afa58ffc6c add daemonize() and db_query_execute() from blockstack_client 2018-01-29 19:10:13 -05:00
Jude Nelson
9e539d82c4 clean up imports 2018-01-29 19:10:03 -05:00
Jude Nelson
2b3d05aca2 don't calculate a zonefile hash unless we need to 2018-01-29 19:09:51 -05:00
Jude Nelson
07bec9dbbe fix spacing; add test for whether or not a subdomain name is well-formed 2018-01-29 19:09:31 -05:00
Jude Nelson
df19e94ca3 process subdomain-enqueued zone files once per block 2018-01-29 19:09:11 -05:00
Jude Nelson
4afe4ab356 use common db query execution code that handles database locks 2018-01-29 19:08:55 -05:00
Jude Nelson
6a135a035f add support for subdomain DB path, and for checking whether or not subdomains and atlas are enabled 2018-01-29 19:08:37 -05:00
Jude Nelson
bc99b7c3fb add client code for looking up name and subdomain records 2018-01-29 19:08:21 -05:00
Jude Nelson
7fd00dce46 guard access to in-RAM zonefile indexes with a mutex (now that multiple threads can write to it); have Atlas call a "storage callback" each time it processes a zonefile it did not previously have (which we leverage in the subdomain indexer) 2018-01-29 19:07:26 -05:00
Jude Nelson
fcb0555c8a fix whitespacing; add RPC methods for querying subdomain names and name histories; add code for queueing zone files for subdomain indexing 2018-01-29 19:06: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
Jude Nelson
cbf2b93a86 add schemas from blockstack_client 2018-01-29 19:05:05 -05:00
Jude Nelson
4fd0d45e54 add queue implementation 2018-01-29 19:04:59 -05:00
Ubuntu
0ef5a22b3c Merge branch 'feature/clean-chainstate' of https://github.com/blockstack/blockstack-core into feature/clean-chainstate 2018-01-26 02:05:05 +00:00
Ubuntu
2617057661 add atlasdb_path when resetting the tried-storage flag on zonefiles 2018-01-26 02:04:44 +00:00
Ubuntu
b9693f2872 remove storage stop 2018-01-26 02:04:26 +00:00
Jude Nelson
c357b98190 no longer honor zonefile, profile, or data storage config options 2018-01-22 19:12:01 -05:00
Jude Nelson
afa97edd25 remove zonefile storage drivers 2018-01-22 19:11:51 -05:00
Jude Nelson
f8e2da6cc0 getinfo can return stale and warning flags 2018-01-22 19:11:40 -05:00
Jude Nelson
f54ae2c30d report when we have not synced against the chain for a while (#722) 2018-01-22 19:11:21 -05:00
Jude Nelson
3ef71e2f71 Possible fix for #658 2018-01-22 17:54:44 -05:00
Jude Nelson
b66ff92afa improve name-transfer consensus hash quirk 2018-01-22 17:54:35 -05:00
Jude Nelson
7c30624944 typo 2018-01-22 17:54:27 -05:00
Jude Nelson
d0acaf65a5 explicitly restore 2018-01-22 17:24:14 -05:00