Commit Graph

220 Commits

Author SHA1 Message Date
Jude Nelson
1b56e1bba2 api tweak: pass the server state to the virtualchain hooks (including the atlas state) 2018-08-06 18:12:29 -04:00
Jude Nelson
720c94049d check virtualchain for unclean shutdown and handle accordingly 2018-08-06 11:17:29 -04:00
Jude Nelson
7114040e3a if we don't get a DID back, then the name doesn't exist 2018-07-18 18:56:03 -04:00
Jude Nelson
e1b4c0b5bc lint 2018-07-06 15:20:58 -04:00
Jude Nelson
b82d6428ed de-lint 2018-07-06 14:23:36 -04:00
Jude Nelson
58604448fd Merge branch 'master' into develop 2018-07-06 14:08:31 -04:00
Jude Nelson
541c20afd6 set MAX_DATA in all places where we import defusedxml packages 2018-07-05 23:41:27 -04:00
Jude Nelson
8358c1d783 add a bounded threading mixin to the RPC server that allows it to have up to a maximum number of outstanding threads handling requests. serialize all RPC access so we don't introduce database contention or corruption. make the maximum number of RPC threads overridable in the environment. 2018-07-05 17:24:30 -04:00
Jude Nelson
57153b9d3a bugfix; pass resolver from subdomain db to name on get_name_record 2018-06-20 18:49:36 -04:00
Jude Nelson
f6c4178d7e add rpc_get_name_history_page() 2018-06-20 11:51:26 -04:00
Jude Nelson
46803c701e add rpc_get_name_history_page() 2018-06-20 11:43:36 -04:00
Jude Nelson
570c7be2ca clarify get_zonefile_inventory 2018-06-18 18:41:30 -04:00
Jude Nelson
19bbde27df make getinfo faster so we can use it more in atlas in order to tell if we're talking to a testnet or mainnet node. We'll make it so mainnet nodes and testnet nodes ignore each other. 2018-04-29 23:02:54 -04:00
Jude Nelson
64162f89df temporarily remove the token system (will restore later) 2018-04-24 16:32:44 -04:00
Jude Nelson
6f58350875 use check_*() methods from .scripts 2018-04-20 18:49:31 -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
6395be4688 forward http status on name lookup 2018-04-19 19:04:13 -04:00
Jude Nelson
f912bf4179 remove check_*() code into blockstack/lib/scripts.py; be more rigorous about returning HTTP error codes; WIP add methods to query account operations and history 2018-04-19 11:35:22 -04:00
Jude Nelson
ab519b4c8a return an http_status hint from RPC methods; add support for querying account state on the backplane interface 2018-04-13 19:14:28 -04:00
Jude Nelson
6f75f4747e support starting blocktackd in "api-only" mode 2018-04-05 17:29:44 -04:00
Jude Nelson
30bf4ceb06 patch through account methods, and start/stop the RESTful API within blockstackd 2018-03-22 19:24:00 -04:00
Jude Nelson
e466809eff check that DIDs are strings 2018-02-26 16:58:02 -05:00
Jude Nelson
3c15e5c961 use STUN to discover the host's public IP 2018-02-19 14:37:09 -05:00
Jude Nelson
ca55b3ce79 return expired names by default. let the client figure out that they are expired 2018-02-18 23:15:22 -05:00
Jude Nelson
abbe2d8143 typo 2018-02-15 23:25:49 -05:00
Jude Nelson
0bc53d9cf2 only initialize subdomains once 2018-02-15 16:16:34 -05:00
Jude Nelson
f8cea99df3 add api calls to get name/subdomain DIDs 2018-02-14 17:43:01 -05:00
Jude Nelson
470d3d5c39 don't report the DIDs of names and subdomains in the whois info (make this a separate method) 2018-02-12 23:49:28 -05:00
Jude Nelson
f2e9660bd4 reindex, not index 2018-02-12 19:02:33 -05:00
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