Commit Graph

368 Commits

Author SHA1 Message Date
Jude Nelson
24704aceea Remove dead code 2015-09-15 22:07:33 -04:00
Jude Nelson
8051ad6556 Make db_commit return True if records actually changed. 2015-09-15 02:27:03 -04:00
Jude Nelson
f6735e9c56 Support TESTSET namespace pricing; make commit_* methods return True if
they actually changed anything (e.g. for recording changes caused by
expiration)
2015-09-15 02:26:25 -04:00
Jude Nelson
48a2fc557f Select and save default config values; better option name
transformations for user prompting.
2015-09-15 02:25:55 -04:00
Jude Nelson
b7124ce00c Redirect logfiles when daemonizing 2015-09-15 02:25:38 -04:00
Jude Nelson
2698e3b7bb PDF version of slides 2015-09-14 11:57:13 -04:00
Jude Nelson
40a2d80445 Add blockstack devops slides 2015-09-12 12:15:33 -04:00
Jude Nelson
36e4c4625f Make sure the pubkey we select matches the namespace revealer address 2015-09-11 13:28:33 -04:00
Jude Nelson
e262e53bc5 Cache the keyring once generated, so we don't waste time generating it
again
2015-09-11 12:27:13 -04:00
Jude Nelson
94bcc47809 Allow the name importer to derive a set of keys through which to do the
import.  The default number of keys is set to 300.  Update the code to
use the first imported name's sender's public key as the seed.
2015-09-11 11:51:58 -04:00
Jude Nelson
6881611277 Better daemonization (WIP), control the number of confirmations before
accepting a name
2015-09-11 11:51:30 -04:00
Jude Nelson
0ac272721d Stop the indexer as well as the twistd server on termination signals. 2015-09-10 10:54:34 -04:00
Jude Nelson
8d5e903a29 TEST: Separate broadcaster from utxo provider for imports 2015-09-09 22:17:21 -04:00
Jude Nelson
158e544cef Add [blockstore] ini header, to pick the utxo provider and the tx
broadcast provider endpoints
2015-09-09 22:17:00 -04:00
Jude Nelson
86de9ca70e Update comments 2015-09-09 19:30:32 -04:00
Jude Nelson
809e9baab0 Make the UTXO provider configurable, and support all of which are
provided in pybitcoin
2015-09-09 19:29:28 -04:00
Jude Nelson
551bb5dd89 Remove dead line of code 2015-09-09 19:29:18 -04:00
Jude Nelson
756ceb0046 Remove old CLI tool 2015-09-08 17:48:51 -04:00
Jude Nelson
16a8af3291 Prompt for bitcoin and chaincom details if there is no .ini file.
Supply defaults, and prompt if there are fields missing.
2015-09-08 17:34:38 -04:00
Jude Nelson
0be84c313a Remove gratuitous debugging 2015-09-08 17:34:26 -04:00
Jude Nelson
1df9ca8e16 Include port in default opts; fix bug in prefix-stripping and
prefix-restoring when prompting interactively
2015-09-08 16:36:53 -04:00
Jude Nelson
84416550f5 Don't use the name of a globally-scoped variable, for safety 2015-09-08 16:36:40 -04:00
Jude Nelson
30e9a77ee0 Enable production name pricing 2015-09-08 14:45:25 -04:00
Jude Nelson
a1202de300 Production namespace prices 2015-09-08 14:45:05 -04:00
Jude Nelson
563d8c0104 Lookup namespace API call; check lengths on name lookup 2015-09-08 14:44:46 -04:00
Jude Nelson
ed5a4e0052 Remove fee check for name import, since imports are free once the
namespace is defined.
2015-09-08 00:51:08 -04:00
Jude Nelson
d2a341d355 Use the dust fee for the change address; don't pay twice for it. 2015-09-08 00:50:24 -04:00
Jude Nelson
379429949a No burn address output in name import 2015-09-08 00:49:48 -04:00
Jude Nelson
664dbaf9ac No fee for imports 2015-09-08 00:49:35 -04:00
Jude Nelson
8a8ff02827 Disable name_import fee 2015-09-07 20:41:37 -04:00
Jude Nelson
fc65056738 Updated name pricing to use new namespace rules construction; fixed bug
in denying register/reveal when there are duplicate register/reveal
operations sent in the same block for the same name/namespace
2015-09-07 20:23:23 -04:00
Jude Nelson
c5b1e87246 Remove dead code 2015-09-07 20:23:07 -04:00
Jude Nelson
daf65ae626 Calculate fee in part by number of inputs (pay DEFAULT_DUST_FEE per
input)
2015-09-07 20:22:45 -04:00
Jude Nelson
b81476f40f New namespace_reveal arguments; don't include fees in name pricing
(since they're subject to the number of inputs in the transaction
anyway)
2015-09-07 20:22:16 -04:00
Jude Nelson
3dcb3de76e Updated field lengths and namespace constants 2015-09-07 20:21:53 -04:00
Jude Nelson
cf1c74945b Alternative reveal rules: put names into buckets by length, and set a
"floating-point" price per bucket (significand, exponent, multipler) and
discounts for non-alpha and non-vowel names.
2015-09-07 20:21:05 -04:00
Jude Nelson
d3379f5730 Fix #110 2015-09-06 17:47:57 -04:00
Jude Nelson
99620c2116 Remove old config parameters; initialized renewal dict to the *list* of
names that were renewed at a particular block.
2015-09-06 01:15:01 -04:00
Jude Nelson
f6c7c14d0e Load database for renew 2015-09-05 23:18:19 -04:00
Jude Nelson
402f14af55 Always reconnect to bitcoind when reindexing (fixes #107) 2015-09-05 15:43:15 -04:00
Jude Nelson
24532e1b45 Enforce minimum name cost of 10,000 satoshi for now 2015-09-04 19:28:29 -04:00
Jude Nelson
edba4ee633 Set minimum name cost, set max name length to 37 characters 2015-09-04 19:27:59 -04:00
Jude Nelson
12554bad49 Expand maximum name length to 37 characters 2015-09-04 19:27:33 -04:00
Jude Nelson
3b305e3e0e Set name quota to 25 2015-09-04 14:42:04 -04:00
Jude Nelson
b6f2c4acf6 Be sure to use the recipient's address when calculating a name preorder
hash, so we can remove preorders once names are registered.  Also, check
the recipient's quota on register in addition to the sender's quota on
preorder.  Emit a warning when we overwrite a name on NAME_IMPORT.  Log
bug-conditions where the name or namespace preorder hash is wrong.
2015-09-04 14:40:27 -04:00
Jude Nelson
f61133eef4 Minor fixes to name update 2015-09-03 18:02:11 -04:00
Jude Nelson
069c753759 Minor fixes to name transfer 2015-09-03 18:02:01 -04:00
Jude Nelson
52cd801a29 Minor fixes to preordering 2015-09-03 18:01:53 -04:00
Jude Nelson
2145f138a9 Minor bugfixes to registration 2015-09-03 18:01:40 -04:00
Jude Nelson
30aca33ce8 Bump reindex frequency and start block 2015-09-03 09:36:03 -04:00