Skip to content

Commit

Permalink
Merge pull request #756 from AntelopeIO/gh-513_rel3.2
Browse files Browse the repository at this point in the history
[3.1 -> 3.2] keosd - Exit program if keosd fails to aquire wallet lock (GH #513)
  • Loading branch information
greg7mdp authored Mar 1, 2023
2 parents e226e46 + 9892f9a commit 9c7b0b7
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 @@ -91,6 +102,7 @@ int main(int argc, char** argv)
opts.count("print-default-config")) {
return 0;
}
return INITIALIZE_FAIL;
}
initialize_logging();
auto& http = app().get_plugin<http_plugin>();
Expand Down

0 comments on commit 9c7b0b7

Please sign in to comment.