Skip to content

Commit

Permalink
Merge pull request #763 from AntelopeIO/gh-513_main
Browse files Browse the repository at this point in the history
[3.2 -> main] keosd - Exit program if keosd fails to aquire wallet lock (GH #513)
  • Loading branch information
greg7mdp authored Mar 1, 2023
2 parents a28e873 + 3ec5a36 commit d42b860
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions programs/keosd/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ bfs::path determine_home_directory()
return home;
}

enum return_codes {
OTHER_FAIL = -2,
INITIALIZE_FAIL = -1,
SUCCESS = 0,
BAD_ALLOC = 1,
DATABASE_DIRTY = 2,
FIXED_REVERSIBLE = SUCCESS,
EXTRACTED_GENESIS = SUCCESS,
NODE_MANAGEMENT_SUCCESS = 5
};

int main(int argc, char** argv)
{
try {
Expand All @@ -94,6 +105,7 @@ int main(int argc, char** argv)
opts.count("print-default-config")) {
return 0;
}
return INITIALIZE_FAIL;
}
auto& http = app->get_plugin<http_plugin>();
http.add_handler("/v1/" + keosd::config::key_store_executable_name + "/stop",
Expand Down

0 comments on commit d42b860

Please sign in to comment.