mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Journal console output improvements
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
|
||||
#ifndef RIPPLE_VALIDATORS_MANAGER_H_INCLUDED
|
||||
#define RIPPLE_VALIDATORS_MANAGER_H_INCLUDED
|
||||
|
||||
@@ -25,56 +24,55 @@ namespace ripple {
|
||||
namespace Validators {
|
||||
|
||||
/** Maintains the list of chosen validators.
|
||||
|
||||
The algorithm for acquiring, building, and calculating metadata on
|
||||
the list of chosen validators is critical to the health of the network.
|
||||
|
||||
All operations are performed asynchronously on an internal thread.
|
||||
*/
|
||||
class Manager : public RPC::Service
|
||||
{
|
||||
public:
|
||||
/** Create a new Manager object.
|
||||
@param parent The parent Stoppable.
|
||||
@param journal Where to send log output.
|
||||
*/
|
||||
static Manager* New (Stoppable& parent, Journal journal);
|
||||
|
||||
/** Destroy the object.
|
||||
|
||||
Any pending source fetch operations are aborted.
|
||||
|
||||
There may be some listener calls made before the
|
||||
destructor returns.
|
||||
Any pending source fetch operations are aborted. This will block
|
||||
until any pending database I/O has completed and the thread has
|
||||
stopped.
|
||||
*/
|
||||
virtual ~Manager () { }
|
||||
|
||||
/** Add a static source of validators from a string array. */
|
||||
/** Add a static source of validators.
|
||||
The validators added using these methods will always be chosen when
|
||||
constructing the UNL regardless of statistics. The fetch operation
|
||||
is performed asynchronously, so this call returns immediately. A
|
||||
failed fetch (depending on the source) is not retried. The caller
|
||||
loses ownership of any dynamic objects.
|
||||
Thread safety:
|
||||
Can be called from any thread.
|
||||
*/
|
||||
/** @{ */
|
||||
virtual void addStrings (String name,
|
||||
std::vector <std::string> const& strings) = 0;
|
||||
virtual void addStrings (String name,
|
||||
StringArray const& stringArray) = 0;
|
||||
virtual void addFile (File const& file) = 0;
|
||||
virtual void addStaticSource (Source* source) = 0;
|
||||
/** @} */
|
||||
|
||||
/** Add a static source of validators from a text file. */
|
||||
virtual void addFile (File const& file) = 0;
|
||||
|
||||
/** Add a static source of validators.
|
||||
The Source is called to fetch once and the results are kept
|
||||
permanently. The fetch is performed asynchronously, this call
|
||||
returns immediately. If the fetch fails, it is not reattempted.
|
||||
The caller loses ownership of the object.
|
||||
/** Add a live source of validators from a trusted URL.
|
||||
The URL will be contacted periodically to update the list. The fetch
|
||||
operation is performed asynchronously, this call doesn't block.
|
||||
Thread safety:
|
||||
Can be called from any thread.
|
||||
*/
|
||||
virtual void addStaticSource (Source* source) = 0;
|
||||
|
||||
/** Add a live source of validators from a trusted URL.
|
||||
The URL will be contacted periodically to update the list.
|
||||
*/
|
||||
virtual void addURL (URL const& url) = 0;
|
||||
|
||||
/** Add a live source of validators.
|
||||
The caller loses ownership of the object.
|
||||
The caller loses ownership of the object. The fetch is performed
|
||||
asynchronously, this call doesn't block.
|
||||
Thread safety:
|
||||
Can be called from any thread.
|
||||
*/
|
||||
@@ -82,12 +80,8 @@ public:
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
// Trusted Validators
|
||||
|
||||
//virtual bool isPublicKeyTrusted (RipplePublicKey const& publicKey) = 0;
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
|
||||
/** Called when a validation with a proper signature is received. */
|
||||
virtual void receiveValidation (ReceivedValidation const& rv) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user