Commit Graph

105 Commits

Author SHA1 Message Date
Jude Nelson
58604448fd Merge branch 'master' into develop 2018-07-06 14:08:31 -04:00
Jude Nelson
01ef6b022b de-lint; version bump 2018-07-06 14:04:09 -04:00
Jude Nelson
f9f71996ae this shouldn't be here anyway 2018-05-03 11:26:52 -04:00
Jude Nelson
d62a2b673e temporarily remove the token system (will restore later) 2018-04-24 16:36:06 -04:00
Jude Nelson
743d83ec89 temporarily remove the token system (will restore later) 2018-04-24 16:35:54 -04:00
Jude Nelson
ac3dc9e0da temporarily remove the token system (will restore later) 2018-04-24 16:35:44 -04:00
Jude Nelson
b06a8ec7a6 temporarily remove the token system (will restore later) 2018-04-24 16:35:36 -04:00
Jude Nelson
a30b51ba8e temporarily remove the token system (will restore later) 2018-04-24 16:35:22 -04:00
Jude Nelson
02f7b9012c temporarily remove the token system (will restore later) 2018-04-24 16:34:32 -04:00
Jude Nelson
9513f5d672 check that the name is valid in register/renewal (we already do this implicitly through the check() method, but we should do it explicitly for clarity) 2018-04-23 16:16:49 -04:00
Jude Nelson
cdf97d02ba rename some columns for tokentransfer so they're consistent with the name_records table 2018-04-19 19:06:40 -04:00
Jude Nelson
438ec5c071 note on state_create_put_preorder() 2018-04-19 19:06:31 -04:00
Jude Nelson
8698e660c6 make sure that we keep the token fee as a string when we go to store it in the name db 2018-04-19 19:06:12 -04:00
Jude Nelson
f028e108df small bugfixes 2018-04-15 22:37:20 -04:00
Jude Nelson
16744ed3a8 make all check() failures log as a warning, instead of as debug 2018-04-13 19:18:11 -04:00
Jude Nelson
f59b63b6b7 remvoe dead code; patch in TOKEN_TRANSFER callbacks 2018-04-13 19:17:53 -04:00
Jude Nelson
a07d932074 add TOKEN_TRANSFER opcode implementation 2018-04-13 19:17:40 -04:00
Jude Nelson
1f93bd3c72 for name_import, set the op_fee field to the price of the name *only* if the name's namespace is priced in BTC. Otherwise, set it to 0, and set the token_fee field to the price of the name 2018-04-03 19:00:44 -04:00
Jude Nelson
9e1e46a366 fix decoding bug 2018-04-03 18:00:31 -04:00
Jude Nelson
3579d59274 only expect tokens to be burned in a NAME_PREORDER if the OP_RETURN provides them 2018-04-03 18:00:09 -04:00
Jude Nelson
60c24e5c04 update register to verify that the preorder burned the right token
update renew to require token burns if the namespace has a token
2018-03-22 19:22:30 -04:00
Jude Nelson
55d74edab9 update preorder to allow the sender to burn STACKs instead of BTC 2018-03-22 19:21:48 -04:00
Jude Nelson
867834b409 ensure that a namespace preorder paid the right amount of STACKs when it is revealed (but only if we're in the STACKs epochs) 2018-03-22 19:21:25 -04:00
Jude Nelson
584293fc8a a namespace-preorder can include an 8-byte field of the number of STACKs it must burn. enforce STACKs burning exclusively (next epoch!) 2018-03-22 19:20:45 -04:00
Jude Nelson
7e9141bb09 remove the "typecast" semantics of op_check 2018-03-22 19:20:21 -04:00
Jude Nelson
e64fc049cc remove dead code 2018-02-10 16:36:33 -05:00
Jude Nelson
b66ff92afa improve name-transfer consensus hash quirk 2018-01-22 17:54:35 -05:00
Jude Nelson
f63f779abd completed TODO item 2018-01-22 15:38:13 -05:00
Jude Nelson
f16515e613 document the name-transfer consensus hash quirk better, and fix a bug in the case of multiple consecutive name-transfers 2018-01-22 15:37:52 -05:00
Jude Nelson
38cf56fdcd remove dead code 2018-01-21 00:58:29 -05:00
Jude Nelson
a9a002eee5 remove dead code 2018-01-21 00:58:15 -05:00
Jude Nelson
a4a9e29295 no longer need to save transfer_consensus_hash 2018-01-20 16:17:59 -05:00
Jude Nelson
fd91a265a0 attempt to fix name-transfer consensus hash quirk, and document real-world examples where it shows up 2018-01-20 16:17:34 -05:00
Jude Nelson
4d965d9062 remove dead code 2018-01-19 15:30:30 -05:00
Jude Nelson
18bbaa183a apply transfer consensus hash quirk 2018-01-19 15:14:18 -05:00
Jude Nelson
ce965baf2e verify that the consensus hash is valid, and preserve the one we need to snapshot separately 2018-01-19 15:13:57 -05:00
Jude Nelson
711e11df0b fix op_canonicalize_quirks to preserve op_fee float/int based on current last creation op by default (deferring to previous db record's last creation op and op_fee values only when needed) 2018-01-17 17:01:35 -05:00
Jude Nelson
0e36eab0ea preorders don't have last_creation_op 2018-01-17 15:30:08 -05:00
Jude Nelson
a955c775cc last_creation_op 2018-01-17 14:19:06 -05:00
Jude Nelson
af775a606e last_creation_op 2018-01-17 14:18:56 -05:00
Jude Nelson
eaf1c6c9cd debug output for consensus hash quirk in name transfer 2018-01-17 14:18:44 -05:00
Jude Nelson
84d91eb3e0 add code to preserve name record quirks 2018-01-17 14:18:24 -05:00
Jude Nelson
f8ded9884a rework announce so that you can only send an announcement from a previously-sent zone file 2018-01-16 18:48:28 -05:00
Jude Nelson
b1e1846630 fix up name_import's find-previous logic to just ask the DB 2018-01-14 15:52:13 -05:00
Jude Nelson
2705d59e1e remove all restore_delta() and snv_consensus_extras() code, and remove all dependence on blockstack_client from our operations. Also remove deprecated state_*() helpers that had been required for propagating ancilliary operation state to the database, i.e. in order to ensure that name operations' histories could be rewound. This is now handled automatically with a better database schema. 2018-01-12 18:33:04 -05:00
Jude Nelson
41c8693bae now that restore_delta() and snv_consensus_extras() and BACKUP_FIELDS are no longer required, remove all ancilliary ops_*() methods that are used to query and manipulate them. 2018-01-12 18:32:35 -05:00
Jude Nelson
effc2d6db3 a NAME_REGISTRATION/NAME_RENEWAL's burn address must go to a v2 namespace's address for the first year (fee collection period) of its existence, starting from its reveal block. after that, fees go to the null burn address (to discourage squatting or gratuitous namespace registration) 2017-10-04 00:03:54 -04:00
Jude Nelson
5d0bcbce19 plug DoS problem whereby a namespace can be preordered by a non-p2pkh script (this is allowed; this fix stops nodes from crashing when it happens) 2017-10-03 13:07:20 -04:00
Jude Nelson
b8f340c3a1 preserve sender_pubkey across renewal 2017-10-01 14:37:45 -04:00
Jude Nelson
4e579bdbed fix debug output on burn fee 2017-09-29 18:09:58 -04:00