Commit Graph

671 Commits

Author SHA1 Message Date
Jude Nelson
097fc369bd serialize all calls to enqueue zone files 2018-08-06 18:14:16 -04:00
Jude Nelson
66e8edc08f dead comment 2018-08-06 18:14:03 -04:00
Jude Nelson
e808ea9ca3 when synchronizing the atlasdb with the namedb, call the storage callback for each zone file we already have. That way, if a zone file hash is re-announced, it will be processed by the storage callback again (as desired) 2018-08-06 18:12:51 -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
0499d3fa68 fix a race condition in the atlas database that can occasionally cause a zone file to not get forwarded to the subdomain system 2018-07-27 15:08:13 -04:00
Jude Nelson
0ed8c393d5 pass through fsync 2018-07-23 19:43:32 -04:00
Jude Nelson
3d577a7aa0 re-store zone files unconditionally (again), so we can recover from corrupt zone files 2018-07-20 00:29:56 -04:00
Jude Nelson
0641feebbe cap the number of zone files we process per block for subdomains 2018-07-19 22:08:35 -04:00
Jude Nelson
ed988897a4 disable durability pragmas in the subdomain db, since if the node crashes we have to restore the subdomain db anyway (2x speed improvement). also, add a 'zonefile_offset' column to the subdomain db that fixes DID creation in the case where the same owner address created multiple subdomains in the same zone file 2018-07-18 18:57:12 -04:00
Jude Nelson
2288672b08 nearly 100x performance improvement if we don't fsync() each time we write a zone file (not strictly necessary for subdomain zone files, but definitely necessary for zone files arriving via Atlas) 2018-07-18 18:56:38 -04:00
Jude Nelson
b55d23f609 also export subdomain db and atlas db (meant mainly for testing) 2018-07-18 18:56:21 -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
efbcaccc5a up to 1000 threads (only 1024 file descriptors are available anyway) 2018-07-06 14:06:58 -04:00
Jude Nelson
01ef6b022b de-lint; version bump 2018-07-06 14:04:09 -04:00
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
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
f3621fa5c9 Merge branch 'develop' into feature/blockstack_client_refactor 2018-06-27 17:36:34 -04:00
Jude Nelson
b51caa6a0e have the subdomain system track the last known resolver for each subdomain, so queries on the domain will return the resolver 2018-06-20 18:51:00 -04:00
Jude Nelson
39709442ec name records can have a resolver field 2018-06-20 18:50:49 -04:00
Jude Nelson
badcf9d7d8 use name record's resolver to find subdomains 2018-06-20 18:50:31 -04:00
Jude Nelson
6648ec84a1 remove <<<<<< from merge 2018-06-20 18:50:02 -04:00
Aaron Blankstein
ec4ea24b20 force paging on the /v1/names/<name>/history endpoint 2018-06-20 17:49:38 -04:00
Aaron Blankstein
0cdfc9f939 force paging on the /v1/names/<name>/history endpoint 2018-06-20 11:38:14 -05:00
Jude Nelson
2293512f83 optionally get name history rows in reverse 2018-06-20 11:54:08 -04:00
Jude Nelson
b73d508c06 optionally get name history rows in reverse 2018-06-20 11:52:48 -04:00
Jude Nelson
7ac2a0e74b add code to get a name and its history using pagination, with a fallback to get_name_blockchain_record() 2018-06-20 11:51:39 -04: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
d5ddecf637 fix bug in querying atlas zonefile inventories so we get the right range (we missed this before because we were querying the entire range only) 2018-06-18 18:41:46 -04:00
Jude Nelson
cc39e090a8 don't print so much information about an HTTP call if we're not in test mode 2018-05-04 16:51:39 -04:00
Jude Nelson
f9f71996ae this shouldn't be here anyway 2018-05-03 11:26:52 -04:00
Jude Nelson
367d217da5 port subdomain lookup redirect 2018-04-30 16:00:39 -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
be71edf860 fix a few regressions from the move away from blockstack_client 2018-04-27 01:09:23 -04:00
Jude Nelson
f8df14d0ef return renewal_deadline 2018-04-26 00:08:26 -04:00
Jude Nelson
89ce0c7c1d proxy objects no longer contain SPV headers 2018-04-26 00:08:12 -04:00
Jude Nelson
d5826b752d temporarily remove the token system (will restore later) 2018-04-24 16:36:55 -04:00
Jude Nelson
52cd65421a temporarily remove the token system (will restore later) 2018-04-24 16:36:44 -04:00
Jude Nelson
1e70410445 temporarily remove the token routes (will restore later) 2018-04-24 16:36:21 -04:00
Jude Nelson
d62a2b673e temporarily remove the token system (will restore later) 2018-04-24 16:36:06 -04:00
Jude Nelson
743d83ec89 temporarily remove the token system (will restore later) 2018-04-24 16:35:54 -04:00
Jude Nelson
ac3dc9e0da temporarily remove the token system (will restore later) 2018-04-24 16:35:44 -04:00
Jude Nelson
b06a8ec7a6 temporarily remove the token system (will restore later) 2018-04-24 16:35:36 -04:00
Jude Nelson
a30b51ba8e temporarily remove the token system (will restore later) 2018-04-24 16:35:22 -04:00
Jude Nelson
02f7b9012c temporarily remove the token system (will restore later) 2018-04-24 16:34:32 -04:00
Jude Nelson
978094924c temporarily remove the token system (will restore later) 2018-04-24 16:34:20 -04:00
Jude Nelson
c1e9bf0f6d temporarily remove the token system (will restore later) 2018-04-24 16:34:05 -04:00