crawl at a normal rate when in the public testnet

This commit is contained in:
Jude Nelson
2018-04-30 00:04:50 -04:00
parent 6430091e49
commit 6c6d3ee763
2 changed files with 2 additions and 1 deletions

View File

@@ -98,7 +98,7 @@ if os.environ.get("BLOCKSTACK_ATLAS_MIN_PEER_HEALTH") is not None:
if os.environ.get("BLOCKSTACK_ATLAS_NUM_NEIGHBORS") is not None:
NUM_NEIGHBORS = int(os.environ.get("BLOCKSTACK_ATLAS_NUM_NEIGHBORS"))
if BLOCKSTACK_TEST:
if BLOCKSTACK_TEST and not os.environ['BLOCKSTACK_PUBLIC_TESTNET']:
PEER_CRAWL_NEIGHBOR_WORK_INTERVAL = 1
PEER_HEALTH_NEIGHBOR_WORK_INTERVAL = 1
PEER_CRAWL_ZONEFILE_WORK_INTERVAL = 1

View File

@@ -28,6 +28,7 @@ TEST ENV BLOCKSTACK_EPOCH_3_END_BLOCK 684
TEST ENV BLOCKSTACK_EPOCH_2_NAMESPACE_LIFETIME_MULTIPLIER 1
TEST ENV BLOCKSTACK_EPOCH_3_NAMESPACE_LIFETIME_MULTIPLIER 1
TEST ENV BLOCKSTACK_EPOCH_4_NAMESPACE_LIFETIME_MULTIPLIER 1
TEST ENV BLOCKSTACK_PUBLIC_TESTNET 1
"""
import testlib