Skip to content

Commit

Permalink
Fixed tunnel helper script
Browse files Browse the repository at this point in the history
The set_testnet option got removed, and TrustChain is not used anymore.
  • Loading branch information
devos50 committed Oct 27, 2020
1 parent 6dd092a commit c7a557d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/tribler-core/run_tribler_headless.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ async def signal_handler(sig):
config.set_ipv8_bootstrap_override(options.ipv8_bootstrap_override)

if options.testnet:
config.set_testnet(True)
config.set_tunnel_testnet(True)
config.set_chant_testnet(True)
config.set_bandwidth_testnet(True)

self.session = Session(config)
try:
Expand Down
5 changes: 1 addition & 4 deletions src/tribler-core/run_tunnel_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async def start(self, options):
config.set_dht_enabled(True)
config.set_tunnel_community_exitnode_enabled(bool(options.exit))
config.set_popularity_community_enabled(False)
config.set_testnet(bool(options.testnet))
config.set_tunnel_testnet(bool(options.testnet))
config.set_chant_enabled(False)
config.set_bootstrap_enabled(False)

Expand Down Expand Up @@ -163,9 +163,6 @@ async def start(self, options):
# We set this after Tribler has started since the tunnel_community won't be available otherwise
self.session.tunnel_community.reject_callback = self.on_circuit_reject

# Tunnel helpers store more TrustChain blocks
self.session.trustchain_community.settings.max_db_blocks = 5000000

self.tribler_started()

async def stop(self):
Expand Down

0 comments on commit c7a557d

Please sign in to comment.