Commit Graph

5508 Commits

Author SHA1 Message Date
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
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
08535ec0ee Merge branch 'rc-0.14.2' of https://github.com/blockstack/blockstack-core into rc-0.14.2 2017-05-09 18:33:11 -04:00
Jude Nelson
f5c385ff21 fix up SNV-checks to handle the case where an API operation outright fails due to a safety failure 2017-05-09 18:32:44 -04:00
Jude Nelson
a5d61a22de test min_confs in the test environment 2017-05-09 18:32:35 -04:00
Jude Nelson
4d246afda2 get minimum confirmations from UTXO service client, if not given in kwargs 2017-05-09 18:31:29 -04:00
Jude Nelson
a320a18da7 pass along minimum number of confirmations 2017-05-09 18:31:14 -04:00
Jude Nelson
ec07ae9f97 be more aggressive in trying to talk to the API daemon 2017-05-09 18:31:01 -04:00
Jude Nelson
a2366243ff don't take min_confirmatinos from kwargs; take it from the UTXO service client 2017-05-09 18:30:44 -04:00
Jude Nelson
490a3e1b7d honor BLOCKSTACK_MIN_CONFIRMATIONS environment variable 2017-05-09 18:30:30 -04:00
Jude Nelson
3763d53cf5 avoid needless debug output if fields overridden by the environment match the fields in the config file 2017-05-09 18:30:08 -04:00
Jude Nelson
cd1c6e04ca include min_confirmations in the UTXO service drivers 2017-05-09 18:29:48 -04:00
Jude Nelson
ef05e280de pass along minimum confirmations from UTXO service client when doing sanity checks 2017-05-09 18:29:22 -04:00
Jude Nelson
daf0b37c41 pass along minimum confirmations from UTXO service client when doing sanity checks 2017-05-09 18:28:57 -04:00
Jude Nelson
eb5b63bc45 honor min_confirmations in the UTXO service client instance (if no min_confirmations is given) 2017-05-09 18:28:33 -04:00
Jude Nelson
cb3a43ba61 check error in cli_price before continuing 2017-05-09 18:28:12 -04:00
Jude Nelson
d27a38eac1 check sys.argv length 2017-05-09 18:27:42 -04:00
Jude Nelson
0e0ecea605 Merge pull request #419 from blockstack/better-api-auth-errors
better errors from the CLI when it fails to authenticate with the API service
2017-05-09 14:53:38 -05:00
Aaron Blankstein
1024838394 better errors from the CLI when it fails to authenticate with the API service 2017-05-09 14:54:02 -04:00
Jude Nelson
ce679a6ec3 Merge pull request #417 from blockstack/rc-0.14.2-circleCI
Running RC-0.14.2 Core API Liveness Tests on CircleCI
2017-05-09 11:08:56 -05:00
Aaron Blankstein
1160e2a7da adding -y to blockstack stop... 2017-05-09 11:30:23 -04:00
Aaron Blankstein
e1b15bb66d adding live tests and circle.yml for testing Core API Service on rc-0.14.2 2017-05-09 11:26:09 -04:00
Jude Nelson
bef526921e Merge branch 'rc-0.14.2' of https://github.com/blockstack/blockstack-core into rc-0.14.2 2017-05-08 18:40:10 -04:00
Jude Nelson
cdfb15ab33 tx_only is False if not given 2017-05-08 18:39:54 -04:00
Jude Nelson
0f2a70d7b5 use latest snapshot public key 2017-05-08 18:39:46 -04:00
Aaron Blankstein
e94914ab2e disabling circleCI on rc-0.14.2 for now 2017-05-08 18:28:19 -04:00
Jude Nelson
26be02254d Merge pull request #413 from kantai/regtest-with-portal
Changes to the integration testing which allow easier setup for portal testing.
2017-05-08 17:22:44 -05:00
Jude Nelson
3a1bb13d33 Merge pull request #414 from kantai/rc-0.14.2
Secret cli args weren't being processed when debug flag unset
2017-05-08 17:21:40 -05:00
Jude Nelson
eb1f0db0bc add blurb about testing the API for liveness 2017-05-08 16:24:47 -04:00
Jude Nelson
3a7d64ae5a better documentation on README.md (thanks to @sbaks0820's input) 2017-05-08 16:21:58 -04:00
Jude Nelson
c6405262a5 set server_host and server_port in environment if set_global is True 2017-05-08 15:43:46 -04:00
Aaron Blankstein
aaf01bdc41 fixes secret setting so that passed passwords work when not in --debug mode (re-exec code isn't called) 2017-05-08 15:32:52 -04:00
Jude Nelson
49477ffa95 remove needless deps 2017-05-05 16:24:19 -04:00
Jude Nelson
1a98efe91e use correct UTXO URL for blockstack_utxo driver 2017-05-05 15:02:15 -04:00
Jude Nelson
a95f005037 Add a route for / that points users to documentation. 2017-05-04 18:29:27 -04:00