Commit Graph

872 Commits

Author SHA1 Message Date
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
Aaron Blankstein
87ba3b86d9 adding error messages to registrar' response to blockstack info 2017-06-06 15:06:04 -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
Jude Nelson
4121eee2a3 elaborate on how blockstack storage drivers are expected to behave regarding loading data from other users' storage 2017-05-30 19:19:36 -04:00
Jude Nelson
0d6c44c9ff Merge pull request #442 from vsund/fix/skeleton-driver
Fix minor flaws in driver skeleton
2017-05-30 10:35:01 -05:00
Valentin Sundermann
6662e89ca4 Update log name of driver skeleton 2017-05-30 17:30:10 +02:00
Jude Nelson
5d4ff04886 versioned index pages 2017-05-24 15:17:13 -04:00
Jude Nelson
246610360f expand storage documentation 2017-05-24 13:58:18 -04:00
Valentin Sundermann
36cf089250 Add missing return 2017-05-24 19:57:31 +02:00
Valentin Sundermann
b10253802a Fix typo 2017-05-24 19:56:56 +02:00
Jude Nelson
b8741e7808 Merge branch 'portal-fix-withdraw' into rc-0.14.2 2017-05-23 17:23:03 -04:00
Jude Nelson
8a32340d27 debug withdraw 2017-05-23 17:21:58 -04:00
Jude Nelson
d1b02d78f5 debug success path on put_mutable_data 2017-05-23 16:49:49 -04:00
Jude Nelson
1030e023e8 allow URIs 2017-05-23 16:49:37 -04:00
Jude Nelson
450833058b add "initialize storage" API endpoint 2017-05-23 16:49:21 -04:00
Jude Nelson
53e7f259bb debug signature failures 2017-05-23 16:49:08 -04:00
Jude Nelson
7b82202420 pass driver kwargs 2017-05-23 16:48:59 -04:00
Jude Nelson
540eac314c sync with new driver API; make Dropbox indexed 2017-05-23 16:48:40 -04:00
Jude Nelson
1f9120b554 make test driver indexed 2017-05-23 16:48:19 -04:00
Jude Nelson
29de5a0330 indexed storage for Dropbox-like systems 2017-05-23 16:48:07 -04:00
Jude Nelson
ebb6011deb take raw string for zone file 2017-05-23 16:47:45 -04:00
Jude Nelson
7e8a34ff7b move ScatterGather to utils 2017-05-17 22:05:32 -04:00
Jude Nelson
f5ecf9b148 experimental support for building up a data_id --> URL index within a storage provider, so we can share files publicly and access them without API keys 2017-05-17 22:05:03 -04:00
Jude Nelson
f948f05e44 when reading a datastore, include the blockchain ID so we can look up the profile and thus the index manifest (for storage providers that do not allow us to generate URLs) 2017-05-17 22:04:29 -04:00
Jude Nelson
7079c98800 return HTTP 400 on bad withdraw input, and return HTTP 503 on backend network error 2017-05-17 00:27:30 -04:00
Jude Nelson
3b082ba635 tag tx-broadcast failure on cli_withdraw() so callers see errno.EIO on network error 2017-05-17 00:27:12 -04:00
Jude Nelson
18604f9385 Merge branch 'rc-0.14.2' of https://github.com/blockstack/blockstack-core into rc-0.14.2 2017-05-17 00:21:37 -04:00
Jude Nelson
8d42af5aea allow data to be stored without signatures or public keys or version tags 2017-05-17 00:20:59 -04:00
Jude Nelson
308bc458e3 require directories to contain a copy of their header (for partial write recovery); consolidate and simplify lookup query schema 2017-05-17 00:20:28 -04:00