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
+31
-7
@@ -58,7 +58,7 @@ service Lightning {
|
||||
/* lncli: `sendcoins`
|
||||
SendCoins executes a request to send coins to a particular address. Unlike
|
||||
SendMany, this RPC call only allows creating a single output at a time. If
|
||||
neither target_conf, or sat_per_byte are set, then the internal wallet will
|
||||
neither target_conf, or sat_per_vbyte are set, then the internal wallet will
|
||||
consult its fee model to determine a fee for the default confirmation
|
||||
target.
|
||||
*/
|
||||
@@ -82,7 +82,7 @@ service Lightning {
|
||||
|
||||
/* lncli: `sendmany`
|
||||
SendMany handles a request for a transaction that creates multiple specified
|
||||
outputs in parallel. If neither target_conf, or sat_per_byte are set, then
|
||||
outputs in parallel. If neither target_conf, or sat_per_vbyte are set, then
|
||||
the internal wallet will consult its fee model to determine a fee for the
|
||||
default confirmation target.
|
||||
*/
|
||||
@@ -902,8 +902,12 @@ message EstimateFeeResponse {
|
||||
// The total fee in satoshis.
|
||||
int64 fee_sat = 1;
|
||||
|
||||
// Deprecated, use sat_per_vbyte.
|
||||
// The fee rate in satoshi/vbyte.
|
||||
int64 feerate_sat_per_byte = 2;
|
||||
int64 feerate_sat_per_byte = 2 [deprecated = true];
|
||||
|
||||
// The fee rate in satoshi/vbyte.
|
||||
uint64 sat_per_vbyte = 3;
|
||||
}
|
||||
|
||||
message SendManyRequest {
|
||||
@@ -916,7 +920,12 @@ message SendManyRequest {
|
||||
|
||||
// A manual fee rate set in sat/vbyte that should be used when crafting the
|
||||
// transaction.
|
||||
int64 sat_per_byte = 5;
|
||||
uint64 sat_per_vbyte = 4;
|
||||
|
||||
// Deprecated, use sat_per_vbyte.
|
||||
// A manual fee rate set in sat/vbyte that should be used when crafting the
|
||||
// transaction.
|
||||
int64 sat_per_byte = 5 [deprecated = true];
|
||||
|
||||
// An optional label for the transaction, limited to 500 characters.
|
||||
string label = 6;
|
||||
@@ -946,7 +955,12 @@ message SendCoinsRequest {
|
||||
|
||||
// A manual fee rate set in sat/vbyte that should be used when crafting the
|
||||
// transaction.
|
||||
int64 sat_per_byte = 5;
|
||||
uint64 sat_per_vbyte = 4;
|
||||
|
||||
// Deprecated, use sat_per_vbyte.
|
||||
// A manual fee rate set in sat/vbyte that should be used when crafting the
|
||||
// transaction.
|
||||
int64 sat_per_byte = 5 [deprecated = true];
|
||||
|
||||
/*
|
||||
If set, then the amount field will be ignored, and lnd will attempt to
|
||||
@@ -1685,9 +1699,10 @@ message CloseChannelRequest {
|
||||
// confirmed by.
|
||||
int32 target_conf = 3;
|
||||
|
||||
// Deprecated, use sat_per_vbyte.
|
||||
// A manual fee rate set in sat/vbyte that should be used when crafting the
|
||||
// closure transaction.
|
||||
int64 sat_per_byte = 4;
|
||||
int64 sat_per_byte = 4 [deprecated = true];
|
||||
|
||||
/*
|
||||
An optional address to send funds to in the case of a cooperative close.
|
||||
@@ -1696,6 +1711,10 @@ message CloseChannelRequest {
|
||||
to the upfront shutdown addresss.
|
||||
*/
|
||||
string delivery_address = 5;
|
||||
|
||||
// A manual fee rate set in sat/vbyte that should be used when crafting the
|
||||
// closure transaction.
|
||||
uint64 sat_per_vbyte = 6;
|
||||
}
|
||||
|
||||
message CloseStatusUpdate {
|
||||
@@ -1733,6 +1752,10 @@ message ReadyForPsbtFunding {
|
||||
}
|
||||
|
||||
message OpenChannelRequest {
|
||||
// A manual fee rate set in sat/vbyte that should be used when crafting the
|
||||
// funding transaction.
|
||||
uint64 sat_per_vbyte = 1;
|
||||
|
||||
/*
|
||||
The pubkey of the node to open a channel with. When using REST, this field
|
||||
must be encoded as base64.
|
||||
@@ -1756,9 +1779,10 @@ message OpenChannelRequest {
|
||||
// confirmed by.
|
||||
int32 target_conf = 6;
|
||||
|
||||
// Deprecated, use sat_per_vbyte.
|
||||
// A manual fee rate set in sat/vbyte that should be used when crafting the
|
||||
// funding transaction.
|
||||
int64 sat_per_byte = 7;
|
||||
int64 sat_per_byte = 7 [deprecated = true];
|
||||
|
||||
// Whether this channel should be private, not announced to the greater
|
||||
// network.
|
||||
|
||||
Reference in new issue
Block a user