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

UTXO selection cleanups and preps #3821

Merged

Conversation

rustyrussell
Copy link
Contributor

These are the simple reorgs and a fix, to expose more JSON routines to plugins. They should be non-controversial.

@cdecker
Copy link
Member

cdecker commented Jul 7, 2020

Just a minor issue with the inclusion order in feerate.c, otherwise LGTM 👍

bitcoin/feerate.c:1: includes out of order
#include <bitcoin/feerate.h>
#include <stdlib.h>
#include <limits.h>
VERSUS
#include <bitcoin/feerate.h>
#include <limits.h>
#include <stdlib.h>
Makefile:303: recipe for target 'check-src-include-order/bitcoin/feerate.c' failed

@cdecker
Copy link
Member

cdecker commented Jul 7, 2020

Notice that 4be1543 was clashing with #3823, which both do the same. The commit just needs to be removed and the merge conflict should disappear :-)

This exposes the numeric part of param_feerate() as param_feerate_val().

Signed-off-by: Rusty Russell <[email protected]>
If you used feerate=750, instead of feerate="750" it didn't work, since the
token is not a string.

Signed-off-by: Rusty Russell <[email protected]>
Changelog-Fixed: JSON RPC: `withdraw` and `txprepare` `feerate` can be a JSON number.
(Which it is, since 0.7.3).

Signed-off-by: Rusty Russell <[email protected]>
Changelog-Added: JSON: `listfunds` now has a 'scriptpubkey' field.
These are currently inside lightningd.

Signed-off-by: Rusty Russell <[email protected]>
This can be used by plugins which create their own txs.

Signed-off-by: Rusty Russell <[email protected]>
Move it out of lightningd/ so plugins can use it.

Signed-off-by: Rusty Russell <[email protected]>
@cdecker
Copy link
Member

cdecker commented Jul 8, 2020

ACK 93e273f

@cdecker cdecker merged commit 869fa08 into ElementsProject:master Jul 8, 2020
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.

2 participants