rippled
Loading...
Searching...
No Matches
include
xrpl
nodestore
nodestore/Types.h
1
#pragma once
2
3
#include <xrpl/nodestore/NodeObject.h>
4
5
#include <
vector
>
6
7
namespace
xrpl
{
8
namespace
NodeStore {
9
10
enum
{
11
// This is only used to pre-allocate the array for
12
// batch objects and does not affect the amount written.
13
//
14
batchWritePreallocationSize
= 256,
15
16
// This sets a limit on the maximum number of writes
17
// in a batch. Actual usage can be twice this since
18
// we have a new batch growing as we write the old.
19
//
20
batchWriteLimitSize
= 65536
21
};
22
24
enum
Status
{
25
ok
,
26
notFound
,
27
dataCorrupt
,
28
unknown
,
29
backendError
,
30
31
customCode
= 100
32
};
33
35
using
Batch
=
std::vector<std::shared_ptr<NodeObject>
>;
36
37
}
// namespace NodeStore
38
39
}
// namespace xrpl
xrpl::NodeStore::Status
Status
Return codes from Backend operations.
Definition
nodestore/Types.h:24
xrpl::NodeStore::notFound
@ notFound
Definition
nodestore/Types.h:26
xrpl::NodeStore::ok
@ ok
Definition
nodestore/Types.h:25
xrpl::NodeStore::dataCorrupt
@ dataCorrupt
Definition
nodestore/Types.h:27
xrpl::NodeStore::unknown
@ unknown
Definition
nodestore/Types.h:28
xrpl::NodeStore::backendError
@ backendError
Definition
nodestore/Types.h:29
xrpl::NodeStore::customCode
@ customCode
Definition
nodestore/Types.h:31
xrpl::NodeStore::batchWritePreallocationSize
@ batchWritePreallocationSize
Definition
nodestore/Types.h:14
xrpl::NodeStore::batchWriteLimitSize
@ batchWriteLimitSize
Definition
nodestore/Types.h:20
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
vector
Generated by
1.9.8