Allow both BTC and sat amounts for single send / CJ #441
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This allows no to specify both BTC and sat amounts for
sendpayment.py
and injoinmarket-qt.py
for single joins / sends. If number contains a dot, it is treated as a BTC amount, if it's integer - as sats. In addition "btc" or "sat" suffixes (case insensitive) can be specified (not in qt, because input box is number-only there; would like to see some btc/sat dropdown after amount there, but that would require rewrite ofgetSettingsWidgets()
, didn't want to do that in this PR).In addition, in various places where we display amounts, now both BTC and sat amounts are printed.
In future the same thing could be done with
joinmarket.cfg
too.