-
Notifications
You must be signed in to change notification settings - Fork 21.9k
les, p2p/discv5: implement in-protocol payment #20341
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
Closed
Closed
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
4bb4cb0
p2p/discv5: implement talkRequest
zsfelfoldi 2d11d74
les: implement clientPool.balanceMissing
zsfelfoldi 2b96b4f
les: add talk request handler
zsfelfoldi 95a05d0
p2p/discv5: talkRequest works
zsfelfoldi 3354df8
les: deduplicated client priority checking logic
zsfelfoldi 923fc54
les: implement token sale
zsfelfoldi 1ddc30d
les: add tokensale.go
zsfelfoldi 6ac3b2b
les: lespay added to les/4
zsfelfoldi ab4a4af
les: implement lespay client side
zsfelfoldi be4fb57
les: fixed nexClientPool balance iterator
zsfelfoldi db4bc52
les: lespay API
zsfelfoldi 94bf8de
les: lespay API
zsfelfoldi 8c9f0eb
les: added tokensale info call
zsfelfoldi 9c7e717
les: use single command format for lespay/reply
zsfelfoldi 91b69d0
les: lespay rate limiting
zsfelfoldi 936328f
p2p/discv5: fixed talkResponse send condition
zsfelfoldi c52605c
les: more lespay API calls
zsfelfoldi 21f760b
les: using stateFeedback instead of BV
zsfelfoldi 0fc06ea
les: implement inactive peer state
zsfelfoldi 6f1abbf
les: fixed peerSet.Disconnect
zsfelfoldi c0b6ff2
les: drop inactive peers
zsfelfoldi 848683a
1
zsfelfoldi 5486e28
go.sum
zsfelfoldi d338384
les: fixed deadlock
zsfelfoldi 6ba9c5a
les: missing API functions
zsfelfoldi 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 add the function description and relative unit tests.
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.
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.
Just open a question here. So we can only guarantee the idle connection by the budget. However request can also cost a lot. TBH I think request cost should be much higher than connection cost.
So should we consider the estimated request cost when we calculate the budget? Although we can never have a correct number.