Commit Graph

230 Commits

Author SHA1 Message Date
Jude Nelson
746a36059d rename *_nameops_* to *_blockstack_ops_* for code clarity 2018-09-27 17:42:17 -04:00
Jude Nelson
7015e486dc fix bugs in getting the history for subdomains; add a method to check if a zone file was created by a name (to speed up the GET /v1/names/:name/zonefile/:hash endpoint) 2018-09-20 17:24:45 -04:00
Jude Nelson
ab58ef2bbe account API can take a b58 or a c32 address (c32 addresses will be converted to b58) 2018-09-20 17:04:17 -04:00
Jude Nelson
f0d589ab29 modify the BoundedThreadingMixIn so it will eagerly close client sockets when it has too many outstanding requests. Do some housekeeping so that we can use this in both the backplane RPC server and the API server, and update the relevant integration test to test for this behavior 2018-09-18 17:48:19 -04:00
Jude Nelson
917af62716 get_index_range() should return a tuple; return HTTP status code from RPC 2018-09-17 18:35:03 -04:00
Jude Nelson
2f025ef303 fix a race condition that would cause the node to deadlock if it could not bind on a particular port when starting up; also, simplify the name history query interface so it only requires a page 2018-09-13 16:18:08 -04:00
Jude Nelson
9becfef5b9 use check_account_address() for account addresses; change API for getting account histories so we can query only by page (not the block range) 2018-09-13 16:16:14 -04:00
Jude Nelson
c99e7947f6 api tweak: pass the server state to the virtualchain hooks (including the atlas state) 2018-08-13 16:01:51 -04:00
Jude Nelson
d1bb179f4c check virtualchain for unclean shutdown and handle accordingly 2018-08-13 16:01:36 -04:00
Jude Nelson
961b17cb16 Merge branch 'master' into feature/token-v1 2018-08-07 14:39:29 -04:00
Jude Nelson
d0e7570b7e if we don't get a DID back, then the name doesn't exist 2018-07-18 21:10:12 -04:00
Jude Nelson
399f94d1ce check environ for genesis block on startup 2018-07-18 21:10:04 -04:00
Jude Nelson
803f2cd9ef delinting; also, be sure to remove a zone file if it is corrupt (check it ourselves to be sure) 2018-07-06 13:47:57 -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
260cec690f sanity-check the genesis block on start-up 2018-07-05 18:46:37 -04:00
Jude Nelson
875ce2dba4 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:32:55 -04:00
Jude Nelson
892c2801a7 genesis block will be obtained from blockstack/lib/config.py, always 2018-07-05 17:29:04 -04:00
Jude Nelson
f502c203d3 bugfix; pass resolver from subdomain db to name on get_name_record 2018-06-20 18:58:05 -04:00
Jude Nelson
535f43be67 add rpc_get_name_history_page() 2018-06-20 18:55:07 -04:00
Jude Nelson
46803c701e add rpc_get_name_history_page() 2018-06-20 11:43:36 -04:00
Jude Nelson
60342b48d4 clarify get_zonefile_inventory 2018-06-18 18:40:06 -04:00
Jude Nelson
d280d5b1a8 better debug output for cost 2018-06-10 13:37:56 -04:00
Jude Nelson
ef358c891b 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:01:57 -04:00
Jude Nelson
0e97ea1f6f serialize token to string 2018-04-29 02:27:01 -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