-
Notifications
You must be signed in to change notification settings - Fork 313
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
Filter out unsupported proposals #606
Conversation
As part of this feature I am planning to refactor our discovery communication code (get rid of packages like "server" and to extract consumer and provider related code to separate packages) |
service_discovery/dto/contact.go
Outdated
return UnsupportedContactType{} | ||
} | ||
definition, er := fn(rawMessage) | ||
if er != nil { |
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.
er? :)
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.
really? :) fine :)
"github.com/mysteriumnetwork/node/money" | ||
) | ||
|
||
// PaymentMethod is a marker interface for all types of payment methods |
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 interface?
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.
Removed markers
99af05e
to
94dead9
Compare
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.
lgtm
8bca9ad
to
9cb77dc
Compare
@zolia @vkuznecovas @soffokl ready again |
The main idea how to handle proposals of uknown service,payment or contact types.
Proposal is considered unsupported if one of the following is true:
Such proposals will be filtered out and not returned by tequilapi