lnrpc+lncli: deprecate sat_per_byte and add sat_per_vbyte
This commit deprecates/replaces the old field `sat_per_byte` with `sat_per_vbyte`. While the old field suggests sat per byte, it’s actually using sat per virtual byte. We use the Hidden param to hide all the deprecated flags. These flags won't show up in help menu onwards, while stay valid that can be passed from cli. Thus bash scripts referencing these fields won't be broken.
This commit is contained in:
20 files changed
+1519
-1110
No files matched your search
@@ -1245,12 +1245,12 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
|
||||
policy := wtpolicy.DefaultPolicy()
|
||||
|
||||
if cfg.WtClient.SweepFeeRate != 0 {
|
||||
// We expose the sweep fee rate in sat/byte, but the
|
||||
// We expose the sweep fee rate in sat/vbyte, but the
|
||||
// tower protocol operations on sat/kw.
|
||||
sweepRateSatPerByte := chainfee.SatPerKVByte(
|
||||
sweepRateSatPerVByte := chainfee.SatPerKVByte(
|
||||
1000 * cfg.WtClient.SweepFeeRate,
|
||||
)
|
||||
policy.SweepFeeRate = sweepRateSatPerByte.FeePerKWeight()
|
||||
policy.SweepFeeRate = sweepRateSatPerVByte.FeePerKWeight()
|
||||
}
|
||||
|
||||
if err := policy.Validate(); err != nil {
|
||||
|
||||
Reference in new issue
Block a user