Commit Graph

52 Commits

Author SHA1 Message Date
Jude Nelson
21ade7fe47 Off-by-one error 2015-09-17 19:19:26 -04:00
Jude Nelson
ad713ba70a Get names in order 2015-09-17 19:12:32 -04:00
Jude Nelson
da0e1ace05 Remove the need to report changes to virtualchain; add the db_serialize
implementation to serialize name records discovered in a block.
2015-09-15 22:10:48 -04:00
Jude Nelson
3249986e58 Update list of classes to import 2015-09-15 22:10:26 -04:00
Jude Nelson
b782c34a8d Remove blockstore iterator class (it is no longer needed by
virtualchain); remove the need for reporting state changes to
virtualchain.
2015-09-15 22:09:56 -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
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
551bb5dd89 Remove dead line of code 2015-09-09 19:29:18 -04:00
Jude Nelson
30e9a77ee0 Enable production name pricing 2015-09-08 14:45:25 -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
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
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
24532e1b45 Enforce minimum name cost of 10,000 satoshi for now 2015-09-04 19:28:29 -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
2145f138a9 Minor bugfixes to registration 2015-09-03 18:01:40 -04:00
Jude Nelson
1365958763 price_namespace 2015-09-01 16:37:30 -04:00
Jude Nelson
795bfa9cb1 price_namespace 2015-09-01 16:37:23 -04:00
Jude Nelson
b11491c1d2 Check name and namespace fees; preserve names that are revoked until
they expire; properly expire namespace preorders; remove dead code.
2015-08-31 18:09:39 -04:00
Jude Nelson
1ad04d8348 Find the burn fee from an operation, and forward it along in the
operation dict so the namedb can verify that names and namespaces are
paid for.
2015-08-31 18:09:09 -04:00
Jude Nelson
4da96856a0 NAMESPACE_REVEAL import 2015-08-25 17:47:37 -04:00
Jude Nelson
fe5484746a We don't always have a recipient address 2015-08-25 17:15:26 -04:00
Jude Nelson
b094b3099b Export NAME_IMPORT and NAME_TRANSFER methods 2015-08-24 18:11:52 -04:00
Jude Nelson
1904a82336 Parse, log, and commit NAME_IMPORTs 2015-08-24 18:11:38 -04:00
Jude Nelson
32b91045e1 Clearer enumeration of checks on logging operations; allow NAME_IMPORT;
do name and namespace pricing checks
2015-08-24 18:05:30 -04:00
Jude Nelson
fb70205b07 Expire old namespace preorders, old name preorders, and old partial
namespace imports.  Check each time we save the database.
2015-08-18 16:53:55 -04:00
Jude Nelson
623a349f9c Rename 'namespace define' to 'namespace reveal', and 'namespace begin'
to 'namespace ready'
2015-08-17 16:58:08 -04:00
Jude Nelson
2bc915faad A transaction can have multiple recipients (i.e. for transfers), so take
the first non-OP_RETURN one when we have a choice.
2015-08-17 12:07:47 -04:00
Jude Nelson
49996060bf Get transfers and revokes working 2015-08-17 12:07:28 -04:00
Jude Nelson
935a40709e Reload the database periodically, so we see the latest ops. 2015-08-17 02:16:55 -04:00
Jude Nelson
2d72839c38 Make persistent with flush() 2015-08-14 16:05:25 -04:00
Jude Nelson
baab17df49 Log where we load the DB from 2015-08-14 15:07:23 -04:00
Jude Nelson
aea5a99bd5 NAME_UPDATE import 2015-08-14 15:07:06 -04:00
Jude Nelson
63778909b4 Get NAMESPACE_BEGIN ops to work correctly 2015-08-13 16:57:09 -04:00
Jude Nelson
b6b0b204c9 Parse NAME_REVOKE; print out debugging info when we find an unparseable
nameop.
2015-08-11 17:28:12 -04:00
Jude Nelson
28cbd5c42a Fix typos found during testing 2015-08-11 17:27:54 -04:00
Jude Nelson
f9d17287f2 Switch to GPLv3; remove reliance on fees.py; do not try to force the
generation of a compressed public key; better logging in the
virtualchain hooks module.
2015-08-11 14:32:50 -04:00
Jude Nelson
e9c8111ddd WIP: Namedb: fix bugs and logic errors in preorder, register, update,
and namespace_preorder.
2015-08-11 14:31:53 -04:00
Jude Nelson
47ecd65c37 In-progress refactoring: using virtualchain with a state engine.
* lib --> lib.old (depricating old name and storage operations)
* lib: new state-engine name operations logic, with virtualchain
* remove dead code
* add patch for coinkit
* remove dependencies on coinkit (in the new lib/)
Much more to do--will eventually remove lib.old, and will migrate
some of this code over to blockstore-client.
2015-08-04 02:25:39 -04:00
Jude Nelson
80f8fc41b0 Merge branch 'jude' of https://github.com/namesystem/blockstore into jude 2015-07-28 12:03:02 -04:00
Jude Nelson
b14c51fc26 Document the namedb construction process 2015-07-28 12:01:56 -04:00
Ubuntu
0ecf682bfc Bugfixes, bugfixes, bugfixes, prototype! 2015-07-27 12:12:53 +00:00
Jude Nelson
31512f0bc6 Branch off Jude's work on adding storage and namespacing. 2015-07-26 06:34:20 -04:00
Jude Nelson
f24c32a366 Add a method to assemble all nameops from a sequence of blocks and their
associated transactions.  This is to be used in conjunction with the new
parallel block indexing algorithm.
2015-05-29 17:15:11 -04:00
Ryan Shea
a31d784945 show errors when a taken name is trying to be preordered/registered 2015-02-16 19:11:12 -05:00