mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-16 02:10:39 -04:00
Add API functions to start and stop local Monero node
This commit is contained in:
parent
00765d7b32
commit
9dfbb0d5a6
12 changed files with 546 additions and 31 deletions
|
@ -382,6 +382,48 @@ message SetAutoSwitchRequest {
|
|||
|
||||
message SetAutoSwitchReply {}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// MoneroNode
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
service MoneroNode {
|
||||
rpc IsMoneroNodeRunning (IsMoneroNodeRunningRequest) returns (IsMoneroNodeRunningReply) {
|
||||
}
|
||||
rpc GetMoneroNodeSettings (GetMoneroNodeSettingsRequest) returns (GetMoneroNodeSettingsReply) {
|
||||
}
|
||||
rpc StartMoneroNode (StartMoneroNodeRequest) returns (StartMoneroNodeReply) {
|
||||
}
|
||||
rpc StopMoneroNode (StopMoneroNodeRequest) returns (StopMoneroNodeReply) {
|
||||
}
|
||||
}
|
||||
|
||||
message IsMoneroNodeRunningRequest {
|
||||
}
|
||||
|
||||
message IsMoneroNodeRunningReply {
|
||||
bool is_running = 1;
|
||||
}
|
||||
|
||||
message GetMoneroNodeSettingsRequest {
|
||||
}
|
||||
|
||||
message GetMoneroNodeSettingsReply {
|
||||
MoneroNodeSettings settings = 1; // pb.proto
|
||||
}
|
||||
|
||||
message StartMoneroNodeRequest {
|
||||
MoneroNodeSettings settings = 1;
|
||||
}
|
||||
|
||||
message StartMoneroNodeReply {
|
||||
}
|
||||
|
||||
message StopMoneroNodeRequest {
|
||||
}
|
||||
|
||||
message StopMoneroNodeReply {
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Offers
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1814,6 +1814,7 @@ message PreferencesPayload {
|
|||
bool show_offers_matching_my_accounts = 55;
|
||||
bool deny_api_taker = 56;
|
||||
bool notify_on_pre_release = 57;
|
||||
MoneroNodeSettings monero_node_settings = 58;
|
||||
}
|
||||
|
||||
message AutoConfirmSettings {
|
||||
|
@ -1824,6 +1825,12 @@ message AutoConfirmSettings {
|
|||
string currency_code = 5;
|
||||
}
|
||||
|
||||
message MoneroNodeSettings {
|
||||
string blockchain_path = 1;
|
||||
string bootstrap_url = 2;
|
||||
repeated string startup_flags = 3;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
// UserPayload
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue