mirror of
https://github.com/EvernodeXRPL/sashimono.git
synced 2026-08-01 03:21:05 +00:00
Added kill switch. (#25)
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
#include "crypto.hpp"
|
||||
#include "hp_manager.hpp"
|
||||
#include "version.hpp"
|
||||
#include "util/util.hpp"
|
||||
#include "killswitch/killswitch.h"
|
||||
|
||||
#define PARSE_ERROR \
|
||||
{ \
|
||||
@@ -139,6 +141,12 @@ int main(int argc, char **argv)
|
||||
}
|
||||
else if (conf::ctx.command == "run")
|
||||
{
|
||||
if (kill_switch(util::get_epoch_milliseconds()))
|
||||
{
|
||||
std::cerr << "Sashimono Agent usage limit failure.\n";
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (conf::init() != 0)
|
||||
return -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user