Skip to content

Commit bab07be

Browse files
authored
Update routes.py
Patch for error on Settings | Pools page encountered by those without Chives container.
1 parent 50559f5 commit bab07be

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

web/routes.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,12 @@ def settings_pools():
313313
p.send_request(selected_fullnode, selected_blockchain, launcher_ids, choices, pool_urls, wallet_nums, current_pool_urls)
314314
pool_configs = p.get_pool_configs()
315315
fullnodes_by_blockchain = worker.get_fullnodes_by_blockchain()
316+
poolable_blockchains = []
317+
for pb in po.POOLABLE_BLOCKCHAINS:
318+
if pb in fullnodes_by_blockchain:
319+
poolable_blockchains.append(pb)
316320
return render_template('settings/pools.html', global_config=gc, fullnodes_by_blockchain=fullnodes_by_blockchain,
317-
pool_configs=pool_configs, blockchains=po.POOLABLE_BLOCKCHAINS, selected_blockchain=selected_blockchain)
321+
pool_configs=pool_configs, blockchains=poolable_blockchains, selected_blockchain=selected_blockchain)
318322

319323
@app.route('/settings/config', defaults={'path': ''})
320324
@app.route('/settings/config/<path:path>')

0 commit comments

Comments
 (0)