Skip to content

Commit

Permalink
Merge pull request #7285 from Tribler/feature/update_ipv8
Browse files Browse the repository at this point in the history
Update `ipv8` to the version `2.10`
  • Loading branch information
drew2a authored Jan 24, 2023
2 parents b72a8b7 + 5cac6fb commit 87916f7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion requirements-core.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ service-identity==21.1.0
yappi==1.4.0
yarl==1.7.2 # keep this dependency higher than 1.6.3. See: https://github.com/aio-libs/yarl/issues/517
bitarray==2.5.1
pyipv8==2.8.0
pyipv8==2.10.0
libtorrent==1.2.15
file-read-backwards==2.0.0
Brotli==1.0.9 # to prevent AttributeError on macOs: module 'brotli' has no attribute 'error' (in urllib3.response)
2 changes: 0 additions & 2 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,4 @@ freezegun==1.2.1
coverage==6.3.2
looptime==0.2

asynctest==0.13.0 # this library has to be installed to properly work with ipv8 TestBase.

scipy==1.10.0
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@ def should_join_circuit(self, create_payload, previous_node_address):
return balance_future

@unpack_cell(BalanceRequestPayload)
def on_balance_request_cell(self, source_address, payload, _):
def on_balance_request_cell(self, _, payload, __):
if self.request_cache.has("create", payload.identifier):
request = self.request_cache.get("create", payload.identifier)
forwarding_relay = RelayRoute(request.from_circuit_id, request.peer)
self.send_cell(forwarding_relay.peer, RelayBalanceRequestPayload(forwarding_relay.circuit_id))
elif self.request_cache.has("retry", payload.identifier):
elif self.request_cache.has("retry", payload.circuit_id):
self.on_balance_request(payload)
else:
self.logger.warning("Circuit creation cache for id %s not found!", payload.circuit_id)
Expand Down
2 changes: 1 addition & 1 deletion src/tribler/core/tests/test_search_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def test_title_rank():

def test_item_rank():
item = dict(name="abc", num_seeders=10, num_leechers=20)
assert item_rank("abc", item) == pytest.approx(0.81978445)
assert item_rank("abc", item) == pytest.approx(0.819784)


def test_find_word():
Expand Down

0 comments on commit 87916f7

Please sign in to comment.