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:
positiveblue 2022-03-02 13:32:38 -08:00
parent 1ec88499a9
commit 51a64e8fc1

View file

@ -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()