Commit Graph

189 Commits

Author SHA1 Message Date
Jude Nelson
d13f18c879 on daemonize, exit if we're the parent. Also, don't use legacy bitcoind opts parser, and fix bugs in early CLI parsing to remove opts that would cause us to re-exec 2018-02-12 18:38:27 -05:00
Jude Nelson
1dde829c72 use get_state_paths() correctly 2018-02-12 17:03:09 -05:00
Jude Nelson
8c2bb704fa if the subdomains db doesn't exist or isn't initialized, then initialize it 2018-02-12 16:18:27 -05:00
Jude Nelson
a35bd90c6d get_subdomains_owned_by_address 2018-02-12 11:00:00 -05:00
Jude Nelson
851dcdb7c0 add DID endpoints; consolidate lookups on names and subdomains 2018-02-11 18:56:38 -05:00
Jude Nelson
c11ab45aa9 limit length of RPC debug output 2018-02-09 18:34:27 -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
c462acb53d report pending status on subdomains 2018-02-07 19:01:18 -05:00
Jude Nelson
98c69d139a remove dead code; return JSON on subdomain lookup 2018-02-02 18:39:18 -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
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
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
b9693f2872 remove storage stop 2018-01-26 02:04:26 +00: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
f3625ab040 bugfixes to restore 2018-01-22 17:21:58 -05:00
Jude Nelson
c3b52b2faa remove distracting comment 2018-01-21 00:57:54 -05:00
Jude Nelson
19b85dbb7f add rpc_get_name_record() which does not return blockchain history 2018-01-19 18:43:45 -05:00
Jude Nelson
0d725fcc27 remove consensus import 2018-01-19 15:38:44 -05:00
Jude Nelson
60dae6bbfb cache bitcoind info for a block time, or until we reindex 2018-01-19 15:11:00 -05:00
Jude Nelson
755268865f cache bitcoind response for 10 minutes 2018-01-18 19:56:49 -05:00
Jude Nelson
903a2544f2 load expected snapshots as json before sqlite3 2018-01-17 23:46:01 -05:00
Jude Nelson
fe369cb62c don't sync the atlas db outside of virtualchain_hooks (since it just duplicates work) 2018-01-17 22:30:57 -05:00
Jude Nelson
2abfd4a5a1 preserve opcode in canonicalization 2018-01-17 17:00:44 -05:00
Jude Nelson
a869d03d0c extract snapshots from chainstate db as well as legacy snapshots JSON 2018-01-17 14:59:43 -05:00
Jude Nelson
6d7f3ea2fb sanitize and remove all quirk fields from a name record before returning it 2018-01-17 14:16:42 -05:00
Jude Nelson
4c6562b5c8 nulldata can be None if it isn't parseable 2018-01-17 00:30:53 -05:00
Jude Nelson
544f265cf0 ~/.blockstack-server 2018-01-17 00:15:42 -05:00
Jude Nelson
a60916dec2 os.path.expanduser 2018-01-17 00:14:34 -05:00
Jude Nelson
1feb34687d use is_atlas_enabled(); pass atlasdb path on subdomain lookup 2018-01-17 00:08:33 -05:00
Jude Nelson
1a8ad99376 properly instantiate the namedb and atlasdb 2018-01-16 16:34:25 -05:00
Jude Nelson
d8fd4d5284 rework the RPC client: remove the storage and profile load/store APIs (now handled by gaiahub), simplify the SNV API so that we can simply paginate through historic name snapshots (which is now efficient, thanks to the new database schema), remove the asynchronous storage queue (now that we don't load/store data via blockstack_client), remove old CLI options (rebuilddb, importdb), rely on functionality provided by virtualchain wherever possible (like for verifydb) 2018-01-12 18:30:15 -05:00
Jude Nelson
4d9987e23f add get_historic_name_at() for expired names 2017-11-10 13:12:53 -05:00
Jude Nelson
76bf68bff8 add API endpoints in the indexer to get the *unexpired* name count and the *cumulative* name count 2017-11-08 11:27:56 -05:00
Jude Nelson
8c3f10e822 check offset/count 2017-10-31 14:33:23 -04:00
Jude Nelson
172676580f don't restore unless we have to; always use snapshots if available 2017-10-31 12:34:00 -04:00
Jude Nelson
a4be04ffd1 Merge branch 'hotfix/nameop-library-support' into hotfix/did-support 2017-10-30 16:39:36 -04:00
Jude Nelson
7504818e7a auto-restore on restart from improper shutdown 2017-10-30 11:57:56 -04:00
Jude Nelson
37bd9cfa42 add RPC methods to find out the list of names ever created by an address 2017-10-27 19:24:48 -04:00
Jack Zampolin
d0893197dd Kick CI 2017-10-17 15:33:54 -07:00
Jude Nelson
ef6bbdff17 properly use rpc_port 2017-10-12 17:12:13 -04:00
Jude Nelson
19685fb5ee deny gzipped data 2017-10-11 19:07:10 -04:00
Jude Nelson
29b4e5d94b minimim allowed block can be 1 when testing 2017-10-11 17:26:13 -04:00
Jude Nelson
5aca5c3a1b harden the RPC interface: deny messages over a certain size and type-check all parameters 2017-10-11 14:38:16 -04:00
Jude Nelson
13eb9b4141 remove rpc_get_zonefiles_by_names(); remove deprecated profile-verification-by-hash (we now use timestamp+signature to stop replay attacks) 2017-10-10 11:20:15 -04:00
Jude Nelson
0d450dca9a expanduser on snapshots path 2017-10-05 12:33:29 -04:00
Jude Nelson
0113c1d17c better output on fast_sync 2017-10-05 12:15:16 -04:00
Jude Nelson
3adbc2bc11 don't require url on fast_sync 2017-10-04 19:02:07 -04:00