mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Persistence for Validators
This commit is contained in:
@@ -4,19 +4,29 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#ifndef RIPPLE_VALIDATORS_VALIDATORSSTORE_H_INCLUDED
|
||||
#define RIPPLE_VALIDATORS_VALIDATORSSTORE_H_INCLUDED
|
||||
#ifndef RIPPLE_VALIDATORS_STORE_H_INCLUDED
|
||||
#define RIPPLE_VALIDATORS_STORE_H_INCLUDED
|
||||
|
||||
namespace Validators
|
||||
{
|
||||
|
||||
/** Database persistence for Validators. */
|
||||
/** Abstract persistence for Validators data. */
|
||||
class Store
|
||||
{
|
||||
public:
|
||||
virtual ~Store () { }
|
||||
|
||||
/** Insert a new SourceDesc to the Store.
|
||||
The caller's SourceDesc will have any available persistent
|
||||
information filled in from the Store.
|
||||
*/
|
||||
virtual void insert (SourceDesc& desc) = 0;
|
||||
|
||||
/** Update the SourceDesc fixed fields. */
|
||||
virtual void update (SourceDesc& desc, bool updateFetchResults = false) = 0;
|
||||
|
||||
protected:
|
||||
Store () { }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user