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

tatanka: switch to lexi db package and clean up message handling #3153

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

buck54321
Copy link
Member

No description provided.

tatanka/client_messages.go Outdated Show resolved Hide resolved
tatanka/db/db.go Show resolved Hide resolved
tatanka/db/db.go Show resolved Hide resolved
tatanka/client_messages.go Outdated Show resolved Hide resolved
Comment on lines +623 to +630
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)
Copy link
Collaborator

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

That's true.

copy(k[tanka.PeerIDLength+6:], penaltyID[:])
func (d *DB) Reputation(scored tanka.PeerID) (*tanka.Reputation, error) {
agg := new(tanka.Reputation)
var s dbScore
Copy link
Collaborator

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?

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.

3 participants