diff --git a/lbry/wallet/server/session.py b/lbry/wallet/server/session.py index 77e9bdcf6..d343bb2f3 100644 --- a/lbry/wallet/server/session.py +++ b/lbry/wallet/server/session.py @@ -863,7 +863,7 @@ class LBRYElectrumX(SessionBase): 'donation_address': env.donation_address, 'daily_fee': env.daily_fee, 'hash_function': 'sha256', - 'trending_algorithm': env.trending_algorithms + 'trending_algorithm': env.trending_algorithms[0] } async def server_features_async(self): diff --git a/tests/integration/blockchain/test_network.py b/tests/integration/blockchain/test_network.py index 6f87cdc37..95400e321 100644 --- a/tests/integration/blockchain/test_network.py +++ b/tests/integration/blockchain/test_network.py @@ -30,7 +30,9 @@ class NetworkTests(IntegrationTestCase): 'payment_address': '', 'donation_address': '', 'daily_fee': '0', - 'server_version': lbry.__version__}, await self.ledger.network.get_server_features()) + 'server_version': lbry.__version__, + 'trending_algorithm': 'zscore', + }, await self.ledger.network.get_server_features()) await self.conductor.spv_node.stop() payment_address, donation_address = await self.account.get_addresses(limit=2) await self.conductor.spv_node.start( @@ -54,7 +56,9 @@ class NetworkTests(IntegrationTestCase): 'payment_address': payment_address, 'donation_address': donation_address, 'daily_fee': '42', - 'server_version': lbry.__version__}, await self.ledger.network.get_server_features()) + 'server_version': lbry.__version__, + 'trending_algorithm': 'zscore', + }, await self.ledger.network.get_server_features()) class ReconnectTests(IntegrationTestCase):