Commit Graph

673 Commits

Author SHA1 Message Date
Jude Nelson
91edca709c print full usage string in interactive mode 2017-06-15 22:23:32 -04:00
Jude Nelson
1adc0b6407 handle the case where the queue doesn't exist yet 2017-06-15 22:23:22 -04:00
Jude Nelson
9733be1cf4 return None on programmed failure 2017-06-15 22:23:11 -04:00
Jude Nelson
9c88cb3420 sync with data API and new schemas for authentication 2017-06-15 22:22:56 -04:00
Jude Nelson
a51570c33a fix CLI interface to datastores to include device and blockstack IDs 2017-06-15 22:22:38 -04:00
Jude Nelson
c5c0b57575 Merge remote-tracking branch 'origin/rc-0.14.2-portal' into rc-0.14.2 2017-06-15 11:35:37 -04:00
Jude Nelson
71264ffe5c assume https:// if there is no protocol scheme in a zone file URL 2017-06-15 11:30:22 -04:00
Jude Nelson
247a19345f there is only one blockchain ID per session 2017-06-15 11:29:15 -04:00
Jude Nelson
711cc5af2d take device IDs from API calls when creating session tokens and datastores 2017-06-15 11:28:48 -04:00
Jude Nelson
18f35a192c move account-query logic for the profile to profile.py; add stub methods for looking up device IDs 2017-06-15 11:28:26 -04:00
Jude Nelson
ab5aaac98e make sure log messages are not zero-length when sent to portal 2017-06-15 11:28:11 -04:00
Jude Nelson
64562fe002 mutable data operations take device IDs as explicit arguments 2017-06-15 11:27:54 -04:00
Jude Nelson
49c8ddaa62 add default API host 2017-06-15 11:27:33 -04:00
Jude Nelson
30aecc91fb remove default_devices; add default API host/port 2017-06-15 11:27:18 -04:00
Jude Nelson
9c8d9bdf38 remove unneeded imports 2017-06-15 11:27:10 -04:00
Jude Nelson
6aef9e4b51 print out method usage in the CLI 2017-06-15 11:26:59 -04:00
Jude Nelson
36dc6e9945 include built-in indexed read/write logic 2017-06-15 11:26:40 -04:00
Jude Nelson
9668421e2a don't care about unsent txs in the queue 2017-06-15 11:26:04 -04:00
Jude Nelson
c97c096f61 debug return values 2017-06-15 11:25:49 -04:00
Jude Nelson
29ef0b801e use new built-in index handlers 2017-06-15 11:25:15 -04:00
Jude Nelson
95879e88c7 WIP: use the indexing system (DRIVER IS STILL NOT WORKING) 2017-06-15 11:24:59 -04:00
Jude Nelson
82ab59b1b2 get bucket, then create bucket 2017-06-15 11:24:47 -04:00
Jude Nelson
73f782a730 don't clean out queues automatically; let individual state-transition steps do this. 2017-06-15 11:24:22 -04:00
Jude Nelson
315405d28b remove unnecessary expiry logic 2017-06-15 11:23:54 -04:00
Jude Nelson
7939388302 use default API host/port; take device information when creating a session 2017-06-15 11:23:12 -04:00
Jude Nelson
7db80c614b move account processing into profiles.py; stub out methods for getting device IDs 2017-06-15 11:22:44 -04:00
Jude Nelson
e927d4d104 sort UTXOs by decreasing value 2017-06-15 11:05:11 -04:00
Jude Nelson
903e329935 switch 'subsidized' to 'subsidize' 2017-06-15 11:04:57 -04:00
Jude Nelson
de882f3186 add subsidize= kwarg 2017-06-15 11:04:46 -04:00
Jude Nelson
e6fcd2ee46 Calculate the set of UTXOs that will be used over a sequence of transactions, including the ones that will be generated by transactions within the sequence. Do not assume that the whole set of UTXOs will be used by each transaction. 2017-06-15 11:04:14 -04:00
Jude Nelson
4a9143f610 refactor most of the fee estimation logic to generate the actual transaction we'll send, and use that as the basis of fee estimation (i.e. no more "rough estimates" and padding). Also, minimize the number of UTXOs that will be consumed in each transaction. 2017-06-15 11:02:56 -04:00
Jude Nelson
1582000327 sort UTXOs in the method that actually queries them 2017-06-15 11:02:33 -04:00
Jude Nelson
cabc4799b0 require the wallet keys to estimate prices 2017-06-15 11:02:16 -04:00
Jude Nelson
bcb1759d21 when subsidizing a transaction, select UTXOs from biggest to smallest and don't try to use them all 2017-06-07 19:17:48 -04:00
Jude Nelson
32cfa44884 do not accept tx fees from library clients 2017-06-07 19:17:33 -04:00
Jude Nelson
3593418fb9 do not accept tx fees from API clients 2017-06-07 19:17:19 -04:00
Jude Nelson
80f274ad9d calculate tx fees by multiplying fee per byte against tx length 2017-06-07 19:16:53 -04:00
Jude Nelson
61206a71e7 no longer take tx_fee as an argument 2017-06-07 19:16:33 -04:00
Jude Nelson
a083cc8732 rework most fee estimation logic to calculate the tx fee by multiplying the fee per byte against the tx length, and in doing so, cut down on the bitcoind RPCs we make and enable us to more easily select UTXOs to use to pay for transactions 2017-06-07 19:14:59 -04:00
Jude Nelson
95369e9f8d sort UTXOs by value in decreasing order; select UTXOs to sum to an amount by decreasing value; add method to get tx fee per byte 2017-06-07 19:11:21 -04:00
Jude Nelson
bbb4a5b3fe Merge branch 'rc-0.14.2-portal-utxo-fix' into rc-0.14.2-portal 2017-06-05 19:55:32 -04:00
Jude Nelson
5d288cc5e1 when getting the URIs from a user zone file, if there is no scheme, assume https:// 2017-06-02 13:11:37 -04:00
Jude Nelson
c9c77ca14e allow a user zone file to have URIs that do not have schemes 2017-06-02 13:11:20 -04:00
Jude Nelson
a8d84d5a5b only remove expired name-preorders. Do not do so for anything else; the registrar handles it on its own. 2017-06-01 19:41:31 -04:00
Jude Nelson
65e879733a fix some bugs found from testing, and close #440 2017-05-30 20:29:32 -04:00
Jude Nelson
0cc98412b9 Merge branch 'rc-0.14.2' of https://github.com/blockstack/blockstack-core into rc-0.14.2 2017-05-30 19:22:19 -04:00
Jude Nelson
2581b2895d include timestamps in data tombstones to ensure uniqueness (#440) 2017-05-30 19:21:01 -04:00
Jude Nelson
b65397028b do not require 'store_admin' or 'store_read' capabilities 2017-05-30 19:20:43 -04:00
Jude Nelson
445af537c5 don't require an API token to run 2017-05-30 19:20:26 -04:00
Jude Nelson
d9682c232c only cache the manifest URL if it was looked up 2017-05-30 19:20:09 -04:00