Commit Graph

954 Commits

Author SHA1 Message Date
Jude Nelson
a47550905a convert to string 2017-06-22 16:53:39 -04:00
Aaron Blankstein
35fd20c93c updated unittests for the zonefile in zonefiles scheme 2017-06-22 16:29:22 -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
Aaron Blankstein
ec0edfdc52 subdomains with prior zonefile spec 2017-06-21 17:10:06 -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
23e66a02a1 Merge branch 'rc-0.14.2' into api 2017-06-20 14:56:19 -04:00
Aaron Blankstein
56fadd3b5e fix error case return value in get_profile() 2017-06-20 14:55:58 -04:00
Aaron Blankstein
13dd191006 big merge in from 0.14.2 2017-06-20 14:27:06 -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
Jean-Paul Calderone
ecba23b018 Add missing `traceback` import
This fixes error reporting when an RPC call fails.
2017-06-20 09:14:33 -04:00
Jean-Paul Calderone
2be5290639 Add missing is_b40 import
This fixes ``check_valid_name`` (and therefore just about all CLI
operations) when used with a name containing non-base40 bytes.
2017-06-20 09:12:10 -04:00
Jean-Paul Calderone
f519f822b1 remove a number of unused imports and locals 2017-06-20 09:03:20 -04:00
Jean-Paul Calderone
9fb735880f Eliminate wildcard imports
This enables static checking with pyflakes
2017-06-20 09:01:36 -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
Aaron Blankstein
07891679df Added integration test for simple subdomain resolution
*And* the test works!!
2017-06-19 11:00:41 -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
Jude Nelson
99afdb165d possible that there are not UTXOs 2017-06-16 18:40:07 -04:00
Jude Nelson
0f0e05be15 subsidize, not subsidized 2017-06-16 18:39:56 -04:00
Jude Nelson
a8271d7fc9 include BLOCKSTACK_DEBUG 2017-06-16 18:39:38 -04:00
Aaron Blankstein
acf910d38c okay, first pass at a naive subdomain resolver, with some test cases too 2017-06-16 16:49:35 -04:00
Jude Nelson
b1f669aecd expect authentication supplicants like the portal to supply a list of device IDs and public keys 2017-06-15 22:24:23 -04:00