From 51a64e8fc11b030ec60223e7fed9692eafbb7a61 Mon Sep 17 00:00:00 2001 From: positiveblue Date: Wed, 2 Mar 2022 13:32:38 -0800 Subject: [PATCH] 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. --- cmd/pool/account.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/pool/account.go b/cmd/pool/account.go index 1c2e816..ebb4f8c 100644 --- a/cmd/pool/account.go +++ b/cmd/pool/account.go @@ -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()