xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
tx
apply.h
1
#pragma once
2
3
#include <xrpl/basics/base_uint.h>
4
#include <xrpl/beast/utility/Journal.h>
5
#include <xrpl/ledger/ApplyView.h>
6
#include <xrpl/ledger/OpenView.h>
7
#include <xrpl/protocol/Rules.h>
8
#include <xrpl/protocol/STTx.h>
9
#include <xrpl/tx/applySteps.h>
10
11
#include <
string
>
12
#include <
utility
>
13
14
namespace
xrpl
{
15
16
class
HashRouter
;
17
class
ServiceRegistry
;
18
24
enum class
Validity
{
28
SigBad
,
32
SigGoodOnly
,
36
Valid
37
};
38
53
std::pair<Validity, std::string>
54
checkValidity
(HashRouter& router, STTx
const
& tx, Rules
const
& rules);
55
66
void
67
forceValidity
(HashRouter& router,
UInt256
const
& txid,
Validity
validity);
68
111
ApplyResult
112
apply
(
113
ServiceRegistry& registry,
114
OpenView& view,
115
STTx
const
& tx,
116
ApplyFlags
flags,
117
beast::Journal
journal);
118
124
enum class
ApplyTransactionResult
{
128
Success
,
132
Fail
,
136
Retry
137
};
138
147
ApplyTransactionResult
148
applyTransaction
(
149
ServiceRegistry& registry,
150
OpenView& view,
151
STTx
const
& tx,
152
bool
retryAssured,
153
ApplyFlags
flags,
154
beast::Journal
journal);
155
156
}
// namespace xrpl
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:44
xrpl::HashRouter
Routing table for objects identified by hash.
Definition
HashRouter.h:89
xrpl::ServiceRegistry
Service registry for dependency injection.
Definition
ServiceRegistry.h:98
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::Validity
Validity
Describes the pre-processing validity of a transaction.
Definition
apply.h:24
xrpl::Validity::SigBad
@ SigBad
Signature is bad.
Definition
apply.h:28
xrpl::Validity::Valid
@ Valid
Signature and local checks are good / passed.
Definition
apply.h:36
xrpl::Validity::SigGoodOnly
@ SigGoodOnly
Signature is good, but local checks fail.
Definition
apply.h:32
xrpl::apply
ApplyResult apply(ServiceRegistry ®istry, OpenView &view, STTx const &tx, ApplyFlags flags, beast::Journal journal)
Apply a transaction to an OpenView.
Definition
apply.cpp:181
xrpl::applyTransaction
ApplyTransactionResult applyTransaction(ServiceRegistry ®istry, OpenView &view, STTx const &tx, bool retryAssured, ApplyFlags flags, beast::Journal journal)
Transaction application helper.
Definition
apply.cpp:267
xrpl::checkValidity
std::pair< Validity, std::string > checkValidity(HashRouter &router, STTx const &tx, Rules const &rules)
Checks transaction signature and local checks.
Definition
apply.cpp:62
xrpl::ApplyTransactionResult
ApplyTransactionResult
Enum class for return value from applyTransaction.
Definition
apply.h:124
xrpl::ApplyTransactionResult::Retry
@ Retry
Should be retried in this ledger.
Definition
apply.h:136
xrpl::ApplyTransactionResult::Fail
@ Fail
Should not be retried in this ledger.
Definition
apply.h:132
xrpl::forceValidity
void forceValidity(HashRouter &router, UInt256 const &txid, Validity validity)
Sets the validity of a given transaction in the cache.
Definition
apply.cpp:141
xrpl::UInt256
BaseUInt< 256 > UInt256
Definition
base_uint.h:580
xrpl::ApplyFlags
ApplyFlags
Definition
ApplyView.h:27
xrpl::TokenCodecErrc::Success
@ Success
Definition
token_errors.h:9
std::pair
string
utility
Generated by
1.17.0