Commit Graph

259 Commits

Author SHA1 Message Date
Jude Nelson
6ed4dbd1bd add a db_version command that will print and check the database version against the node version 2018-10-25 15:28:45 -04:00
Jude Nelson
e2880aea71 Merge branch 'master' into develop 2018-10-23 22:42:23 -04:00
Jude Nelson
30258191ae typo 2018-10-23 17:53:29 -04:00
Jude Nelson
6e56141bb4 Merge branch 'master' into develop 2018-10-23 16:49:43 -04:00
Jude Nelson
36965e0557 check recovery window when booting up, and pass the result to the server setup method 2018-10-23 14:12:34 -04:00
Jude Nelson
ef0e245c58 track whether or not we recover from a backup, and pass along to Atlas and the local recovery state 2018-10-23 13:59:17 -04:00
Jude Nelson
4bb0634f24 typo: wrong variable 2018-10-21 02:27:18 -04:00
Jude Nelson
47e5a62a56 add commands to audit the genesis block, and to load an alternative one from disk 2018-10-21 02:11:43 -04:00
Jude Nelson
8cf1580e11 Merge branch 'master' into develop 2018-10-18 15:28:09 -04:00
Jude Nelson
a7fbbb0da6 return a name's DID 2018-10-17 18:14:57 -04:00
Jude Nelson
0ba9dbdbe0 add rpc_get_subdomain_ops_at_txid() RPC call 2018-10-16 11:28:42 -04:00
Jude Nelson
7e7e904503 remove dead code 2018-10-15 18:58:54 -04:00
Jude Nelson
f03d23aa95 rename *_nameops_* to *_blockstack_ops_* for code clarity 2018-09-27 17:52:20 -04:00
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
c157b6c224 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-19 18:26:38 -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
94bcf41cf6 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:15:31 -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
419557f7c8 get_index_range() should return a tuple; return HTTP status code from RPC 2018-09-17 18:32:51 -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
6390ee3476 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:13:18 -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
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
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
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
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
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
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
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
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
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