Commit Graph

597 Commits

Author SHA1 Message Date
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
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
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
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
cdfb15ab33 tx_only is False if not given 2017-05-08 18:39:54 -04: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
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
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
Jude Nelson
8c72d4a93d add methods for manipulating txt records in a structured zonefile 2017-05-04 16:48:38 -04:00
Jude Nelson
7cdfaa151a add support for adding and removing TXT records (i.e. for Tor support) 2017-05-04 16:48:23 -04:00
Jude Nelson
0cb7faa9e9 add logger 2017-05-04 10:58:19 -04:00
Jude Nelson
e171f7c5ae make the insight_api driver print something more useful on UTXO connection failure 2017-05-03 14:45:48 -04:00
Jude Nelson
47365aac2a print name on hash mismatch 2017-05-02 22:52:38 -04:00
Aaron Blankstein
0431c5d783 left out sys import 2017-05-02 15:24:47 -04:00
Jude Nelson
112ea083a0 Merge pull request #390 from spankratov/rc-0.14.2
fixed typo in backend_set_wallet
2017-05-02 11:35:17 -05:00
Aaron
76e755f982 Merge pull request #408 from kantai/rc-0.14.2
fixing core api service whitespace issue on macOS
2017-05-02 12:17:36 -04:00
Jude Nelson
9f32190ceb update zone file wizard to set the ECDSA public key for a blockchain ID 2017-05-02 12:13:56 -04:00
Jude Nelson
225e1a08af constant-time string comparison for passwords 2017-05-02 11:52:37 -04:00
Jude Nelson
cab1a94ddd add constant-time string comparison for checking password equality 2017-05-02 11:51:58 -04:00
Jude Nelson
0dbb9908b3 when storing a public key to a zone file, make sure it's compressed 2017-05-02 11:51:35 -04:00