Commit Graph

201 Commits

Author SHA1 Message Date
Aaron Blankstein
3f73bae398 propagate min payment confs setting from the PREORDER op to REG/UPDATE 2017-07-04 14:46:42 -04:00
Aaron Blankstein
f5863ccef2 registrations in 6 confirmations => 4 confs for preorder, 1 for register, 1 for update... now to test it with a local bsk node and see if utxo.blockstack.org shouts at me 2017-07-03 19:18:09 -04:00
Aaron Blankstein
be48e1d227 registrar now skips issuing a TRANSFER if the name registration was done on behalf of the current owner. added test case for this. 2017-07-01 17:45:05 -04:00
Aaron Blankstein
a9eefbb5fa make the errors component of the info response only appear if there IS an error + make the integration test check for the proper error returns 2017-06-30 16:25:32 -04:00
Aaron Blankstein
f1d05dcfde Merge branch 'rc-0.14.2-registrar-err-msgs' into rc-0.14.3 2017-06-29 18:59:42 -04:00
Aaron Blankstein
4a39fadb83 fix for issue 469 part 1 + integration test for it. blockstack regtest was killing itself on a bad tx response from bitcoind. The patch also fixes a value_hash dict keyerror at the end of certain testcase passes 2017-06-29 14:17:36 -04:00
Jude Nelson
1bda677ca3 fix error formatting 2017-06-26 18:01:28 -04:00
Jude Nelson
aa1bfadb28 Merge branch 'rc-0.14.2' 2017-06-26 17:32:09 -04:00
Jude Nelson
3f136782ee expose ConcurrencyViolationException 2017-06-25 18:46:19 -04:00
Jude Nelson
8b19683e86 parallelization improvements to the indexing system; don't allow concurrent index_setup() calls 2017-06-25 18:45:56 -04:00
Aaron Blankstein
617c027936 merging 2017-06-23 11:32:21 -04:00
Jude Nelson
8e8365a6df cache index pages by driver, and then by index bucket (not by blockchain ID). Also, make sure accesses are thread-safe 2017-06-21 22:42:10 -04:00
Jude Nelson
51c72d66b5 bugfix on error path 2017-06-20 23:53:32 -04:00
Aaron Blankstein
ff63b464c0 fix doubling of the dust fee 2017-06-20 10:46:39 -04:00
Aaron Blankstein
2efaddaa08 merging in from rc-0.14.2 2017-06-20 09:59:47 -04:00
Aaron Blankstein
12cafce2d1 fix arguments to make_subsidizable 2017-06-20 06:15:16 -04:00
Jude Nelson
18e0c06a23 need queue_removeall 2017-06-19 23:25:17 -04:00
Jude Nelson
ced5e6f647 fix stack overflow on getattr() with UTXOWrapper 2017-06-19 23:25:01 -04:00
Jude Nelson
ba99d07ee9 remove commented code 2017-06-19 23:24:51 -04:00
Aaron Blankstein
71980ac9c4 added missing import to registrar 2017-06-19 22:19:23 -04:00
Aaron Blankstein
890766cad7 initial fix for too-low fee estimation. will test tonight with a registration from browser 2017-06-19 18:18:20 -04:00
Jude Nelson
07e88d81e0 add driver classes so we can select drivers by capabilities instead of by name. Also, add an index_check_setup() method to avoid re-building an index 2017-06-18 22:06:49 -04:00
Jude Nelson
73e5d94d91 expose getting the index manifest URL 2017-06-18 22:06:34 -04:00
Jude Nelson
e22e0de3fd Merge remote-tracking branch 'origin/rc-0.14.2-portal' into rc-0.14.2 2017-06-16 18:43:40 -04:00
Jude Nelson
99afdb165d possible that there are not UTXOs 2017-06-16 18:40:07 -04:00
Jude Nelson
0f0e05be15 subsidize, not subsidized 2017-06-16 18:39:56 -04:00
Jude Nelson
a8271d7fc9 include BLOCKSTACK_DEBUG 2017-06-16 18:39:38 -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
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
9c8d9bdf38 remove unneeded imports 2017-06-15 11:27:10 -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
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
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
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
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