Commit Graph

548 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
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
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
a1f3874cf4 fix subdomain name record schema validation 2018-02-27 16:49:10 -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
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
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
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
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
Jude Nelson
2e79429468 wait at most 5 minutes on child fork 2018-02-12 19:12:18 -05:00
Jude Nelson
45b5dcc5c8 early abort on subdomain name match test 2018-02-12 19:11:00 -05:00
Jude Nelson
0904e6f89c don't log invalid zone files' stack traces when parsing 2018-02-12 19:02:14 -05:00
Jude Nelson
c079b35234 a name can have 1 character excluding its tld 2018-02-12 19:02:00 -05:00
Jude Nelson
c55379df6d less verbose debug output 2018-02-12 19:01:48 -05:00
Jude Nelson
d9aa6c90e0 atlas.db and subdomain.db are now considered state paths 2018-02-12 18:39:06 -05:00
Jude Nelson
38d8ff4046 guard db_restore exception 2018-02-12 18:38:54 -05:00
Jude Nelson
0e708b391e typo 2018-02-12 16:58:34 -05:00
Jude Nelson
ae562068e6 method to get the subdomain db handle 2018-02-12 16:18:43 -05:00
Jude Nelson
24d5533949 document semantics on history queries 2018-02-12 11:00:32 -05:00
Jude Nelson
fcc05db338 move over the remaining blockstackd client methods to blockstackd 2018-02-12 11:00:13 -05:00
Jude Nelson
127fd48270 methods for making and parsing DIDs 2018-02-11 18:58:51 -05:00