Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
lightning-bits
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bitsoko services
lightning-bits
Commits
d57edd62
Unverified
Commit
d57edd62
authored
May 03, 2019
by
Tankred Hase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Append autopilot subserver apis to rpc.proto
parent
daaf6b9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
0 deletions
+73
-0
rpc.proto
assets/rpc.proto
+73
-0
No files found.
assets/rpc.proto
View file @
d57edd62
...
...
@@ -2365,3 +2365,76 @@ message ChannelBackupSubscription {}
message
VerifyChanBackupResponse
{
}
// Autopilot is a service that can be used to get information about the current
// state of the daemon's autopilot agent, and also supply it with information
// that can be used when deciding where to open channels.
service
Autopilot
{
/**
Status returns whether the daemon's autopilot agent is active.
*/
rpc
Status
(
StatusRequest
)
returns
(
StatusResponse
);
/**
ModifyStatus is used to modify the status of the autopilot agent, like
enabling or disabling it.
*/
rpc
ModifyStatus
(
ModifyStatusRequest
)
returns
(
ModifyStatusResponse
);
/**
QueryScores queries all available autopilot heuristics, in addition to any
active combination of these heruristics, for the scores they would give to
the given nodes.
*/
rpc
QueryScores
(
QueryScoresRequest
)
returns
(
QueryScoresResponse
);
/**
SetScores attempts to set the scores used by the running autopilot agent,
if the external scoring heuristic is enabled.
*/
rpc
SetScores
(
SetScoresRequest
)
returns
(
SetScoresResponse
);
}
message
StatusRequest
{
}
message
StatusResponse
{
/// Indicates whether the autopilot is active or not.
bool
active
=
1
[
json_name
=
"active"
];
}
message
ModifyStatusRequest
{
/// Whether the autopilot agent should be enabled or not.
bool
enable
=
1
[
json_name
=
"enable"
];
}
message
ModifyStatusResponse
{}
message
QueryScoresRequest
{
repeated
string
pubkeys
=
1
[
json_name
=
"pubkeys"
];
/// If set, we will ignore the local channel state when calculating scores.
bool
ignore_local_state
=
2
[
json_name
=
"no_state"
];
}
message
QueryScoresResponse
{
message
HeuristicResult
{
string
heuristic
=
1
[
json_name
=
"heuristic"
];
map
<
string
,
double
>
scores
=
2
[
json_name
=
"scores"
];
}
repeated
HeuristicResult
results
=
1
[
json_name
=
"results"
];
}
message
SetScoresRequest
{
/// The name of the heuristic to provide scores to.
string
heuristic
=
1
[
json_name
=
"heuristic"
];
/**
A map from hex-encoded public keys to scores. Scores must be in the range
[0.0, 1.0].
*/
map
<
string
,
double
>
scores
=
2
[
json_name
=
"scores"
];
}
message
SetScoresResponse
{}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment