Commit Graph

7210 Commits

Author SHA1 Message Date
Jude Nelson
755268865f cache bitcoind response for 10 minutes 2018-01-18 19:56:49 -05:00
Jude Nelson
9b0fd9d1fa remove dead code 2018-01-18 19:56:39 -05:00
Jude Nelson
ffe5fe0d47 Merge branch 'develop' into feature/clean-chainstate 2018-01-18 13:24:52 -05:00
Jude Nelson
910c058ad7 Merge pull request #696 from blockstack/feature/set-bitcoind-rpcbind
Adds a POST /v1/zonefile API endpoint
2018-01-18 13:24:27 -05:00
Jude Nelson
903a2544f2 load expected snapshots as json before sqlite3 2018-01-17 23:46:01 -05:00
Jude Nelson
c3484c0d7e bitcoind can reorder transactions. accomodate this 2018-01-17 22:31:57 -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
fe369cb62c don't sync the atlas db outside of virtualchain_hooks (since it just duplicates work) 2018-01-17 22:30:57 -05:00
Jack Zampolin
6553c48f9e Merge pull request #715 from OlivierBondu/fix_linux_protocol_handler
attempt at fixing the linux protocol handler
2018-01-17 16:27:39 -08:00
Jude Nelson
039f366cc7 don't care too much about noncanonical fields 2018-01-17 18:59:22 -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
59d4f7d026 when type-comparing, coerse unicode to string 2018-01-17 17:20:41 -05:00
Jude Nelson
5d6be3c65a check types in DID queries; make sure to fetch canonical representation of a name when comparing final name states to DID queries 2018-01-17 17:02:23 -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
2abfd4a5a1 preserve opcode in canonicalization 2018-01-17 17:00:44 -05:00
Jude Nelson
0e36eab0ea preorders don't have last_creation_op 2018-01-17 15:30:08 -05:00
Jude Nelson
b5a19ea46c use test framework's expected snapshots when starting atlas peers (helps test this functionality) 2018-01-17 15:29:49 -05:00
Jude Nelson
dbc07c6a72 pass global working dir to atlas simulator 2018-01-17 15:29:38 -05:00
Jude Nelson
8ed95cd48b preorders don't have last_creation_op 2018-01-17 15:29:24 -05:00
Jude Nelson
a869d03d0c extract snapshots from chainstate db as well as legacy snapshots JSON 2018-01-17 14:59:43 -05:00
Jude Nelson
742dc7c852 namespace_reveal doesn't have an op_fee. check for this 2018-01-17 14:19:17 -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
6d7f3ea2fb sanitize and remove all quirk fields from a name record before returning it 2018-01-17 14:16:42 -05:00
Olivier Bondu
e33ac4e700 attempt at fixing the linux protocol handler 2018-01-17 18:27:52 +01:00
Jude Nelson
4c6562b5c8 nulldata can be None if it isn't parseable 2018-01-17 00:30:53 -05:00
Jude Nelson
544f265cf0 ~/.blockstack-server 2018-01-17 00:15:42 -05:00
Jude Nelson
a60916dec2 os.path.expanduser 2018-01-17 00:14:34 -05:00
Jude Nelson
d4f62bf917 only test availability and validity of zone file in zone file directory. no longer care about storing data through blockstack_client 2018-01-17 00:09:09 -05:00
Jude Nelson
a097d4fb8d bring up to date with current tx stucture in virtualchain 2018-01-17 00:08:51 -05:00
Jude Nelson
1feb34687d use is_atlas_enabled(); pass atlasdb path on subdomain lookup 2018-01-17 00:08:33 -05:00
Jude Nelson
9149abfe51 update comment 2018-01-17 00:08:26 -05:00
Jude Nelson
d8396f0884 state engine stores namespace buckets as a string now 2018-01-16 18:50:11 -05:00
Jude Nelson
b8c9b3377c formatting 2018-01-16 18:49:58 -05:00
Jude Nelson
7d59e85e5a api sync with fast_snapshot 2018-01-16 18:49:50 -05:00
Jude Nelson
68858e40b8 typo 2018-01-16 18:49:41 -05:00
Jude Nelson
f0153c277c rework announce text to send an announcement via a zone file hash 2018-01-16 18:49:27 -05:00
Jude Nelson
116afadd8a this test is non-deterministic because it depends on the order in which bitcoind packs blocks 2018-01-16 18:49:11 -05:00
Jude Nelson
ba684f913c make this runnable in the test runner (i.e. only 100 iterations) 2018-01-16 18:48:57 -05:00
Jude Nelson
32f16e5f96 remvoe dead code 2018-01-16 18:48:48 -05:00