Commit Graph

5624 Commits

Author SHA1 Message Date
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
23e8e69009 TODO notes 2017-06-15 11:19:07 -04:00
Jude Nelson
6cdf12bd52 re-connect to bitcoind to ensure no timeouts 2017-06-15 11:06:25 -04:00
Jude Nelson
38f080ccf5 expand UTXO-consumption integration test to verify that no "small" UTXOs will be consumed by any transaction, even though they're available. Also, expand the test to check renewal and revoke. 2017-06-15 11:05:49 -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
72621e81c5 typos 2017-06-12 15:38:41 -04:00
Jude Nelson
a0c2f47770 tutorial on creating a namespace 2017-06-12 15:36:26 -04:00
Jude Nelson
73186a2a95 don't pass tx_fee on name_import; add get_utxo() method 2017-06-07 19:18:14 -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
6ee1d24c2a integration test: verify that for payments, we select a minimal number of UTXOs (instead of everything) to form a transaction 2017-06-07 19:10:39 -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
b280398457 update to MANIFEST_URI 2017-05-30 21:03:46 -04:00
Jude Nelson
f3b193a51c print out manifest URI 2017-05-30 21:03:39 -04:00
Jude Nelson
3e0b03a299 add test dataset template list for dropbox 2017-05-30 20:47:10 -04:00
Jude Nelson
2364ec8744 activate foo.test explicitly 2017-05-30 20:29:48 -04:00