-
Notifications
You must be signed in to change notification settings - Fork 911
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
grpc: addpsbtoutput command #7108
grpc: addpsbtoutput command #7108
Conversation
@cdecker Pretty sure this CI got disrupted by the Poetry |
eed5691
to
e0c1d92
Compare
Trying to avoid errors in the CI Prebuild check here by running a build using: And committing the generated code from that. |
e0c1d92
to
7d5a8a0
Compare
I'm removing the bloody alpine test, it keeps rotting away. See #7114. This PR will not make it into the v24.02 anyway, the feature freeze was 2 weeks ago :-) |
7d5a8a0
to
f101af3
Compare
I removed the Python pin commit for Alpine then. I don't mean to waste build cycles or attention on review notifications -- if there is a standard way to run the build, codgen and doc tests locally, please do share. So far I've been using:
But the |
This being a |
4867518
to
f101af3
Compare
@cdecker I rebased the latest from
In any event, I'm happy to have a development environment working as expected. Thanks for fielding questions in Discord. AFAICT, it seems like the next step is another round of CI. |
Hm, that |
@cdecker I re-ran
Just added commit 42e1e6b which seems to resolve the FD leak for me locally. A few notes:
edit: fix link markdown |
42e1e6b
to
f101af3
Compare
Removed the FD leak changes due to a few failing tests and opened #7130 to investigate them there. |
This is still based on the old json schema format. Will you update this PR @s373nZ ? |
9933c81
to
02f6d8b
Compare
@cdecker @daywalker90 It looks like the I'd like to finish this issue to completion, but prefer not to spend time keeping up with bitrot if the PR becomes unnecessary or has no priority. |
IIRC you should not change the
# if f.added is None and 'added' not in m:
# m['added'] = 'pre-v0.10.1'
|
02f6d8b
to
14393c4
Compare
@daywalker90 I did as you suggested. Still a little confused why the Thanks for the feedback. Let me know if you see anything else. |
Ah yes you have to change the |
b6d2520
to
8422991
Compare
@daywalker90 Nice -- that looks better to me, although I don't know much of what to expect from the generated code. Also rebased against edit: Also, I didn't update the documentation for |
looks good to me |
8422991
to
6196871
Compare
Rebased on top of Sorry for forgetting about this one |
Thanks! It had almost slipped on me as well. I've submitted a plea for inclusion over Discord. |
@@ -79,7 +79,7 @@ | |||
], | |||
"properties": { | |||
"satoshi": { | |||
"type": "sat", | |||
"type": "msat", |
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 doesn't look right. The psbt code handles satoshi amounts and the description matches this. Maybe there needs to be a new rust primitive type?
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.
@cdecker and me discussed this before, for now this is correct. But could be improved in the future. I think this was changed when the schemas got merged and some were forgotten. I've had to do this on a couple commits aswell.
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.
see here: #7230 (comment)
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.
Ah, thanks for the back story!
ACK 6196871. |
@cdecker This PR is a first pass at #6986. The major fix here was including
AddPsbtOutput
to the big list of RPC commands inutils.py
formsggen
. After re-running thebundle
andgenerate
commands, custom changes to the.msggen.json
file were necessary to map fields and set versions. The rest of the files were generated automatically.Also added parameter descriptions and some references to
addpsbtoutput
in the docs where it seemed to make sense in a separate commit.I was a little paranoid about committing the generated code in case there were small differences between build environments, and ended up double-checking by building with Docker. Hope it worked out...
@BitcoinJiuJitsu I'm hoping this qualifies to claim the Sphinx bounty, too ;)