-
Notifications
You must be signed in to change notification settings - Fork 445
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
BarterCast3: test with Libswift byte counting #20
Comments
Libswift has now a suitable stats reporting API. Uses the close event, see https://svn.tribler.org/libswift/branches/tribler-6.1.x-closeevent {all work and info by Arno}
Only the following is implemented:
(and 0 for off). Now when a channel is closed, an event is queued which is currently dequeued and sent over the TCP connection when the state updates of the swarms are sent, so every 1 second (or whatever you configure with -C on swift command line).
In other words, after the INFO lines you get line like this:
to be parsed in SwiftProcess.py and transported to Dispersy. |
#known ToDo |
#known ToDo (clarification) Future solution is incremental signatures. For instance, every 90 seconds or every 25 MByte a seeder demands a signature. If no proof-of-work is given, uploading will stop. First we need scalable dissemination and rewards for good behavior #5. |
The basic ideas in this issue have been implemented and will be part of Tribler in the near future in a simplified form:
This issue also introduces some 'future features'. These will be implemented on the DAS4 first by Dimitra. The result will be moved into Trtibler when it is ready. As this issue has no clear 'now it is finished' I propose we close it. |
Goal: Test-only of Libswift byte counting.
Aim: prepare for larger goal of "rewarding good behavior" #5.
Methodology: idea is to use agile 2-weeks releases with new features and test them in the wild, after DAS4 success.
Statistics from Libswift are used on both GUI and
the BarterCast3 community (the Tribler trust overlay).
Current situation:
sesscb_states_callback is called every second and retrieves the peer information of all swarms from libswift when wantpeers is True. Wantpeers is set to True when an BarterCast3 community exists or a detailspanel is selected in the librarylist.
Desired situation:
Only every 60 seconds BarterCast3 sets wantpeers to True and retreives the peer information of all swarms. Every 1 second, the GUI gets the peer information from one specific swarm if a detailspanel is selected.
New event notifier: libswift connection closed + last counters for that connection
Future wish list:
-Public key inclusion, therefore no missing-identity messages problem. Alters the walker, only for this community.
-Simple churn test
-Edge traversal and teleport
-Top250 edges
The text was updated successfully, but these errors were encountered: