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

Bandwidth Accounting/Tokens/Trust cleanup #7809

Closed
Dmole opened this issue Jan 11, 2024 · 9 comments · Fixed by #7826, #7833 or #7835
Closed

Bandwidth Accounting/Tokens/Trust cleanup #7809

Dmole opened this issue Jan 11, 2024 · 9 comments · Fixed by #7826, #7833 or #7835
Assignees
Milestone

Comments

@Dmole
Copy link
Contributor

Dmole commented Jan 11, 2024

Describe the bug
In other bug reports it has been stated that bandwidth calculations are not used anymore,
but there are still many bits of code that do;

https://github.com/search?q=repo%3ATribler%2Ftribler+Bandwidth+Tokens&type=code

https://github.com/search?q=repo%3ATribler%2Ftribler%20bandwidth%20accounting&type=code

https://github.com/search?q=repo%3ATribler%2Ftribler+trust&type=code

To Reproduce
Look in code for what the UI is not sharing.

Expected behavior
Bandwidth calculations should not exist under any name.

Additional context
If there is some work in progress feature that is currently dead code take it off the main branch until it works well enough to show in the UI.

@drew2a
Copy link
Collaborator

drew2a commented Jan 11, 2024

@Dmole, thank you for reporting.

I'm not certain it can be classified as a bug since there's nothing dangerous or unintended in the application's behavior. It seems more like a candidate for refactoring. Also, I'm not sure if any of these strings would be visible in the UI.

Related:

@Dmole
Copy link
Contributor Author

Dmole commented Jan 12, 2024

I'm not sure if any of these strings would be visible in the UI.

The first file in the first link above is visible in the UI under Settings > Anonymity

@drew2a drew2a self-assigned this Jan 12, 2024
@drew2a drew2a added this to the 7.14.0 milestone Jan 12, 2024
@Dmole
Copy link
Contributor Author

Dmole commented Jan 16, 2024

It looks like the links in the OP still return some items that should be cleaned up.

@drew2a
Copy link
Collaborator

drew2a commented Jan 16, 2024

@Dmole, could you please provide the items that, in your opinion, should be removed? Not all items from the original post may need to be removed.

@Dmole
Copy link
Contributor Author

Dmole commented Jan 16, 2024

For example 1st link 2nd file "You can build trust by contributing bandwidth to the Tribler network."

Should be removed.

While not all strings show up in the UI, having dead code makes it hard to find the strings that do show up in the UI (as was demonstrated with "Settings > Anonymity").

@Dmole
Copy link
Contributor Author

Dmole commented Jan 17, 2024

That's progress but

For example 1st link 2nd file
"You can build trust by contributing bandwidth to the Tribler network."
Should be removed.

and other issues linked in the OP persist.

@drew2a
Copy link
Collaborator

drew2a commented Jan 17, 2024

@Dmole, please post here all the places you propose to remove, and we can discuss them in detail.

@Dmole
Copy link
Contributor Author

Dmole commented Jan 17, 2024

Looks like the string quoted in my last comment may have just been in a github cache.

Among the other files linked in the OP,
Please remove these files:

  1. draft-pouwelse-trustchain-00 never handled negative trust in a tamper proof way (,the channels are cert based, not really "accounting") and is no longer relevant to Tribler:
  1. "Start a crawler in the bandwidth accounting community" there is no longer any bandwidth accounting right?

Among the trust search results :

  1. There is no longer a "Trust Graph"
  1. "trustview" is no longer an endpint right?

@drew2a
Copy link
Collaborator

drew2a commented Jan 18, 2024

draft-pouwelse-trustchain-00 never handled negative trust in a tamper proof way (,the channels are cert based, not really "accounting") and is no longer relevant to Tribler:

As far as I understand, this document is still in use. @synctext, could you confirm?

"Start a crawler in the bandwidth accounting community" there is no longer any bandwidth accounting right?
https://github.com/Tribler/tribler/blob/main/scripts/crawler/run_crawler.py

This crawler is left as an example of how to write a crawler for Tribler. See the description of the file for more details.

There is no longer a "Trust Graph"
https://github.com/Tribler/tribler/blob/main/src/tribler/gui/i18n/pt_BR.ts#L2411

Confirmed. I'll remove it.

"trustview" is no longer an endpint right?
https://github.com/Tribler/tribler/edit/main/doc/restapi/introduction.rst

Confirmed. I'll remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment