Commit Graph

746 Commits

Author SHA1 Message Date
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
Jude Nelson
ced5e6f647 fix stack overflow on getattr() with UTXOWrapper 2017-06-19 23:25:01 -04:00
Jude Nelson
ba99d07ee9 remove commented code 2017-06-19 23:24:51 -04:00
Aaron Blankstein
71980ac9c4 added missing import to registrar 2017-06-19 22:19:23 -04:00
Aaron Blankstein
890766cad7 initial fix for too-low fee estimation. will test tonight with a registration from browser 2017-06-19 18:18:20 -04:00
Jude Nelson
412a9d2090 sanity-check tombstone data 2017-06-19 01:35:52 -04:00
Jude Nelson
4377f17748 bugfix and sanity check on device IDs and device public key query strings 2017-06-19 01:35:33 -04:00
Jude Nelson
8f9a11689c add methods to classify and configure storage drivers 2017-06-18 22:11:08 -04:00
Jude Nelson
0b8ec59ed1 include storage classes in session tokens; add preliminary schemas for token files 2017-06-18 22:10:51 -04:00
Jude Nelson
53bfb61ede refactor read interfaces to take a list of device IDs and a list of public keys (in 1-to-1 correspondance) to carry out cross-user datastore reads; remove non-usable code for manipulating profiles (this is now handed by the browser); synchronize with CLI API 2017-06-18 22:09:51 -04:00
Jude Nelson
2063c88305 refactor patching accounts and listing accounts; refactor return value of get_profile() 2017-06-18 22:08:28 -04:00
Jude Nelson
bdaef1e7c6 refactor data interfaces to take a set of public keys and device IDs, and authenticate inodes by trying each public key with its assigned device ID 2017-06-18 22:07:59 -04:00
Jude Nelson
02f688da0e include supported storage driver classes 2017-06-18 22:07:35 -04:00
Jude Nelson
cfc2edbcc7 add the ability to write entire config sections 2017-06-18 22:07:23 -04:00
Jude Nelson
07e88d81e0 add driver classes so we can select drivers by capabilities instead of by name. Also, add an index_check_setup() method to avoid re-building an index 2017-06-18 22:06:49 -04:00
Jude Nelson
73e5d94d91 expose getting the index manifest URL 2017-06-18 22:06:34 -04:00
Jude Nelson
5da7de4695 include storage driver classification in core session tokens 2017-06-18 22:06:20 -04:00
Jude Nelson
10922c8cd9 deactivate add/remove/list device IDs (for now, since we're refactoring it); require a session token on datastore write, and require app public keys and device IDs on datastore read 2017-06-18 22:05:41 -04:00
Jude Nelson
e22e0de3fd Merge remote-tracking branch 'origin/rc-0.14.2-portal' into rc-0.14.2 2017-06-16 18:43:40 -04:00