Commit Graph

428 Commits

Author SHA1 Message Date
Jude Nelson
06cfae1aaa ports 6264 and 16264 don't use ssl 2018-01-19 17:33:43 -05:00
Jude Nelson
4d965d9062 remove dead code 2018-01-19 15:30:30 -05:00
Jude Nelson
5367ca368e remove consensus import 2018-01-19 15:30:21 -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
df8aba81b0 slightly better docs 2018-01-19 15:13:25 -05:00
Jude Nelson
1de3e01037 on name transfers, verify that the transfer consensus hash quirk is applied before snapshotting 2018-01-19 15:13:03 -05:00
Jude Nelson
f13ab07766 only run op_canonicalize_quirks() once on an operation, and eagerly filter out extra data (e.g. transient quirk-related data) on a state-transition 2018-01-19 15:12:20 -05:00
Jude Nelson
3e770c6427 fix url_to_host_port() for cases where we add a schema to the URL 2018-01-18 19:57:25 -05:00
Jude Nelson
f0e19e81ea average seconds per block 2018-01-18 19:57:13 -05:00
Jude Nelson
9af251826b add missing kw values 2018-01-18 19:57:00 -05:00
Jude Nelson
9b0fd9d1fa remove dead code 2018-01-18 19:56:39 -05:00
Jude Nelson
066ba602c9 take an optional end-block when syncing zonefiles (since we can be doing this while indexing) 2018-01-17 22:31:37 -05:00
Jude Nelson
5f7e6c68d2 sync the atlas db with operation(s) we just committed 2018-01-17 22:31:19 -05:00
Jude Nelson
723e4b6b35 restore lock on atlasdb to serialize ops 2018-01-17 18:59:08 -05:00
Jude Nelson
4302c958d7 whitespace 2018-01-17 18:59:00 -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
b8bd31f0f3 expect returned db record to have all consensus fields 2018-01-17 17:01:18 -05:00
Jude Nelson
822127dee3 return merged record on state transition, and canonicalize it and preserve quirks 2018-01-17 17:00:59 -05:00
Jude Nelson
0e36eab0ea preorders don't have last_creation_op 2018-01-17 15:30:08 -05:00
Jude Nelson
8ed95cd48b preorders don't have last_creation_op 2018-01-17 15:29:24 -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
72a04eb734 check for serialization quirks before commiting a new name record 2018-01-17 14:18:06 -05:00
Jude Nelson
0e5d1822c8 take canonicalized records (with quirks) from the namedb_...() methods, instead of trying to do it in this layer 2018-01-17 14:17:38 -05:00
Jude Nelson
7e7e8e6d39 have all state-commit operations calculate a record's canonical form, *with* all quirks built in 2018-01-17 14:17:15 -05:00
Jude Nelson
a3fcc925a0 list all name operations 2018-01-17 14:17:03 -05:00
Jude Nelson
9149abfe51 update comment 2018-01-17 00:08:26 -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
c3c0659fd5 typo 2018-01-16 18:48:19 -05:00
Jude Nelson
9b4d08f845 remove the global atlasdb lock and rely instead on exponential back offs on lock contention. let sqlite3 handle locking 2018-01-16 18:47:52 -05:00
Jude Nelson
95427874a2 add method to set up the db 2018-01-16 16:36:08 -05:00
Jude Nelson
a5e23bfb45 when getting a name or namespace at a particular time under the condition that it must not be expired, don't return None if the name/namespace hadn't been registered/revealed at the given block height. The caller may be expecting a preorder 2018-01-16 16:35:34 -05:00
Jude Nelson
faca96fd51 missing cursor instantiation 2018-01-16 16:35:23 -05:00
Jude Nelson
c98e83bb1d typos and api sync 2018-01-16 16:35:14 -05:00
Jude Nelson
e93b576512 get_version_parts missing 2018-01-16 16:35:01 -05:00
Jude Nelson
6b331b9d2b fix imports 2018-01-16 16:34:51 -05:00
Jude Nelson
dea1d0ca85 missing self. 2018-01-16 16:34:41 -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
0d6bff034c typo: get a cursor correctly 2018-01-14 15:52:00 -05:00
Jude Nelson
5f2671e728 must_equal constraints must include all public key columns (TODO: extract from DB schema) 2018-01-14 15:51:39 -05:00
Jude Nelson
145661c16b import hex_hash160 2018-01-13 23:51:07 -05:00
Jude Nelson
a64f4019c0 expose getting all namespace preorders; fix typo 2018-01-13 23:50:35 -05:00
Jude Nelson
6e3078b34e add back getting all namespace preorders; fix offset pagination for quering name history 2018-01-13 23:50:14 -05:00
Jude Nelson
16607e1a30 addresses can be 35 bytes 2018-01-13 23:49:57 -05:00
Jude Nelson
c7cfed891f pass constraints-ignored hints to state-creation 2018-01-13 22:54:07 -05:00
Jude Nelson
9d64dc091a do either an INSERT or an UPDATE, depending on whether or not we're preorder/registering or re-preordering/registering. Also, tighten the input validation logic to ensure that each state-create and state-transition op data contains both the history ID (name or namespace) as well as the block number (i.e. all column data that goes into the table's primary key) 2018-01-13 22:52:53 -05:00
Jude Nelson
785de7bccb add utility methods from blockstack_client, like serializing an atlas zone file inventory message to a string and parsing host:port strings. This cuts dependency on blockstack_client 2018-01-12 18:36:55 -05:00