Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ipv8 to the version 2.10 #7285

Merged
merged 3 commits into from
Jan 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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