mirror of
https://github.com/lightninglabs/pool.git
synced 2026-08-13 12:33:04 +02:00
cmd: improve InitAccount cli message
Our message was really confusing. If InitAccount was used with the `sat_per_vbyte` option we were printing the default `conf_target` that was not used at all.
This commit is contained in:
parent
1ec88499a9
commit
51a64e8fc1
1 changed files with 4 additions and 0 deletions
|
|
@ -141,6 +141,10 @@ func newAccount(ctx *cli.Context) error {
|
|||
|
||||
switch {
|
||||
case satPerVByte > 0:
|
||||
// If the user specified `sat_per_vbyte` we do not need to use the
|
||||
// default confTarget.
|
||||
confTarget = 0
|
||||
|
||||
// Enforce a minimum fee rate of 253 sat/kw by rounding up if 1
|
||||
// sat/byte is used.
|
||||
feeRate := chainfee.SatPerKVByte(satPerVByte * 1000).FeePerKWeight()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue