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

Explicit change #40

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Explicit change #40

wants to merge 3 commits into from

Conversation

jkauffman1
Copy link
Contributor

No description provided.

@jkauffman1 jkauffman1 force-pushed the explicit-change branch 2 times, most recently from b505004 to 1cf2c77 Compare April 27, 2021 14:56
if txhash == '*' or txhash == utxo['txhash']:
if not pt_idx or pt_idx == '*' or int(pt_idx) == utxo['pt_idx']:
if txhash == '*' or txhash == 'all' or txhash == utxo['txhash']:
if not pt_idx or pt_idx == 'all' or pt_idx == '*' or int(pt_idx) == utxo['pt_idx']:
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: comparing in the same order would read better, or perhaps a utility function _is_all could be used.

@jgriffiths
Copy link
Contributor

utack 0efc2c9

@jkauffman1 jkauffman1 force-pushed the explicit-change branch 2 times, most recently from da4f257 to 57417c5 Compare May 24, 2021 14:29
Asterisks are not entirely convenient for a cli
For example:

$ green-cli tx outputs add $ADDR change

Allows specifying a single explicit change output that will act as a
sink for any amount left over after paying the other outputs and fee. In
the absence of an explicit change output the gdk will generate a single
change output.
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