Commit Graph

764 Commits

Author SHA1 Message Date
Jude Nelson
999feaacfd no relative imports 2017-07-04 23:35:58 -04:00
Jude Nelson
4e1f0a2bca fix up token file spec as functional tests revealed bugs 2017-07-04 23:35:41 -04:00
Jude Nelson
1c40261308 patch API endpoint to use new, slightly-modified zone file API 2017-07-04 23:35:25 -04:00
Jude Nelson
1fe457c765 remove most profile loading/storing logic, since this will be handled by the token file 2017-07-04 23:35:00 -04:00
Jude Nelson
2aaf949026 no relative imports 2017-07-04 23:34:49 -04:00
Jude Nelson
8256cf1b43 add methods to extract various private keys from the per-device keychain 2017-07-04 23:34:29 -04:00
Jude Nelson
d23325cb76 accelerate datastore writes by storing headers and payloads in parallel, and deleting in parallel. keep a persistent "journal" of deletions-in-progress, so we can mask partial delete failures and give clients recovery hints by indicating whether or not a child inode actually exists (i.e. whether or not it partially deleted, but not completely deleted) 2017-07-04 23:32:21 -04:00
Jude Nelson
e08cc6e85e don't use relative imports 2017-07-04 23:32:00 -04:00
Jude Nelson
6e063776d2 don't use relative imports 2017-07-04 23:31:49 -04:00
Jude Nelson
003df35a4a don't use relative imports in UTXO drivers 2017-07-04 23:31:36 -04:00
Jude Nelson
e22457949b use a different index bucket name in regtest mode 2017-07-04 23:31:18 -04:00
Jude Nelson
f39a0118b8 require data_privkey (will be the signing key in a token file for a name) 2017-07-04 23:30:58 -04:00
Jude Nelson
c4c9e029a9 patch profile-dependent methods and data-key-dependent methods to use the token file for data formatting and key selection 2017-07-04 23:30:18 -04:00
Jude Nelson
e6c3878f36 initial stab at a token file implementation, which links a name's profile, device-specific keys, name, and app/device keys 2017-07-04 23:29:40 -04:00
Jude Nelson
532684661b re-encode addresses based on BLOCKSTACK_RPC_MOCK_BLOCKCHAIN_NETWORK environment variable 2017-07-03 09:47:50 -04:00
Jude Nelson
b2bdb8ad54 Merge branch 'rc-0.14.3' of https://github.com/blockstack/blockstack-core into rc-0.14.3 2017-06-29 15:59:59 -04:00
Jude Nelson
187adee895 update the help on datastore_stat to indicate that for directories, this returns the entire directory 2017-06-29 15:59:40 -04:00
Jude Nelson
40b6873d47 add 'clearcache' test directive; log which methods we run on datastore reads 2017-06-29 15:59:16 -04:00
Aaron Blankstein
7e22913eed a little bit more supportive of an error response for unauthorized methods with auth tokens 2017-06-29 15:19:16 -04:00
Aaron Blankstein
978945866c removing advanced mode -- now all commands may be run, regardless of advanced mode status, new config files will not have advanced mode written to them 2017-06-29 14:40:40 -04:00
Aaron Blankstein
4a39fadb83 fix for issue 469 part 1 + integration test for it. blockstack regtest was killing itself on a bad tx response from bitcoind. The patch also fixes a value_hash dict keyerror at the end of certain testcase passes 2017-06-29 14:17:36 -04:00
Jude Nelson
1bda677ca3 fix error formatting 2017-06-26 18:01:28 -04:00
Jude Nelson
339a0a0ff2 remove erroroneous else branch 2017-06-26 18:01:17 -04:00
Jude Nelson
aa1bfadb28 Merge branch 'rc-0.14.2' 2017-06-26 17:32:09 -04:00
Jude Nelson
8e9ee82f2a Add PUT /v1/wallet/key/:keyID endpoint 2017-06-26 15:17:28 -04:00
Jude Nelson
3f136782ee expose ConcurrencyViolationException 2017-06-25 18:46:19 -04:00
Jude Nelson
8b19683e86 parallelization improvements to the indexing system; don't allow concurrent index_setup() calls 2017-06-25 18:45:56 -04:00
Jude Nelson
d8917a3628 multi-thread the server for long-running requests (like index initialization); handle concurrency-violation exceptions for serialized operations with HTTP 202 2017-06-25 17:38:24 -04:00
Larry Salibra
d5d742659d hardcode device id for legacy auth requests to 0 #463 2017-06-23 16:12:51 +08:00
Jude Nelson
acd22ee0be default app_public_keys is an array 2017-06-22 17:41:31 -04:00
Jude Nelson
bcde516f5e fix partial schema 2017-06-22 17:24:32 -04:00
Jude Nelson
c488e7a531 allow blockchain_id to be null (for anonymous login) 2017-06-22 17:15:44 -04:00
Jude Nelson
a47550905a convert to string 2017-06-22 16:53:39 -04:00
Jude Nelson
3e460c8b08 add schema for legacy authentication request (https://github.com/blockstack/blockstack.js/issues/217) 2017-06-21 22:43:59 -04:00
Jude Nelson
21930e2846 log single-threaded behavior for debugging 2017-06-21 22:43:51 -04:00
Jude Nelson
e235f3d0de Add a fall-back path for handling legacy authentication requests (https://github.com/blockstack/blockstack.js/issues/217) 2017-06-21 22:43:01 -04:00
Jude Nelson
1370832ed9 Performance optimizations: cache inode headers, directories, and datastores; write inode headers and payloads in parallel 2017-06-21 22:42:34 -04:00
Jude Nelson
8e8365a6df cache index pages by driver, and then by index bucket (not by blockchain ID). Also, make sure accesses are thread-safe 2017-06-21 22:42:10 -04:00
Jude Nelson
3f8f1b7be8 write-through cache for directories, headers, and datastores; write headers and inode payloads in parallel (and write to drivers in parallel); prioritize local drivers over non-local drivers on read 2017-06-20 23:53:54 -04:00
Jude Nelson
5a709673a9 log corruption case 2017-06-20 23:53:43 -04:00
Jude Nelson
51c72d66b5 bugfix on error path 2017-06-20 23:53:32 -04:00
Aaron Blankstein
56fadd3b5e fix error case return value in get_profile() 2017-06-20 14:55:58 -04:00
Aaron Blankstein
ff63b464c0 fix doubling of the dust fee 2017-06-20 10:46:39 -04:00
Aaron Blankstein
2efaddaa08 merging in from rc-0.14.2 2017-06-20 09:59:47 -04:00
Aaron Blankstein
12cafce2d1 fix arguments to make_subsidizable 2017-06-20 06:15:16 -04:00
Jude Nelson
845b326d0e optionally avoid calling a UTXO client method (in case it might lead to recursion) 2017-06-19 23:26:28 -04:00
Jude Nelson
312e993235 when testing, do not install separate signal handlers (interferes with the test framework's ability to shut down) 2017-06-19 23:26:02 -04:00
Jude Nelson
14e1c355d2 use driver classes to identify non-local storage drivers. Also, add TODO's for multi-player storage 2017-06-19 23:25:39 -04:00
Jude Nelson
39594f9f72 no longer need storage_drivers_local config option 2017-06-19 23:25:24 -04:00
Jude Nelson
18e0c06a23 need queue_removeall 2017-06-19 23:25:17 -04:00