-
Notifications
You must be signed in to change notification settings - Fork 452
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
Various bug fixes and improvements for the market #3502
Merged
+291
−74
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
777f59a
Removed log statement
devos50 1c70621
Added Tribler systemd unit
devos50 efa7d74
Unloading TriblerChain after TunnelCommunity
devos50 8de8153
Updated IPv8 pointer
devos50 afcdd8b
Disable incremental settlement by default
devos50 b8538af
Added endpoint to fetch matchmakers in the market
devos50 88f079e
Fixed minor issues in market community
devos50 094b89b
Fixed token balance in GUI
devos50 f8bf5a9
Upgraded Electrum to 2.9.4
devos50 e236b83
Minor fixes for BTC wallet and GUI
devos50 60d7d19
Fixed bug + added market test
devos50 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
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
35 changes: 35 additions & 0 deletions
35
Tribler/Core/Modules/restapi/market/matchmakers_endpoint.py
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
from Tribler.Core.Modules.restapi.market import BaseMarketEndpoint | ||
from Tribler.Core.Utilities.json_util import dumps | ||
|
||
|
||
class MatchmakersEndpoint(BaseMarketEndpoint): | ||
""" | ||
This class handles requests regarding your known matchmakers in the market community. | ||
""" | ||
|
||
def render_GET(self, request): | ||
""" | ||
.. http:get:: /market/matchmakers | ||
|
||
A GET request to this endpoint will return all known matchmakers. | ||
|
||
**Example request**: | ||
|
||
.. sourcecode:: none | ||
|
||
curl -X GET http://localhost:8085/market/matchmakers | ||
|
||
**Example response**: | ||
|
||
.. sourcecode:: javascript | ||
|
||
{ | ||
"matchmakers": [{ | ||
"ip": "131.249.48.3", | ||
"port": 7008 | ||
}] | ||
} | ||
""" | ||
matchmakers = self.session.lm.market_community.matchmakers | ||
matchmakers_json = [{"ip": mm.address[0], "port": mm.address[1]} for mm in matchmakers] | ||
return dumps({"matchmakers": matchmakers_json}) |
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
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
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
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
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
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
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
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
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
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
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.
Please update the docstring to replace get request with post