Inject Config:

* Use dependency injections instead
* Remove deprecated fee interfaces
This commit is contained in:
Nik Bougalis
2015-09-18 12:15:12 -07:00
committed by Vinnie Falco
parent c7b3153958
commit fa796a2eb5
57 changed files with 541 additions and 688 deletions

View File

@@ -216,7 +216,7 @@ public:
*
* @param sectionName Retrieve the contents of this section's
* legacy value.
* @returun Contents of the legacy value.
* @return Contents of the legacy value.
*/
std::string
legacy(std::string const& sectionName) const;

View File

@@ -26,13 +26,9 @@ namespace ripple {
// "Sustain" is a system for a buddy process that monitors the main process
// and relaunches it on a fault.
//
// VFALCO TODO Rename this and put it in a class.
// VFALCO TODO Reimplement cross-platform using beast::Process and its ilk
//
bool HaveSustain ();
std::string StopSustain ();
std::string DoSustain (std::string const& logFile);
std::string DoSustain ();
} // ripple

View File

@@ -70,7 +70,7 @@ std::string StopSustain ()
return "Terminating monitor";
}
std::string DoSustain (std::string const& logFile)
std::string DoSustain ()
{
pManager = getpid ();
signal (SIGINT, stop_manager);
@@ -111,8 +111,6 @@ std::string DoSustain (std::string const& logFile)
auto pc = std::to_string (pChild);
rename ("core", ("core." + pc).c_str ());
if (!logFile.empty()) // FIXME: logFile hasn't been set yet
rename (logFile.c_str(), (logFile + "." + pc).c_str ());
}
}
@@ -123,7 +121,7 @@ bool HaveSustain ()
return false;
}
std::string DoSustain (const std::string&)
std::string DoSustain ()
{
return "";
}