-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: get swap by payment hash #377
base: master
Are you sure you want to change the base?
Conversation
@@ -500,6 +500,8 @@ message ClaimSwapsResponse { | |||
|
|||
message GetSwapInfoRequest { | |||
string id = 1; |
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.
This should be optional too?
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.
I tried to, but getting this error:
➜ boltz-client git:(feat/get-swap-by-payment-hash) ✗ make proto
Generating protosbufs
eval cd pkg/boltzrpc && ./gen_protos.sh
--grpc-gateway_out: optional field not allowed in field path: id in id
Some naming issue with our grpc gateway solution. So we cant change the without changing the name which would be breaking for our rest wrappers
pkg/boltzrpc/boltzrpc.proto
Outdated
string id = 1; | ||
// only implemented for submarine swaps for now | ||
optional bytes payment_hash = 2; |
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.
How about a oneof
?
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.
breaking change, unless you want to add it and deprecate the old id
2683e26
to
fbac504
Compare
todo: