Skip to content

Conversation

@starius
Copy link
Collaborator

@starius starius commented Apr 23, 2025

Renamed field looprpc.WithdrawDepositsResponse.PkScript to Address, because it stores an address, not a pk_script.

looprpc was not generated (make rpc) and CI didn't catch this. Formatted and fixed CI.

Also go.mod in looprpc was not working if GOPROXY=direct is used. Fixed and added a check to CI.

Removed some unneeded renamings of swapserverrpc import to looprpc.

Pull Request Checklist

  • Update release_notes.md if your PR contains major features, breaking changes or bugfixes

@starius starius force-pushed the fix-protos branch 2 times, most recently from 3744dfb to 8a5e649 Compare April 24, 2025 00:44
@starius starius changed the title [WIP] looprpc: fix protos looprpc: fix several minor bugs Apr 24, 2025
@starius starius marked this pull request as ready for review April 24, 2025 01:20
Copy link
Member

@sputn1ck sputn1ck left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix

The destination address of the withdrawal transaction.
*/
string pk_script = 2;
string address = 2;
Copy link
Member

Choose a reason for hiding this comment

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

just a note: this is a breaking change for json clients, but I don't think this is a problem.

Copy link
Member

Choose a reason for hiding this comment

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

Same, I think it's not a problem atm.

Copy link
Member

@bhandras bhandras left a comment

Choose a reason for hiding this comment

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

LGTM, thank you! 🎉

rpc-check: rpc
@$(call print, "Verifying protos.")
if test -n "$$(git describe --dirty | grep dirty)"; then echo "Protos not properly formatted or not compiled with correct version!"; git status; git diff; exit 1; fi
if test -n "$$(git status --porcelain)"; then echo "Protos not properly formatted or not compiled with correct version!"; git status; git diff; exit 1; fi
Copy link
Member

Choose a reason for hiding this comment

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

💡

The destination address of the withdrawal transaction.
*/
string pk_script = 2;
string address = 2;
Copy link
Member

Choose a reason for hiding this comment

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

Same, I think it's not a problem atm.

starius added 7 commits April 24, 2025 11:19
'git describe' may not work in CI because of Git shallow clones.
We got false negative of this check:
https://github.com/lightninglabs/loop/actions/runs/14556035205/job/40959214856
"fatal: No names found, cannot describe anything."
swapserverrpc/v1.0.11 was force-pushed causing build errors with GOPROXY=direct.

Also updated in main go.mod, however it didn't fail, because replace to local
dir is used.
GOPROXY=direct is needed to capture the issue with tags force-pushes.
It returns an address, but the field was called pk_script, which was confusing.
Also renamed it in the code.
@starius
Copy link
Collaborator Author

starius commented Apr 24, 2025

Rebased

@starius starius merged commit d55b4ab into lightninglabs:master Apr 24, 2025
4 checks passed
@starius starius deleted the fix-protos branch April 24, 2025 14:35
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