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

First Credit mining prototype #2064

Merged
merged 24 commits into from
Jun 28, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7226455
Channel boosting implementation
Oct 9, 2013
168f7cc
sessioncalling arg was removed a while ago.
Aug 18, 2015
bd87ab1
Updates for API changes
Aug 18, 2015
897cdff
Add missing __init__.py
Aug 18, 2015
d713895
Don't fail when a torrent not in the download list finishes.
Aug 18, 2015
9d3201b
Remove DOS newlines from BoostingManager modifications.
Aug 18, 2015
24ebb7b
WIP commit
Aug 24, 2015
2184356
WIP commit
Aug 28, 2015
b7010d8
Fix initial work in BoostingManager that cannot work
ardhipoetra Jun 27, 2016
a31b923
Revamped creditmining GUI
ardhipoetra Jun 27, 2016
9a87521
Extract peerlist to its own function
ardhipoetra Mar 18, 2016
6600773
Create function to translate peers into health
ardhipoetra Jun 27, 2016
d7d9ccf
Create holder in GUI if credit mining is not ready yet
ardhipoetra Jun 27, 2016
ae7576c
Start boosting manager if ready only
ardhipoetra Jun 27, 2016
9b9c01a
Add dirdialog for convenience choosing source
ardhipoetra Jun 27, 2016
c2e894b
Prevent GUI to do task when quitting
ardhipoetra May 9, 2016
a33b4c7
Clean onexit in BoostingManager
ardhipoetra Jun 27, 2016
6cc9d7d
Add and clean documentation in some functions needed
ardhipoetra May 3, 2016
2310579
Add credit mining preferences by SessionConfig
ardhipoetra May 27, 2016
a85ab3c
Refactor policies, constant, and function to different file
ardhipoetra May 31, 2016
66eb87f
Fix resume data to use configparser
ardhipoetra Jun 27, 2016
57e8636
Add logger.conf, Delete bootstraptribler.txt and boostchannel.py
ardhipoetra Jun 14, 2016
b11fd65
Fix switch policy when loading config
ardhipoetra Jun 8, 2016
b9d1940
Credit mining testcase
ardhipoetra Jun 27, 2016
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
Prev Previous commit
Next Next commit
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
ardhipoetra committed Jun 28, 2016
commit ae7576c5addd050455334dd13adf07991c5ce134
8 changes: 4 additions & 4 deletions Tribler/Core/Libtorrent/LibtorrentDownloadImpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Copy link
Contributor

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?

# 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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove some newlines here ;)

Expand Down
Loading