policy update
This commit is contained in:
parent
5417c49245
commit
79bd82b802
14 changed files with 6176 additions and 5875 deletions
|
|
@ -151,6 +151,13 @@ service LightningPub {
|
|||
option (nostr) = true;
|
||||
}
|
||||
|
||||
rpc UpdateChannelPolicy (structs.UpdateChannelPolicyRequest) returns (structs.Empty) {
|
||||
option (auth_type) = "Admin";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/admin/channel/policy/update";
|
||||
option (nostr) = true;
|
||||
}
|
||||
|
||||
rpc OpenChannel(structs.OpenChannelRequest) returns (structs.OpenChannelResponse) {
|
||||
option (auth_type) = "Admin";
|
||||
option (http_method) = "post";
|
||||
|
|
|
|||
|
|
@ -88,6 +88,22 @@ message RoutingEvent {
|
|||
bool forward_fail_event = 12;
|
||||
}
|
||||
|
||||
message ChannelPolicy {
|
||||
int64 base_fee_msat= 1;
|
||||
int64 fee_rate_ppm = 2;
|
||||
int64 max_htlc_msat = 3;
|
||||
int64 min_htlc_msat = 4;
|
||||
int64 timelock_delta = 5;
|
||||
}
|
||||
|
||||
message UpdateChannelPolicyRequest {
|
||||
oneof update {
|
||||
string channel_point = 1;
|
||||
Empty all = 2;
|
||||
}
|
||||
ChannelPolicy policy = 3;
|
||||
}
|
||||
|
||||
message OpenChannel {
|
||||
string channel_id = 1;
|
||||
int64 capacity = 2;
|
||||
|
|
@ -96,6 +112,8 @@ message OpenChannel {
|
|||
int64 local_balance=5;
|
||||
int64 remote_balance = 6;
|
||||
string label = 7;
|
||||
string channel_point = 8;
|
||||
optional ChannelPolicy policy = 9;
|
||||
}
|
||||
message ClosedChannel {
|
||||
string channel_id = 1;
|
||||
|
|
@ -131,10 +149,6 @@ message LndChannels {
|
|||
repeated OpenChannel open_channels = 1;
|
||||
}
|
||||
|
||||
message GetChannelPolicyRequest {
|
||||
string channel_id = 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
message OpenChannelRequest{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue