cli: fix --amount flag in static in and withdraw

Also fix --sat_per_vbyte flag.

All these flags were accessed using wrong type (signed vs unsigned int).
Previous version always parsed them as 0 even when set.

Regenerate the manual.
This commit is contained in:
Boris Nagaev 2025-10-24 19:08:27 -03:00
parent 7e0797e4af
commit 83cbc7e30f
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View file

@ -590,8 +590,8 @@ The following flags are supported:
| `--utxo="…"` | specify utxos as outpoints(tx:idx) which willbe withdrawn | string | `[]` |
| `--all` | withdraws all static address deposits | bool | `false` |
| `--dest_addr="…"` | the optional address that the withdrawn funds should be sent to, if let blank the funds will go to lnd's wallet | string |
| `--sat_per_vbyte="…"` | (optional) a manual fee expressed in sat/vbyte that should be used when crafting the transaction | int | `0` |
| `--amount="…"` | the number of satoshis that should be withdrawn from the selected deposits. The change is sent back to the static address | int | `0` |
| `--sat_per_vbyte="…"` | (optional) a manual fee expressed in sat/vbyte that should be used when crafting the transaction | uint | `0` |
| `--amount="…"` | the number of satoshis that should be withdrawn from the selected deposits. The change is sent back to the static address | uint | `0` |
| `--help` (`-h`) | show help | bool | `false` |
### `static summary` subcommand (aliases: `s`)