lnrpc: sync BatchOpenChannel and OpenChannel params
This commit is contained in:
3 files changed
+2277
-2017
No files matched your search
+2157
-2017
File diff suppressed because it is too large.
Load diff
@@ -2128,6 +2128,76 @@ message BatchOpenChannel {
|
|||||||
the remote peer supports explicit channel negotiation.
|
the remote peer supports explicit channel negotiation.
|
||||||
*/
|
*/
|
||||||
CommitmentType commitment_type = 9;
|
CommitmentType commitment_type = 9;
|
||||||
|
|
||||||
|
/*
|
||||||
|
The maximum amount of coins in millisatoshi that can be pending within
|
||||||
|
the channel. It only applies to the remote party.
|
||||||
|
*/
|
||||||
|
uint64 remote_max_value_in_flight_msat = 10;
|
||||||
|
|
||||||
|
/*
|
||||||
|
The maximum number of concurrent HTLCs we will allow the remote party to add
|
||||||
|
to the commitment transaction.
|
||||||
|
*/
|
||||||
|
uint32 remote_max_htlcs = 11;
|
||||||
|
|
||||||
|
/*
|
||||||
|
Max local csv is the maximum csv delay we will allow for our own commitment
|
||||||
|
transaction.
|
||||||
|
*/
|
||||||
|
uint32 max_local_csv = 12;
|
||||||
|
|
||||||
|
/*
|
||||||
|
If this is true, then a zero-conf channel open will be attempted.
|
||||||
|
*/
|
||||||
|
bool zero_conf = 13;
|
||||||
|
|
||||||
|
/*
|
||||||
|
If this is true, then an option-scid-alias channel-type open will be
|
||||||
|
attempted.
|
||||||
|
*/
|
||||||
|
bool scid_alias = 14;
|
||||||
|
|
||||||
|
/*
|
||||||
|
The base fee charged regardless of the number of milli-satoshis sent.
|
||||||
|
*/
|
||||||
|
uint64 base_fee = 15;
|
||||||
|
|
||||||
|
/*
|
||||||
|
The fee rate in ppm (parts per million) that will be charged in
|
||||||
|
proportion of the value of each forwarded HTLC.
|
||||||
|
*/
|
||||||
|
uint64 fee_rate = 16;
|
||||||
|
|
||||||
|
/*
|
||||||
|
If use_base_fee is true the open channel announcement will update the
|
||||||
|
channel base fee with the value specified in base_fee. In the case of
|
||||||
|
a base_fee of 0 use_base_fee is needed downstream to distinguish whether
|
||||||
|
to use the default base fee value specified in the config or 0.
|
||||||
|
*/
|
||||||
|
bool use_base_fee = 17;
|
||||||
|
|
||||||
|
/*
|
||||||
|
If use_fee_rate is true the open channel announcement will update the
|
||||||
|
channel fee rate with the value specified in fee_rate. In the case of
|
||||||
|
a fee_rate of 0 use_fee_rate is needed downstream to distinguish whether
|
||||||
|
to use the default fee rate value specified in the config or 0.
|
||||||
|
*/
|
||||||
|
bool use_fee_rate = 18;
|
||||||
|
|
||||||
|
/*
|
||||||
|
The number of satoshis we require the remote peer to reserve. This value,
|
||||||
|
if specified, must be above the dust limit and below 20% of the channel
|
||||||
|
capacity.
|
||||||
|
*/
|
||||||
|
uint64 remote_chan_reserve_sat = 19;
|
||||||
|
|
||||||
|
/*
|
||||||
|
An optional note-to-self to go along with the channel containing some
|
||||||
|
useful information. This is only ever stored locally and in no way impacts
|
||||||
|
the channel's operation.
|
||||||
|
*/
|
||||||
|
string memo = 20;
|
||||||
}
|
}
|
||||||
|
|
||||||
message BatchOpenChannelResponse {
|
message BatchOpenChannelResponse {
|
||||||
|
|||||||
@@ -3305,6 +3305,56 @@
|
|||||||
"commitment_type": {
|
"commitment_type": {
|
||||||
"$ref": "#/definitions/lnrpcCommitmentType",
|
"$ref": "#/definitions/lnrpcCommitmentType",
|
||||||
"description": "The explicit commitment type to use. Note this field will only be used if\nthe remote peer supports explicit channel negotiation."
|
"description": "The explicit commitment type to use. Note this field will only be used if\nthe remote peer supports explicit channel negotiation."
|
||||||
|
},
|
||||||
|
"remote_max_value_in_flight_msat": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "uint64",
|
||||||
|
"description": "The maximum amount of coins in millisatoshi that can be pending within\nthe channel. It only applies to the remote party."
|
||||||
|
},
|
||||||
|
"remote_max_htlcs": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int64",
|
||||||
|
"description": "The maximum number of concurrent HTLCs we will allow the remote party to add\nto the commitment transaction."
|
||||||
|
},
|
||||||
|
"max_local_csv": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int64",
|
||||||
|
"description": "Max local csv is the maximum csv delay we will allow for our own commitment\ntransaction."
|
||||||
|
},
|
||||||
|
"zero_conf": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "If this is true, then a zero-conf channel open will be attempted."
|
||||||
|
},
|
||||||
|
"scid_alias": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "If this is true, then an option-scid-alias channel-type open will be\nattempted."
|
||||||
|
},
|
||||||
|
"base_fee": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "uint64",
|
||||||
|
"description": "The base fee charged regardless of the number of milli-satoshis sent."
|
||||||
|
},
|
||||||
|
"fee_rate": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "uint64",
|
||||||
|
"description": "The fee rate in ppm (parts per million) that will be charged in\nproportion of the value of each forwarded HTLC."
|
||||||
|
},
|
||||||
|
"use_base_fee": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "If use_base_fee is true the open channel announcement will update the\nchannel base fee with the value specified in base_fee. In the case of\na base_fee of 0 use_base_fee is needed downstream to distinguish whether\nto use the default base fee value specified in the config or 0."
|
||||||
|
},
|
||||||
|
"use_fee_rate": {
|
||||||
|
"type": "boolean",
|
||||||
|
"description": "If use_fee_rate is true the open channel announcement will update the\nchannel fee rate with the value specified in fee_rate. In the case of\na fee_rate of 0 use_fee_rate is needed downstream to distinguish whether\nto use the default fee rate value specified in the config or 0."
|
||||||
|
},
|
||||||
|
"remote_chan_reserve_sat": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "uint64",
|
||||||
|
"description": "The number of satoshis we require the remote peer to reserve. This value,\nif specified, must be above the dust limit and below 20% of the channel\ncapacity."
|
||||||
|
},
|
||||||
|
"memo": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "An optional note-to-self to go along with the channel containing some\nuseful information. This is only ever stored locally and in no way impacts\nthe channel's operation."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user