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

fix(core) bootstrap panic #425

Merged
merged 1 commit into from
Dec 9, 2014
Merged

fix(core) bootstrap panic #425

merged 1 commit into from
Dec 9, 2014

Conversation

btc
Copy link
Contributor

@btc btc commented Dec 9, 2014

panic occurred because I made a false assumption that the bootstrap list is greater than the boostrap threshold. This is not true for older clients (that have one bootstrap node) and clients that have manually modified the bootstrap config. Now, a min is taken to index safely.

@jbenet @mappum @whyrusleeping

@jbenet @mappum

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
@btc btc added the status/in-progress In progress label Dec 9, 2014
btc pushed a commit that referenced this pull request Dec 9, 2014
@btc btc merged commit 72dd371 into master Dec 9, 2014
@btc btc removed the status/in-progress In progress label Dec 9, 2014
@btc
Copy link
Contributor Author

btc commented Dec 9, 2014

Merging to fix the issue, but please let me know if anything looks wrong.

package math2

// IntMin returns the smaller of x or y.
func IntMin(x, y int) int {
Copy link
Member

Choose a reason for hiding this comment

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

😞 i'm sad that math doesnt have intmin

@jbenet
Copy link
Member

jbenet commented Dec 9, 2014

@maybebtc yikes i missed it too :( sorry, i'll be more careful with CR

@btc btc deleted the fix/bootstrap-panic branch December 9, 2014 03:46
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this pull request Oct 23, 2021
fix: always send the result channel when triggering a refresh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants