Commit Graph

817 Commits

Author SHA1 Message Date
Jude Nelson
a1709b3a2f reduce the multiplier for the maximum rpc size to 150 (really can get away with more like 133, but let's play it safe--it's only 0.6 MB) 2018-07-05 23:41:39 -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
1582197c7a version bump 2018-07-05 21:43:13 -04:00
Jude Nelson
800f82911d make the max RPC length equal to the expected amount of space 100 fully-loaded zone files take when encoded 2018-07-05 21:42:26 -04:00
Aaron Blankstein
0cdfc9f939 force paging on the /v1/names/<name>/history endpoint 2018-06-20 11:38:14 -05:00
Jude Nelson
cd51534d81 optionally get name history rows in reverse 2018-06-20 11:44:29 -04:00
Jude Nelson
98c59d4f80 optionally get name history rows in reverse 2018-06-20 11:44:15 -04:00
Jude Nelson
6d6259ea59 add code to get a name and its history using pagination, with a fallback to get_name_blockchain_record() 2018-06-20 11:43:51 -04:00
Jude Nelson
46803c701e add rpc_get_name_history_page() 2018-06-20 11:43:36 -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
Aaron Blankstein
4876fefdd2 subdomain property zonefile_txt should be zonefile so it matches domains 2018-03-03 10:41:20 -05:00
Aaron Blankstein
3c088e8528 bump version 2018-03-01 06:12:04 -05:00
Aaron Blankstein
53cab2ed74 version bump 2018-02-27 16:50:16 -05:00
Aaron Blankstein
a1f3874cf4 fix subdomain name record schema validation 2018-02-27 16:49:10 -05:00
Jude Nelson
e466809eff check that DIDs are strings 2018-02-26 16:58:02 -05:00
Jude Nelson
c02d964734 update signing key 2018-02-19 19:07:47 -05:00
Jude Nelson
f80c4ae7d4 catch general socket errors (like econnrefused) in commonly-used methods 2018-02-19 18:32:17 -05:00
Jude Nelson
3441b3ed65 catch socket.timeout in common methods 2018-02-19 14:53:14 -05:00
Jude Nelson
24309d8481 save RPC public IP once we know it 2018-02-19 14:46:17 -05:00
Jude Nelson
e426f8e779 log better 2018-02-19 14:37:22 -05:00
Jude Nelson
3c15e5c961 use STUN to discover the host's public IP 2018-02-19 14:37:09 -05:00
Jude Nelson
b151ed71e1 remove dead code 2018-02-19 14:36:57 -05:00
Jude Nelson
cebf9618c0 better zonefile accounting 2018-02-19 13:36:57 -05:00
Jude Nelson
bf9ae9cf2a don't back up the atlas and subdomain dbs twice 2018-02-19 13:02:57 -05:00
Jude Nelson
b5adff9526 don't return expired names by default 2018-02-18 23:15:46 -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
8d8d2d1218 don't accidentally treat _missing (or a few other reserved RR names) as subdomain records 2018-02-18 00:33:56 -05:00
Jude Nelson
d6d3777c58 fix max RPC size to be 10x the max zonefile size (since we accept at most 5 base64-encoded zone files) 2018-02-18 00:33:32 -05:00
Jude Nelson
4bfc224af8 fix DID resolution 2018-02-18 00:32:52 -05:00
Jude Nelson
9648242d25 remove excess debugging output 2018-02-16 12:12:46 -05:00
Jude Nelson
900b4ae3af remove print 2018-02-16 12:12:39 -05:00
Jude Nelson
975a662e6f make sure a DID that points to an expired but reregistered name will resolve to the name as it was just before it was reregistered 2018-02-15 23:26:24 -05:00
Jude Nelson
b2bbd69a9d make sure DIDs that point to old expired versions of a name still resolve 2018-02-15 23:25:58 -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
867e5a5c7f flesh out DID resolution, as well as profile resolution (we no longer need client-side storage drivers, since the Gaia hub takes care of this) 2018-02-15 13:07:57 -05:00
Jude Nelson
0ac53c4a85 flesh out resolve_DID() 2018-02-14 18:39:34 -05:00
Jude Nelson
f8cea99df3 add api calls to get name/subdomain DIDs 2018-02-14 17:43:01 -05:00
Jude Nelson
eb4e2ba78b add code to get a name's DID 2018-02-14 17:42:51 -05:00
Jude Nelson
b470bdd9d7 remove unused code 2018-02-14 17:42:32 -05:00
Jude Nelson
bb4e55295b add method to get a subdomain's DID 2018-02-14 17:42:17 -05:00
Jude Nelson
aa07488e49 whitespace in query 2018-02-12 23:54:43 -05:00
Jude Nelson
99329c1d80 return sorted names 2018-02-12 23:53:14 -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
b0eae9b03b force lowercase RR name 2018-02-12 19:47:41 -05:00
Jude Nelson
c37843aae1 print bad subdomain on error 2018-02-12 19:42:50 -05:00
Jude Nelson
6455ae2dd9 fix import 2018-02-12 19:35:42 -05:00
Jude Nelson
c6c75e0646 typo 2018-02-12 19:34:18 -05:00
Jude Nelson
803630f02f use atlas_get_peers() as a fallback 2018-02-12 19:25:09 -05:00