-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Scaffold decision logic #1590
Scaffold decision logic #1590
Conversation
License: MIT Signed-off-by: Karthik Bala <karthikbala444@gmail.com>
@@ -10,20 +11,46 @@ import ( | |||
pq "github.com/ipfs/go-ipfs/thirdparty/pq" | |||
) | |||
|
|||
var PEER_BLOCK_TIME time.Duration = time.Second * 5 |
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.
PeerBlockTime
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.
yep 👍
t.Fatal("Fastsend was not top request :'(.") | ||
} | ||
|
||
// lethargic larry sends more than fastsend |
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.
👍 name
Some comments above, but this LGTM. |
seems not to build. run |
closing until further progress is made |
License: MIT
Signed-off-by: Karthik Bala karthikbala444@gmail.com
This is a WIP but these are most of the changes I've made for decision making. The partner queue is sorted using
LedgerCompare()
and partners can be blocked when popped off the partner queue using a strategy function.