-
Notifications
You must be signed in to change notification settings - Fork 104
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
tatanka: switch to lexi db package and clean up message handling #3153
base: master
Are you sure you want to change the base?
Conversation
if _, found := t.clientHandlers[msg.Route]; found { | ||
return t.handleClientMessage(cl, msg) | ||
} | ||
if _, found := t.tatankaHandlers[msg.Route]; found { | ||
return t.handleTatankaMessage(cl, msg) | ||
} | ||
if handle, found := t.specialHandlers[msg.Route]; found { | ||
return handle(cl, msg) |
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 collisions would mess things up.
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.
That's true.
tatanka/db/reputation.go
Outdated
copy(k[tanka.PeerIDLength+6:], penaltyID[:]) | ||
func (d *DB) Reputation(scored tanka.PeerID) (*tanka.Reputation, error) { | ||
agg := new(tanka.Reputation) | ||
var s dbScore |
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.
What's reason for s
?
No description provided.