Commit Graph

812 Commits

Author SHA1 Message Date
Jude Nelson
3b4bdc1718 remove blockstack_client in a few places; be more judicious about how we compare subdomain databases 2018-02-02 18:41:22 -05:00
Jude Nelson
20097b00df make sure that when we give zone files sequentially, that subdomain updates spanning different names' zone files are still processed in the right order 2018-01-30 17:51:48 -05:00
Jude Nelson
dbe1dd78b4 verify that when we reorganize a subdomain's history, that regardless of which zone file contains its updates, we always rebuild its history off of the earliest-discovered name transfer 2018-01-30 17:51:20 -05:00
Jude Nelson
7361eb012e when reorganizing a subdomain's history, make sure that if an earlier transfer gets discovered, we invalidate the subsequent history and build off of the earliest transfer 2018-01-30 17:50:54 -05:00
Jude Nelson
c9732038ed verify that no matter which zone file a subdomain arrives in, we correctly reorganize its history to reflect the earliest valid sequence numbers for each update 2018-01-30 17:50:21 -05:00
Jude Nelson
3d8fb3d44a test that zone files that arrive out of order cause the subdomains' histories to be reorganized internally, selecting the earliest records with a given sequence 2018-01-30 17:49:46 -05:00
Jude Nelson
5e58703099 test that the arrival of multiple subdomain updates with the same sequence number selects the earliest valid one 2018-01-30 17:49:14 -05:00
Jude Nelson
8585237e29 verify that we do not create zone files until the initial zone file that created it arrives. verify that this works when subdomains are updated across domain names 2018-01-30 17:48:48 -05:00
Jude Nelson
33ab09f3ac test subdomain processing works when the initial subdomain records get lost, but subsequent ones arrive. verify that they are not processed until the initial subdomain record is discovered 2018-01-30 17:48:17 -05:00
Jude Nelson
cf06b77bb9 test subdomain db reindexing 2018-01-30 17:48:06 -05:00
Jude Nelson
43c5065478 verify that we cannot accept subdomain creation from names for which we do not have all zone files 2018-01-30 17:47:45 -05:00
Jude Nelson
90a32b7627 test when zone files arrive in different orders, leaving holes in the history. test that this also works when subdomain records are spread across multiple domains 2018-01-30 17:47:22 -05:00
Jude Nelson
4a3b19515e test subdomain processing when some zone files arrive but others do not, leaving holes in the history. 2018-01-30 17:46:56 -05:00
Jude Nelson
6a97e023ec test subdomain processing when zone files arrive in reverse order, and subdomains are spread across multiple domains 2018-01-30 17:46:38 -05:00
Jude Nelson
7ffc0ad97e test subdomain processing when zone files arrive in batches, and subdomain records are on different zone files than those belonging to their stem names 2018-01-30 17:45:53 -05:00
Jude Nelson
cf912947a8 test that we will "discover" zone files even if they're already present 2018-01-30 17:45:33 -05:00
Jude Nelson
8ba80dbd88 add method to reindex subdomains and verify that they are consistent with the subdomain db calculated by discovering zonefiles 2018-01-30 17:44:30 -05:00
Jude Nelson
46e544088d make sure we can reindex from scratch 2018-01-30 17:44:20 -05:00
Jude Nelson
2f8ffca1da make sure we can reindex from scratch 2018-01-30 17:44:09 -05:00
Jude Nelson
643fc62f23 make sure we can reindex from scratch 2018-01-30 17:43:50 -05:00
Jude Nelson
db95a49021 make sure the atlasdb and subdomaindb are preserved on fastsync 2018-01-30 17:43:35 -05:00
Jude Nelson
79fafe9b32 add some initial subdomain tests, including varying the quantity of subdomain updates and the order in which they arrive 2018-01-29 19:12:21 -05:00
Jude Nelson
36485f8a90 use blockstack's libraries for zonefile verification 2018-01-29 19:11:27 -05:00
Jude Nelson
b8972060ba test for having blockstackd report when its block information is stale 2018-01-22 19:12:31 -05:00
Jude Nelson
8633963c7a API sync 2018-01-22 19:12:22 -05:00
Jude Nelson
bdda580e04 TODO: do safety checks when exceeding quota 2018-01-22 16:57:20 -05:00
Jude Nelson
ee67be4987 test the name-transfer consensus hash quirk for various permutations of operations 2018-01-22 15:39:00 -05:00
Jude Nelson
df9c5b6a8f make sure that we check that the consensus hash quirk for name-transfers is preserved 2018-01-22 15:38:37 -05:00
Jude Nelson
caa59d0039 remove now-unnecessary (and incorrect) test conditions 2018-01-21 00:58:40 -05:00
Jude Nelson
791ca93188 fix name-transfer quirk test to reflect the desired behavior 2018-01-20 16:18:19 -05:00
Jude Nelson
6501d2bffd check name-transfer quirk to make sure we're using the right previous consensus hash when calculating the snapshot of the operation 2018-01-19 17:14:22 -05:00
Jude Nelson
a405519dd0 removea dead code 2018-01-19 17:14:16 -05:00
Jude Nelson
ffe5fe0d47 Merge branch 'develop' into feature/clean-chainstate 2018-01-18 13:24:52 -05:00
Jude Nelson
c3484c0d7e bitcoind can reorder transactions. accomodate this 2018-01-17 22:31:57 -05:00
Jude Nelson
039f366cc7 don't care too much about noncanonical fields 2018-01-17 18:59:22 -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
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
742dc7c852 namespace_reveal doesn't have an op_fee. check for this 2018-01-17 14:19:17 -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
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
ef384f5164 use blockstack_put_zonefile() to save zonefiles to atlas; update atlas network sim calls with working_dir 2018-01-16 16:37:50 -05:00