-
Notifications
You must be signed in to change notification settings - Fork 444
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
First Credit mining prototype #2064
Merged
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7226455
Channel boosting implementation
168f7cc
sessioncalling arg was removed a while ago.
bd87ab1
Updates for API changes
897cdff
Add missing __init__.py
d713895
Don't fail when a torrent not in the download list finishes.
9d3201b
Remove DOS newlines from BoostingManager modifications.
24ebb7b
WIP commit
2184356
WIP commit
b7010d8
Fix initial work in BoostingManager that cannot work
ardhipoetra a31b923
Revamped creditmining GUI
ardhipoetra 9a87521
Extract peerlist to its own function
ardhipoetra 6600773
Create function to translate peers into health
ardhipoetra d7d9ccf
Create holder in GUI if credit mining is not ready yet
ardhipoetra ae7576c
Start boosting manager if ready only
ardhipoetra 9b9c01a
Add dirdialog for convenience choosing source
ardhipoetra c2e894b
Prevent GUI to do task when quitting
ardhipoetra a33b4c7
Clean onexit in BoostingManager
ardhipoetra 6cc9d7d
Add and clean documentation in some functions needed
ardhipoetra 2310579
Add credit mining preferences by SessionConfig
ardhipoetra a85ab3c
Refactor policies, constant, and function to different file
ardhipoetra 66eb87f
Fix resume data to use configparser
ardhipoetra 57e8636
Add logger.conf, Delete bootstraptribler.txt and boostchannel.py
ardhipoetra b11fd65
Fix switch policy when loading config
ardhipoetra b9d1940
Credit mining testcase
ardhipoetra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Start boosting manager if ready only
in other words : - Reduce creditmining load at Tribler startup - prioritize other things first - Start credit mining module with a certain condition Squashed commits: - Prevent libtorrent 1.0.9 bug in piece_priority - Add more documentation in BoostingManager - Add logging feature - Enable RSS swarms async download - Update torrent swarm info only when necessary - Use taskmanager whenever possible
- Loading branch information
commit ae7576c5addd050455334dd13adf07991c5ce134
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -909,10 +909,10 @@ def create_peerlist_data(peer_info): | |
peer_dict['upload_only'] = bool(peer_info.flags & peer_info.upload_only) | ||
|
||
# add read and write state (check unchoke/choke peers) | ||
peer_dict['rstate_bw_limit'] = bool(peer_info.read_state & peer_info.bw_limit) | ||
peer_dict['wstate_bw_limit'] = bool(peer_info.write_state & peer_info.bw_limit) | ||
peer_dict['rstate_bw_network'] = bool(peer_info.read_state & peer_info.bw_network) | ||
peer_dict['wstate_bw_network'] = bool(peer_info.write_state & peer_info.bw_network) | ||
# peer_dict['rstate_bw_limit'] = bool(peer_info.read_state & peer_info.bw_limit) | ||
# peer_dict['wstate_bw_limit'] = bool(peer_info.write_state & peer_info.bw_limit) | ||
# peer_dict['rstate_bw_network'] = bool(peer_info.read_state & peer_info.bw_network) | ||
# peer_dict['wstate_bw_network'] = bool(peer_info.write_state & peer_info.bw_network) | ||
peer_dict['rstate'] = peer_info.read_state | ||
peer_dict['wstate'] = peer_info.write_state | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove some newlines here ;) |
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this code commented out?