diff --git a/AMMUtils_8cpp_source.html b/AMMUtils_8cpp_source.html index 2435b21cd6..6aeb3c14fd 100644 --- a/AMMUtils_8cpp_source.html +++ b/AMMUtils_8cpp_source.html @@ -684,7 +684,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::cleanupOnAccountDelete
TER cleanupOnAccountDelete(ApplyView &view, Keylet const &ownerDirKeylet, EntryDeleter const &deleter, beast::Journal j, std::optional< uint16_t > maxNodesToDelete)
Definition View.cpp:2642
ripple::ammAccountHolds
STAmount ammAccountHolds(ReadView const &view, AccountID const &ammAccountID, Issue const &issue)
Returns total amount held by AMM for the given token.
Definition AMMUtils.cpp:211
ripple::root
Number root(Number f, unsigned d)
Definition Number.cpp:636
-
ripple::maxDeletableAMMTrustLines
std::uint16_t constexpr maxDeletableAMMTrustLines
The maximum number of trustlines to delete as part of AMM account deletion cleanup.
Definition Protocol.h:140
+
ripple::maxDeletableAMMTrustLines
std::uint16_t constexpr maxDeletableAMMTrustLines
The maximum number of trustlines to delete as part of AMM account deletion cleanup.
Definition Protocol.h:141
ripple::TER
TERSubset< CanCvtToTER > TER
Definition TER.h:645
ripple::withinRelativeDistance
bool withinRelativeDistance(Quality const &calcQuality, Quality const &reqQuality, Number const &dist)
Check if the relative distance between the qualities is within the requested distance.
Definition AMMHelpers.h:129
ripple::AUCTION_SLOT_DISCOUNTED_FEE_FRACTION
std::uint32_t constexpr AUCTION_SLOT_DISCOUNTED_FEE_FRACTION
Definition AMMCore.h:38
diff --git a/AMM__test_8cpp_source.html b/AMM__test_8cpp_source.html index f6f94b54d9..345f2baa16 100644 --- a/AMM__test_8cpp_source.html +++ b/AMM__test_8cpp_source.html @@ -8303,7 +8303,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::tfTwoAssetIfEmpty
constexpr std::uint32_t tfTwoAssetIfEmpty
Definition TxFlags.h:215
ripple::amountFromString
STAmount amountFromString(Asset const &asset, std::string const &amount)
Definition STAmount.cpp:1025
ripple::asfAllowTrustLineClawback
constexpr std::uint32_t asfAllowTrustLineClawback
Definition TxFlags.h:94
-
ripple::maxDeletableAMMTrustLines
std::uint16_t constexpr maxDeletableAMMTrustLines
The maximum number of trustlines to delete as part of AMM account deletion cleanup.
Definition Protocol.h:140
+
ripple::maxDeletableAMMTrustLines
std::uint16_t constexpr maxDeletableAMMTrustLines
The maximum number of trustlines to delete as part of AMM account deletion cleanup.
Definition Protocol.h:141
ripple::asfRequireAuth
constexpr std::uint32_t asfRequireAuth
Definition TxFlags.h:78
ripple::terADDRESS_COLLISION
@ terADDRESS_COLLISION
Definition TER.h:228
ripple::terNO_ACCOUNT
@ terNO_ACCOUNT
Definition TER.h:217
diff --git a/AccountDelete__test_8cpp_source.html b/AccountDelete__test_8cpp_source.html index 1aa3983cf8..6a00647011 100644 --- a/AccountDelete__test_8cpp_source.html +++ b/AccountDelete__test_8cpp_source.html @@ -1424,7 +1424,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::test::jtx::Account::master
static Account const master
The master account.
Definition Account.h:48
ripple::test::jtx::Account::human
std::string const & human() const
Returns the human readable public key.
Definition Account.h:114
ripple::test::jtx::Env
A transaction testing environment.
Definition Env.h:121
-
ripple::test::jtx::Env::tx
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:506
+
ripple::test::jtx::Env::tx
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:515
ripple::test::jtx::Env::close
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
Definition Env.cpp:121
ripple::test::jtx::Env::rpc
Json::Value rpc(unsigned apiVersion, std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition Env.h:788
ripple::test::jtx::Env::fund
void fund(bool setDefaultRipple, STAmount const &amount, Account const &account)
Definition Env.cpp:279
diff --git a/AccountStateSF_8cpp_source.html b/AccountStateSF_8cpp_source.html index 328434637f..5c11381b38 100644 --- a/AccountStateSF_8cpp_source.html +++ b/AccountStateSF_8cpp_source.html @@ -133,8 +133,8 @@ $(document).ready(function() { init_codefold(0); });
ripple::AccountStateSF::gotNode
void gotNode(bool fromFilter, SHAMapHash const &nodeHash, std::uint32_t ledgerSeq, Blob &&nodeData, SHAMapNodeType type) const override
Definition AccountStateSF.cpp:25
ripple::AccountStateSF::fp_
AbstractFetchPackContainer & fp_
Definition AccountStateSF.h:52
ripple::NodeStore::Database::store
virtual void store(NodeObjectType type, Blob &&data, uint256 const &hash, std::uint32_t ledgerSeq)=0
Store the object.
-
ripple::SHAMapHash
Definition SHAMapHash.h:33
-
ripple::SHAMapHash::as_uint256
uint256 const & as_uint256() const
Definition SHAMapHash.h:43
+
ripple::SHAMapHash
Definition SHAMapHash.h:34
+
ripple::SHAMapHash::as_uint256
uint256 const & as_uint256() const
Definition SHAMapHash.h:44
std::uint32_t
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
ripple::hotACCOUNT_NODE
@ hotACCOUNT_NODE
Definition NodeObject.h:35
diff --git a/AccountStateSF_8h_source.html b/AccountStateSF_8h_source.html index e545eb6718..ef2f6f5046 100644 --- a/AccountStateSF_8h_source.html +++ b/AccountStateSF_8h_source.html @@ -150,7 +150,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::AccountStateSF::gotNode
void gotNode(bool fromFilter, SHAMapHash const &nodeHash, std::uint32_t ledgerSeq, Blob &&nodeData, SHAMapNodeType type) const override
Definition AccountStateSF.cpp:25
ripple::AccountStateSF::fp_
AbstractFetchPackContainer & fp_
Definition AccountStateSF.h:52
ripple::NodeStore::Database
Persistency layer for NodeObject.
Definition Database.h:52
-
ripple::SHAMapHash
Definition SHAMapHash.h:33
+
ripple::SHAMapHash
Definition SHAMapHash.h:34
ripple::SHAMapSyncFilter
Definition SHAMapSyncFilter.h:31
std::uint32_t
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
diff --git a/AccountTx__test_8cpp_source.html b/AccountTx__test_8cpp_source.html index bd94c37378..e94663dd46 100644 --- a/AccountTx__test_8cpp_source.html +++ b/AccountTx__test_8cpp_source.html @@ -971,7 +971,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::test::jtx::Env
A transaction testing environment.
Definition Env.h:121
ripple::test::jtx::Env::closed
std::shared_ptr< ReadView const > closed()
Returns the last closed ledger.
Definition Env.cpp:115
ripple::test::jtx::Env::seq
std::uint32_t seq(Account const &account) const
Returns the next sequence number on account.
Definition Env.cpp:258
-
ripple::test::jtx::Env::tx
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:506
+
ripple::test::jtx::Env::tx
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:515
ripple::test::jtx::Env::current
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition Env.h:331
ripple::test::jtx::Env::close
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
Definition Env.cpp:121
ripple::test::jtx::Env::now
NetClock::time_point now()
Returns the current network time.
Definition Env.h:284
diff --git a/ApplyView_8cpp_source.html b/ApplyView_8cpp_source.html index d45c66389d..ce2cd2ac06 100644 --- a/ApplyView_8cpp_source.html +++ b/ApplyView_8cpp_source.html @@ -470,8 +470,8 @@ $(document).ready(function() { init_codefold(0); });
std::lower_bound
T lower_bound(T... args)
ripple::keylet::page
Keylet page(uint256 const &root, std::uint64_t index=0) noexcept
A page in a directory.
Definition Indexes.cpp:380
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
-
ripple::dirNodeMaxPages
std::uint64_t constexpr dirNodeMaxPages
The maximum number of pages allowed in a directory.
Definition Protocol.h:59
-
ripple::dirNodeMaxEntries
std::size_t constexpr dirNodeMaxEntries
The maximum number of entries per directory page.
Definition Protocol.h:56
+
ripple::dirNodeMaxPages
std::uint64_t constexpr dirNodeMaxPages
The maximum number of pages allowed in a directory.
Definition Protocol.h:60
+
ripple::dirNodeMaxEntries
std::size_t constexpr dirNodeMaxEntries
The maximum number of entries per directory page.
Definition Protocol.h:57
ripple::root
Number root(Number f, unsigned d)
Definition Number.cpp:636
ripple::LogicError
void LogicError(std::string const &how) noexcept
Called when faulty logic causes a broken invariant.
Definition libxrpl/basics/contract.cpp:37
std::optional
diff --git a/Batch_8cpp_source.html b/Batch_8cpp_source.html index 6296267e4b..638e3265a0 100644 --- a/Batch_8cpp_source.html +++ b/Batch_8cpp_source.html @@ -563,7 +563,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::tesSUCCESS
@ tesSUCCESS
Definition TER.h:244
ripple::isTesSuccess
bool isTesSuccess(TER x) noexcept
Definition TER.h:674
ripple::tapBATCH
@ tapBATCH
Definition ApplyView.h:46
-
ripple::maxBatchTxCount
std::size_t constexpr maxBatchTxCount
The maximum number of transactions that can be in a batch.
Definition Protocol.h:172
+
ripple::maxBatchTxCount
std::size_t constexpr maxBatchTxCount
The maximum number of transactions that can be in a batch.
Definition Protocol.h:173
ripple::tfInnerBatchTxn
constexpr std::uint32_t tfInnerBatchTxn
Definition TxFlags.h:61
ripple::temREDUNDANT
@ temREDUNDANT
Definition TER.h:112
ripple::temBAD_FEE
@ temBAD_FEE
Definition TER.h:92
diff --git a/BookChanges__test_8cpp_source.html b/BookChanges__test_8cpp_source.html index 62fb291418..50f312643f 100644 --- a/BookChanges__test_8cpp_source.html +++ b/BookChanges__test_8cpp_source.html @@ -253,7 +253,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::test::BookChanges_test::testDomainOffer
void testDomainOffer()
Definition BookChanges_test.cpp:91
ripple::test::BookChanges_test::testLedgerInputDefaultBehavior
void testLedgerInputDefaultBehavior()
Definition BookChanges_test.cpp:71
ripple::test::jtx::Env
A transaction testing environment.
Definition Env.h:121
-
ripple::test::jtx::Env::tx
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:506
+
ripple::test::jtx::Env::tx
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:515
ripple::test::jtx::Env::close
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
Definition Env.cpp:121
ripple::test::jtx::Env::app
Application & app()
Definition Env.h:261
ripple::test::jtx::Env::rpc
Json::Value rpc(unsigned apiVersion, std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition Env.h:788
diff --git a/BuildInfo_8cpp_source.html b/BuildInfo_8cpp_source.html index bd208d4252..44f51b1f61 100644 --- a/BuildInfo_8cpp_source.html +++ b/BuildInfo_8cpp_source.html @@ -119,7 +119,7 @@ $(document).ready(function() { init_codefold(0); });
36// and follow the format described at http://semver.org/
37//------------------------------------------------------------------------------
38// clang-format off
-
39char const* const versionString = "2.6.0-rc2"
+
39char const* const versionString = "2.6.0-rc3"
40// clang-format on
41
42#if defined(DEBUG) || defined(SANITIZER)
diff --git a/Check__test_8cpp_source.html b/Check__test_8cpp_source.html index 4b4daf98e7..0869bc4215 100644 --- a/Check__test_8cpp_source.html +++ b/Check__test_8cpp_source.html @@ -2917,7 +2917,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::base_uint< 256 >
ripple::test::jtx::Account
Immutable cryptographic account descriptor.
Definition Account.h:39
ripple::test::jtx::Env
A transaction testing environment.
Definition Env.h:121
-
ripple::test::jtx::Env::tx
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:506
+
ripple::test::jtx::Env::tx
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:515
ripple::test::jtx::Env::current
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition Env.h:331
ripple::test::jtx::Env::close
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
Definition Env.cpp:121
ripple::test::jtx::Env::rpc
Json::Value rpc(unsigned apiVersion, std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition Env.h:788
diff --git a/ConsensusTransSetSF_8cpp_source.html b/ConsensusTransSetSF_8cpp_source.html index bc2d4edf52..7331951760 100644 --- a/ConsensusTransSetSF_8cpp_source.html +++ b/ConsensusTransSetSF_8cpp_source.html @@ -208,8 +208,8 @@ $(document).ready(function() { init_codefold(0); });
ripple::ConsensusTransSetSF::ConsensusTransSetSF
ConsensusTransSetSF(Application &app, NodeCache &nodeCache)
Definition ConsensusTransSetSF.cpp:33
ripple::ConsensusTransSetSF::m_nodeCache
NodeCache & m_nodeCache
Definition ConsensusTransSetSF.h:56
ripple::JobQueue::addJob
bool addJob(JobType type, std::string const &name, JobHandler &&jobHandler)
Adds a job to the JobQueue.
Definition JobQueue.h:168
-
ripple::SHAMapHash
Definition SHAMapHash.h:33
-
ripple::SHAMapHash::as_uint256
uint256 const & as_uint256() const
Definition SHAMapHash.h:43
+
ripple::SHAMapHash
Definition SHAMapHash.h:34
+
ripple::SHAMapHash::as_uint256
uint256 const & as_uint256() const
Definition SHAMapHash.h:44
ripple::SerialIter
Definition Serializer.h:346
ripple::Serializer
Definition Serializer.h:41
ripple::Serializer::add32
int add32(T i)
Definition Serializer.h:94
diff --git a/ConsensusTransSetSF_8h_source.html b/ConsensusTransSetSF_8h_source.html index bd7e5dd4e7..f405f16893 100644 --- a/ConsensusTransSetSF_8h_source.html +++ b/ConsensusTransSetSF_8h_source.html @@ -153,7 +153,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::ConsensusTransSetSF::app_
Application & app_
Definition ConsensusTransSetSF.h:55
ripple::ConsensusTransSetSF::j_
beast::Journal const j_
Definition ConsensusTransSetSF.h:57
ripple::ConsensusTransSetSF::m_nodeCache
NodeCache & m_nodeCache
Definition ConsensusTransSetSF.h:56
-
ripple::SHAMapHash
Definition SHAMapHash.h:33
+
ripple::SHAMapHash
Definition SHAMapHash.h:34
ripple::SHAMapSyncFilter
Definition SHAMapSyncFilter.h:31
ripple::TaggedCache< SHAMapHash, Blob >
std::uint32_t
diff --git a/CredentialHelpers_8cpp_source.html b/CredentialHelpers_8cpp_source.html index 50b223325f..3471a80879 100644 --- a/CredentialHelpers_8cpp_source.html +++ b/CredentialHelpers_8cpp_source.html @@ -546,9 +546,9 @@ $(document).ready(function() { init_codefold(0); });
ripple::tefINTERNAL
@ tefINTERNAL
Definition TER.h:173
ripple::QualityDirection::out
@ out
ripple::adjustOwnerCount
static bool adjustOwnerCount(ApplyContext &ctx, int count)
Definition SetOracle.cpp:186
-
ripple::maxCredentialsArraySize
std::size_t constexpr maxCredentialsArraySize
The maximum number of credentials can be passed in array.
Definition Protocol.h:106
+
ripple::maxCredentialsArraySize
std::size_t constexpr maxCredentialsArraySize
The maximum number of credentials can be passed in array.
Definition Protocol.h:107
ripple::ManifestDisposition::accepted
@ accepted
Manifest is valid.
-
ripple::maxCredentialTypeLength
std::size_t constexpr maxCredentialTypeLength
The maximum length of a CredentialType inside a Credential.
Definition Protocol.h:103
+
ripple::maxCredentialTypeLength
std::size_t constexpr maxCredentialTypeLength
The maximum length of a CredentialType inside a Credential.
Definition Protocol.h:104
ripple::makeSlice
std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > makeSlice(std::array< T, N > const &a)
Definition Slice.h:244
ripple::tecNO_ENTRY
@ tecNO_ENTRY
Definition TER.h:306
ripple::tecOBJECT_NOT_FOUND
@ tecOBJECT_NOT_FOUND
Definition TER.h:326
diff --git a/Credentials_8cpp_source.html b/Credentials_8cpp_source.html index c2b175e27b..ecab0db80d 100644 --- a/Credentials_8cpp_source.html +++ b/Credentials_8cpp_source.html @@ -544,14 +544,14 @@ $(document).ready(function() { init_codefold(0); });
ripple::keylet::account
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:184
ripple::keylet::ownerDir
Keylet ownerDir(AccountID const &id) noexcept
The root page of an account's directory.
Definition Indexes.cpp:374
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
-
ripple::maxCredentialURILength
std::size_t constexpr maxCredentialURILength
The maximum length of a URI inside a Credential.
Definition Protocol.h:100
+
ripple::maxCredentialURILength
std::size_t constexpr maxCredentialURILength
The maximum length of a URI inside a Credential.
Definition Protocol.h:101
ripple::lsfAccepted
@ lsfAccepted
Definition LedgerFormats.h:195
ripple::describeOwnerDir
std::function< void(SLE::ref)> describeOwnerDir(AccountID const &account)
Definition View.cpp:1048
ripple::preflight1
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
Definition Transactor.cpp:91
ripple::tefINTERNAL
@ tefINTERNAL
Definition TER.h:173
ripple::adjustOwnerCount
static bool adjustOwnerCount(ApplyContext &ctx, int count)
Definition SetOracle.cpp:186
ripple::preflight2
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
Definition Transactor.cpp:160
-
ripple::maxCredentialTypeLength
std::size_t constexpr maxCredentialTypeLength
The maximum length of a CredentialType inside a Credential.
Definition Protocol.h:103
+
ripple::maxCredentialTypeLength
std::size_t constexpr maxCredentialTypeLength
The maximum length of a CredentialType inside a Credential.
Definition Protocol.h:104
ripple::tecNO_ENTRY
@ tecNO_ENTRY
Definition TER.h:306
ripple::tecNO_ISSUER
@ tecNO_ISSUER
Definition TER.h:299
ripple::tecNO_TARGET
@ tecNO_TARGET
Definition TER.h:304
diff --git a/Credentials__test_8cpp_source.html b/Credentials__test_8cpp_source.html index 29f347ff65..a4c35ee6e2 100644 --- a/Credentials__test_8cpp_source.html +++ b/Credentials__test_8cpp_source.html @@ -1242,13 +1242,13 @@ $(document).ready(function() { init_codefold(0); });
ripple::test::reserve
static XRPAmount reserve(jtx::Env &env, std::uint32_t count)
Definition DepositAuth_test.cpp:32
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
ripple::xrpAccount
AccountID const & xrpAccount()
Compute AccountID from public key.
Definition AccountID.cpp:178
-
ripple::maxCredentialURILength
std::size_t constexpr maxCredentialURILength
The maximum length of a URI inside a Credential.
Definition Protocol.h:100
+
ripple::maxCredentialURILength
std::size_t constexpr maxCredentialURILength
The maximum length of a URI inside a Credential.
Definition Protocol.h:101
ripple::tfSellNFToken
constexpr std::uint32_t const tfSellNFToken
Definition TxFlags.h:194
ripple::lsfAccepted
@ lsfAccepted
Definition LedgerFormats.h:195
ripple::tfPassive
constexpr std::uint32_t tfPassive
Definition TxFlags.h:98
ripple::TxSearched::all
@ all
ripple::strHex
std::string strHex(FwdIt begin, FwdIt end)
Definition strHex.h:30
-
ripple::maxCredentialTypeLength
std::size_t constexpr maxCredentialTypeLength
The maximum length of a CredentialType inside a Credential.
Definition Protocol.h:103
+
ripple::maxCredentialTypeLength
std::size_t constexpr maxCredentialTypeLength
The maximum length of a CredentialType inside a Credential.
Definition Protocol.h:104
ripple::tecNO_ENTRY
@ tecNO_ENTRY
Definition TER.h:306
ripple::tecNO_ISSUER
@ tecNO_ISSUER
Definition TER.h:299
ripple::tecNO_TARGET
@ tecNO_TARGET
Definition TER.h:304
diff --git a/DID_8cpp_source.html b/DID_8cpp_source.html index a08102f1c8..fa3663dba7 100644 --- a/DID_8cpp_source.html +++ b/DID_8cpp_source.html @@ -363,11 +363,11 @@ $(document).ready(function() { init_codefold(0); });
ripple::keylet::account
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:184
ripple::keylet::ownerDir
Keylet ownerDir(AccountID const &id) noexcept
The root page of an account's directory.
Definition Indexes.cpp:374
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
-
ripple::maxDIDURILength
std::size_t constexpr maxDIDURILength
The maximum length of a URI inside a DID.
Definition Protocol.h:91
-
ripple::maxDIDAttestationLength
std::size_t constexpr maxDIDAttestationLength
The maximum length of an Attestation inside a DID.
Definition Protocol.h:94
+
ripple::maxDIDURILength
std::size_t constexpr maxDIDURILength
The maximum length of a URI inside a DID.
Definition Protocol.h:92
+
ripple::maxDIDAttestationLength
std::size_t constexpr maxDIDAttestationLength
The maximum length of an Attestation inside a DID.
Definition Protocol.h:95
ripple::addSLE
TER addSLE(ApplyContext &ctx, std::shared_ptr< SLE > const &sle, AccountID const &owner)
Definition DID.cpp:81
ripple::set
bool set(T &target, std::string const &name, Section const &section)
Set a value from a configuration Section If the named value is not found or doesn't parse as a T,...
Definition BasicConfig.h:315
-
ripple::maxDIDDocumentLength
std::size_t constexpr maxDIDDocumentLength
The maximum length of a Data element inside a DID.
Definition Protocol.h:88
+
ripple::maxDIDDocumentLength
std::size_t constexpr maxDIDDocumentLength
The maximum length of a Data element inside a DID.
Definition Protocol.h:89
ripple::describeOwnerDir
std::function< void(SLE::ref)> describeOwnerDir(AccountID const &account)
Definition View.cpp:1048
ripple::preflight1
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
Definition Transactor.cpp:91
ripple::tefBAD_LEDGER
@ tefBAD_LEDGER
Definition TER.h:170
diff --git a/DelegateSet_8cpp_source.html b/DelegateSet_8cpp_source.html index ce03d1bf5d..1c5e95aac5 100644 --- a/DelegateSet_8cpp_source.html +++ b/DelegateSet_8cpp_source.html @@ -287,7 +287,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::keylet::account
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:184
ripple::keylet::ownerDir
Keylet ownerDir(AccountID const &id) noexcept
The root page of an account's directory.
Definition Indexes.cpp:374
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
-
ripple::permissionMaxSize
std::size_t constexpr permissionMaxSize
The maximum number of delegate permissions an account can grant.
Definition Protocol.h:169
+
ripple::permissionMaxSize
std::size_t constexpr permissionMaxSize
The maximum number of delegate permissions an account can grant.
Definition Protocol.h:170
ripple::describeOwnerDir
std::function< void(SLE::ref)> describeOwnerDir(AccountID const &account)
Definition View.cpp:1048
ripple::preflight1
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
Definition Transactor.cpp:91
ripple::tefBAD_LEDGER
@ tefBAD_LEDGER
Definition TER.h:170
diff --git a/DeleteAccount_8cpp_source.html b/DeleteAccount_8cpp_source.html index 349c8d839a..f002240341 100644 --- a/DeleteAccount_8cpp_source.html +++ b/DeleteAccount_8cpp_source.html @@ -587,7 +587,7 @@ $(document).ready(function() { init_codefold(0); });
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
ripple::AccountID
base_uint< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
Definition AccountID.h:48
ripple::toBase58
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
Definition AccountID.cpp:114
-
ripple::maxDeletableDirEntries
std::size_t constexpr maxDeletableDirEntries
The maximum number of owner directory entries for account to be deletable.
Definition Protocol.h:65
+
ripple::maxDeletableDirEntries
std::size_t constexpr maxDeletableDirEntries
The maximum number of owner directory entries for account to be deletable.
Definition Protocol.h:66
ripple::cdirFirst
bool cdirFirst(ReadView const &view, uint256 const &root, std::shared_ptr< SLE const > &page, unsigned int &index, uint256 &entry)
Returns the first entry in the directory, advancing the index.
Definition View.cpp:146
ripple::uint256
base_uint< 256 > uint256
Definition base_uint.h:558
ripple::removeSignersFromLedger
static TER removeSignersFromLedger(Application &app, ApplyView &view, Keylet const &accountKeylet, Keylet const &ownerDirKeylet, Keylet const &signerListKeylet, beast::Journal j)
Definition SetSignerList.cpp:197
diff --git a/DeliveredAmount_8h_source.html b/DeliveredAmount_8h_source.html index 1de6275286..3d401a8d9c 100644 --- a/DeliveredAmount_8h_source.html +++ b/DeliveredAmount_8h_source.html @@ -163,7 +163,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::RPC::getDeliveredAmount
std::optional< STAmount > getDeliveredAmount(RPC::Context const &context, std::shared_ptr< STTx const > const &serializedTx, TxMeta const &transactionMeta, LedgerIndex const &ledgerIndex)
Definition DeliveredAmount.cpp:185
ripple::RPC::insertDeliveredAmount
void insertDeliveredAmount(Json::Value &meta, ReadView const &, std::shared_ptr< STTx const > const &serializedTx, TxMeta const &)
Add a delivered_amount field to the meta input/output parameter.
Definition DeliveredAmount.cpp:129
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
-
ripple::LedgerIndex
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:129
+
ripple::LedgerIndex
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:130
std::optional
std::shared_ptr
diff --git a/DepositAuthorized_8cpp_source.html b/DepositAuthorized_8cpp_source.html index aeaef2308f..db6ef5c6a9 100644 --- a/DepositAuthorized_8cpp_source.html +++ b/DepositAuthorized_8cpp_source.html @@ -312,7 +312,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::lsfAccepted
@ lsfAccepted
Definition LedgerFormats.h:195
ripple::rpcError
Json::Value rpcError(int iError)
Definition RPCErr.cpp:31
ripple::doDepositAuthorized
Json::Value doDepositAuthorized(RPC::JsonContext &context)
Definition DepositAuthorized.cpp:41
-
ripple::maxCredentialsArraySize
std::size_t constexpr maxCredentialsArraySize
The maximum number of credentials can be passed in array.
Definition Protocol.h:106
+
ripple::maxCredentialsArraySize
std::size_t constexpr maxCredentialsArraySize
The maximum number of credentials can be passed in array.
Definition Protocol.h:107
std::vector::push_back
T push_back(T... args)
std::vector::reserve
T reserve(T... args)
std::set
diff --git a/DepositAuthorized__test_8cpp_source.html b/DepositAuthorized__test_8cpp_source.html index 2d902415ff..9b3ea69100 100644 --- a/DepositAuthorized__test_8cpp_source.html +++ b/DepositAuthorized__test_8cpp_source.html @@ -777,7 +777,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::test::jtx::XRP
XRP_t const XRP
Converts to XRP Issue or STAmount.
Definition amount.cpp:105
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
ripple::asfDepositAuth
constexpr std::uint32_t asfDepositAuth
Definition TxFlags.h:85
-
ripple::maxCredentialsArraySize
std::size_t constexpr maxCredentialsArraySize
The maximum number of credentials can be passed in array.
Definition Protocol.h:106
+
ripple::maxCredentialsArraySize
std::size_t constexpr maxCredentialsArraySize
The maximum number of credentials can be passed in array.
Definition Protocol.h:107
ripple::authorized
static bool authorized(Port const &port, std::map< std::string, std::string > const &h)
Definition ServerHandler.cpp:85
std::vector::size
T size(T... args)
std::vector
diff --git a/DepositPreauth_8cpp_source.html b/DepositPreauth_8cpp_source.html index 8236d773fa..52bbf2c63b 100644 --- a/DepositPreauth_8cpp_source.html +++ b/DepositPreauth_8cpp_source.html @@ -456,7 +456,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::tefBAD_LEDGER
@ tefBAD_LEDGER
Definition TER.h:170
ripple::tefINTERNAL
@ tefINTERNAL
Definition TER.h:173
ripple::adjustOwnerCount
static bool adjustOwnerCount(ApplyContext &ctx, int count)
Definition SetOracle.cpp:186
-
ripple::maxCredentialsArraySize
std::size_t constexpr maxCredentialsArraySize
The maximum number of credentials can be passed in array.
Definition Protocol.h:106
+
ripple::maxCredentialsArraySize
std::size_t constexpr maxCredentialsArraySize
The maximum number of credentials can be passed in array.
Definition Protocol.h:107
ripple::preflight2
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
Definition Transactor.cpp:160
ripple::tecNO_ENTRY
@ tecNO_ENTRY
Definition TER.h:306
ripple::tecNO_ISSUER
@ tecNO_ISSUER
Definition TER.h:299
diff --git a/Directory__test_8cpp_source.html b/Directory__test_8cpp_source.html index 02f13f66b5..cf2e197aac 100644 --- a/Directory__test_8cpp_source.html +++ b/Directory__test_8cpp_source.html @@ -627,11 +627,11 @@ $(document).ready(function() { init_codefold(0); });
ripple::test::jtx::Env
A transaction testing environment.
Definition Env.h:121
ripple::test::jtx::Env::closed
std::shared_ptr< ReadView const > closed()
Returns the last closed ledger.
Definition Env.cpp:115
ripple::test::jtx::Env::seq
std::uint32_t seq(Account const &account) const
Returns the next sequence number on account.
Definition Env.cpp:258
-
ripple::test::jtx::Env::tx
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:506
+
ripple::test::jtx::Env::tx
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:515
ripple::test::jtx::Env::current
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition Env.h:331
ripple::test::jtx::Env::close
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
Definition Env.cpp:121
ripple::test::jtx::Env::trust
void trust(STAmount const &amount, Account const &account)
Establish trust lines.
Definition Env.cpp:310
-
ripple::test::jtx::Env::enableFeature
void enableFeature(uint256 const feature)
Definition Env.cpp:641
+
ripple::test::jtx::Env::enableFeature
void enableFeature(uint256 const feature)
Definition Env.cpp:650
ripple::test::jtx::Env::fund
void fund(bool setDefaultRipple, STAmount const &amount, Account const &account)
Definition Env.cpp:279
std::uint64_t
std::is_same_v
T is_same_v
@@ -651,7 +651,7 @@ $(document).ready(function() { init_codefold(0); });
ripple::test::jtx::offer_cancel
Json::Value offer_cancel(Account const &account, std::uint32_t offerSeq)
Cancel an offer.
Definition offer.cpp:46
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
ripple::xrpIssue
Issue const & xrpIssue()
Returns an asset specifier that represents XRP.
Definition Issue.h:115
-
ripple::dirNodeMaxEntries
std::size_t constexpr dirNodeMaxEntries
The maximum number of entries per directory page.
Definition Protocol.h:56
+
ripple::dirNodeMaxEntries
std::size_t constexpr dirNodeMaxEntries
The maximum number of entries per directory page.
Definition Protocol.h:57
ripple::getQualityNext
uint256 getQualityNext(uint256 const &uBase)
Definition Indexes.cpp:141
ripple::to_string
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:630
ripple::ReleaseStrongRefAction::noop
@ noop
diff --git a/Env_8cpp_source.html b/Env_8cpp_source.html index c7418476f7..95263e9064 100644 --- a/Env_8cpp_source.html +++ b/Env_8cpp_source.html @@ -625,180 +625,189 @@ $(document).ready(function() { init_codefold(0); });
499 close();
500 }
501 auto const item = closed()->txRead(txid_);
-
502 return item.second;
-
503}
+
502 auto const result = item.second;
+
503 if (result == nullptr)
+
504 {
+
505 test.log << "Env::meta: no metadata for txid: " << txid_ << std::endl;
+
506 test.log << "This is probably because the transaction failed with a "
+
507 "non-tec error."
+
508 << std::endl;
+
509 Throw<std::runtime_error>("Env::meta: no metadata for txid");
+
510 }
+
511 return result;
+
512}
-
504
-
505std::shared_ptr<STTx const>
-
-
506Env::tx() const
-
507{
-
508 return current()->txRead(txid_).first;
-
509}
+
513
+
514std::shared_ptr<STTx const>
+
+
515Env::tx() const
+
516{
+
517 return current()->txRead(txid_).first;
+
518}
-
510
-
511void
-
- -
513{
-
514 auto& jv = jt.jv;
-
515 if (jt.signer)
-
516 return jt.signer(*this, jt);
-
517 if (!jt.fill_sig)
-
518 return;
-
519 auto const account = jv.isMember(sfDelegate.jsonName)
-
520 ? lookup(jv[sfDelegate.jsonName].asString())
-
521 : lookup(jv[jss::Account].asString());
-
522 if (!app().checkSigs())
-
523 {
-
524 jv[jss::SigningPubKey] = strHex(account.pk().slice());
-
525 // dummy sig otherwise STTx is invalid
-
526 jv[jss::TxnSignature] = "00";
+
519
+
520void
+
+ +
522{
+
523 auto& jv = jt.jv;
+
524 if (jt.signer)
+
525 return jt.signer(*this, jt);
+
526 if (!jt.fill_sig)
527 return;
-
528 }
-
529 auto const ar = le(account);
-
530 if (ar && ar->isFieldPresent(sfRegularKey))
-
531 jtx::sign(jv, lookup(ar->getAccountID(sfRegularKey)));
-
532 else
-
533 jtx::sign(jv, account);
-
534}
+
528 auto const account = jv.isMember(sfDelegate.jsonName)
+
529 ? lookup(jv[sfDelegate.jsonName].asString())
+
530 : lookup(jv[jss::Account].asString());
+
531 if (!app().checkSigs())
+
532 {
+
533 jv[jss::SigningPubKey] = strHex(account.pk().slice());
+
534 // dummy sig otherwise STTx is invalid
+
535 jv[jss::TxnSignature] = "00";
+
536 return;
+
537 }
+
538 auto const ar = le(account);
+
539 if (ar && ar->isFieldPresent(sfRegularKey))
+
540 jtx::sign(jv, lookup(ar->getAccountID(sfRegularKey)));
+
541 else
+
542 jtx::sign(jv, account);
+
543}
-
535
-
536void
-
- -
538{
-
539 auto& jv = jt.jv;
-
540 if (jt.fill_fee)
-
541 jtx::fill_fee(jv, *current());
-
542 if (jt.fill_seq)
-
543 jtx::fill_seq(jv, *current());
544
-
545 if (jt.fill_netid)
-
546 {
-
547 uint32_t networkID = app().config().NETWORK_ID;
-
548 if (!jv.isMember(jss::NetworkID) && networkID > 1024)
-
549 jv[jss::NetworkID] = std::to_string(networkID);
-
550 }
-
551
-
552 // Must come last
-
553 try
-
554 {
- -
556 }
-
557 catch (parse_error const&)
-
558 {
- -
560 test.log << "parse failed:\n" << pretty(jv) << std::endl;
-
561 Rethrow();
-
562 }
-
563}
+
545void
+
+ +
547{
+
548 auto& jv = jt.jv;
+
549 if (jt.fill_fee)
+
550 jtx::fill_fee(jv, *current());
+
551 if (jt.fill_seq)
+
552 jtx::fill_seq(jv, *current());
+
553
+
554 if (jt.fill_netid)
+
555 {
+
556 uint32_t networkID = app().config().NETWORK_ID;
+
557 if (!jv.isMember(jss::NetworkID) && networkID > 1024)
+
558 jv[jss::NetworkID] = std::to_string(networkID);
+
559 }
+
560
+
561 // Must come last
+
562 try
+
563 {
+ +
565 }
+
566 catch (parse_error const&)
+
567 {
+ +
569 test.log << "parse failed:\n" << pretty(jv) << std::endl;
+
570 Rethrow();
+
571 }
+
572}
-
564
- -
- -
567{
-
568 // The parse must succeed, since we
-
569 // generated the JSON ourselves.
- -
571 try
-
572 {
-
573 obj = jtx::parse(jt.jv);
-
574 }
-
575 catch (jtx::parse_error const&)
-
576 {
-
577 test.log << "Exception: parse_error\n" << pretty(jt.jv) << std::endl;
-
578 Rethrow();
-
579 }
-
580
-
581 try
-
582 {
-
583 return sterilize(STTx{std::move(*obj)});
-
584 }
-
585 catch (std::exception const&)
-
586 {
-
587 }
-
588 return nullptr;
-
589}
+
573
+ +
+ +
576{
+
577 // The parse must succeed, since we
+
578 // generated the JSON ourselves.
+ +
580 try
+
581 {
+
582 obj = jtx::parse(jt.jv);
+
583 }
+
584 catch (jtx::parse_error const&)
+
585 {
+
586 test.log << "Exception: parse_error\n" << pretty(jt.jv) << std::endl;
+
587 Rethrow();
+
588 }
+
589
+
590 try
+
591 {
+
592 return sterilize(STTx{std::move(*obj)});
+
593 }
+
594 catch (std::exception const&)
+
595 {
+
596 }
+
597 return nullptr;
+
598}
-
590
- -
- -
593{
-
594 // The parse must succeed, since we
-
595 // generated the JSON ourselves.
- -
597 try
-
598 {
-
599 obj = jtx::parse(jt.jv);
-
600 }
-
601 catch (jtx::parse_error const&)
-
602 {
-
603 test.log << "Exception: parse_error\n" << pretty(jt.jv) << std::endl;
-
604 Rethrow();
-
605 }
-
606
-
607 try
-
608 {
-
609 return std::make_shared<STTx const>(std::move(*obj));
-
610 }
-
611 catch (std::exception const&)
-
612 {
-
613 }
-
614 return nullptr;
-
615}
+
599
+ +
+ +
602{
+
603 // The parse must succeed, since we
+
604 // generated the JSON ourselves.
+ +
606 try
+
607 {
+
608 obj = jtx::parse(jt.jv);
+
609 }
+
610 catch (jtx::parse_error const&)
+
611 {
+
612 test.log << "Exception: parse_error\n" << pretty(jt.jv) << std::endl;
+
613 Rethrow();
+
614 }
+
615
+
616 try
+
617 {
+
618 return std::make_shared<STTx const>(std::move(*obj));
+
619 }
+
620 catch (std::exception const&)
+
621 {
+
622 }
+
623 return nullptr;
+
624}
-
616
- -
- -
619 unsigned apiVersion,
-
620 std::vector<std::string> const& args,
- -
622{
-
623 auto response =
-
624 rpcClient(args, app().config(), app().logs(), apiVersion, headers);
625
-
626 for (unsigned ctr = 0; (ctr < retries_) and (response.first == rpcINTERNAL);
-
627 ++ctr)
-
628 {
-
629 JLOG(journal.error())
-
630 << "Env::do_rpc error, retrying, attempt #" << ctr + 1 << " ...";
- -
632
-
633 response =
-
634 rpcClient(args, app().config(), app().logs(), apiVersion, headers);
-
635 }
-
636
-
637 return response.second;
-
638}
+ +
+ +
628 unsigned apiVersion,
+
629 std::vector<std::string> const& args,
+ +
631{
+
632 auto response =
+
633 rpcClient(args, app().config(), app().logs(), apiVersion, headers);
+
634
+
635 for (unsigned ctr = 0; (ctr < retries_) and (response.first == rpcINTERNAL);
+
636 ++ctr)
+
637 {
+
638 JLOG(journal.error())
+
639 << "Env::do_rpc error, retrying, attempt #" << ctr + 1 << " ...";
+ +
641
+
642 response =
+
643 rpcClient(args, app().config(), app().logs(), apiVersion, headers);
+
644 }
+
645
+
646 return response.second;
+
647}
-
639
-
640void
-
- -
642{
-
643 // Env::close() must be called for feature
-
644 // enable to take place.
-
645 app().config().features.insert(feature);
-
646}
+
648
+
649void
+
+ +
651{
+
652 // Env::close() must be called for feature
+
653 // enable to take place.
+
654 app().config().features.insert(feature);
+
655}
-
647
-
648void
-
- -
650{
-
651 // Env::close() must be called for feature
-
652 // enable to take place.
-
653 app().config().features.erase(feature);
-
654}
+
656
+
657void
+
+ +
659{
+
660 // Env::close() must be called for feature
+
661 // enable to take place.
+
662 app().config().features.erase(feature);
+
663}
-
655
-
656} // namespace jtx
-
657} // namespace test
-
658} // namespace ripple
+
664
+
665} // namespace jtx
+
666} // namespace test
+
667} // namespace ripple
constexpr char const * c_str() const
Definition json_value.h:76
Represents a JSON value.
Definition json_value.h:149
@@ -845,7 +854,7 @@ $(document).ready(function() { init_codefold(0); });
Immutable cryptographic account descriptor.
Definition Account.h:39
std::string const & name() const
Return the name.
Definition Account.h:83
std::shared_ptr< ReadView const > closed()
Returns the last closed ledger.
Definition Env.cpp:115
-
void disableFeature(uint256 const feature)
Definition Env.cpp:649
+
void disableFeature(uint256 const feature)
Definition Env.cpp:658
bool parseFailureExpected_
Definition Env.h:740
static ParsedResult parseResult(Json::Value const &jr)
Gets the TER result and didApply flag from a RPC Json result object.
Definition Env.cpp:327
std::uint32_t ownerCount(Account const &account) const
Return the number of objects owned by an account.
Definition Env.cpp:249
@@ -854,24 +863,24 @@ $(document).ready(function() { init_codefold(0); });
beast::unit_test::suite & test
Definition Env.h:123
PrettyAmount limit(Account const &account, Issue const &issue) const
Returns the IOU limit on an account.
Definition Env.cpp:237
-
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:506
+
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:515
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition Env.h:331
void postconditions(JTx const &jt, ParsedResult const &parsed, Json::Value const &jr=Json::Value())
Check expected postconditions of JTx submission.
Definition Env.cpp:433
void sign_and_submit(JTx const &jt, Json::Value params=Json::nullValue)
Use the submit RPC command with a provided JTx object.
Definition Env.cpp:395
-
virtual void autofill(JTx &jt)
Definition Env.cpp:537
+
virtual void autofill(JTx &jt)
Definition Env.cpp:546
AbstractClient & client()
Returns the connected client.
Definition Env.h:291
-
void autofill_sig(JTx &jt)
Definition Env.cpp:512
+
void autofill_sig(JTx &jt)
Definition Env.cpp:521
void trust(STAmount const &amount, Account const &account)
Establish trust lines.
Definition Env.cpp:310
-
Json::Value do_rpc(unsigned apiVersion, std::vector< std::string > const &args, std::unordered_map< std::string, std::string > const &headers={})
Definition Env.cpp:618
+
Json::Value do_rpc(unsigned apiVersion, std::vector< std::string > const &args, std::unordered_map< std::string, std::string > const &headers={})
Definition Env.cpp:627
-
std::shared_ptr< STTx const > st(JTx const &jt)
Create a STTx from a JTx The framework requires that JSON is valid.
Definition Env.cpp:566
-
void enableFeature(uint256 const feature)
Definition Env.cpp:641
+
std::shared_ptr< STTx const > st(JTx const &jt)
Create a STTx from a JTx The framework requires that JSON is valid.
Definition Env.cpp:575
+
void enableFeature(uint256 const feature)
Definition Env.cpp:650
Account const & master
Definition Env.h:125
Account const & lookup(AccountID const &id) const
Returns the Account given the AccountID.
Definition Env.cpp:162
unsigned retries_
Definition Env.h:741
JTx jt(JsonValue &&jv, FN const &... fN)
Create a JTx from parameters.
Definition Env.h:505
-
std::shared_ptr< STTx const > ust(JTx const &jt)
Create a STTx from a JTx without sanitizing Use to inject bogus values into test transactions by firs...
Definition Env.cpp:592
+
std::shared_ptr< STTx const > ust(JTx const &jt)
Create a STTx from a JTx without sanitizing Use to inject bogus values into test transactions by firs...
Definition Env.cpp:601
Application & app()
Definition Env.h:261
beast::Journal const journal
Definition Env.h:162
ManualTimeKeeper & timeKeeper()
Definition Env.h:273
diff --git a/Env_8h_source.html b/Env_8h_source.html index 0a09fe17d1..ac13094802 100644 --- a/Env_8h_source.html +++ b/Env_8h_source.html @@ -790,7 +790,7 @@ $(document).ready(function() { init_codefold(0); });
Json::Value json(JsonValue &&jv, FN const &... fN)
Create JSON from parameters.
Definition Env.h:531
std::shared_ptr< ReadView const > closed()
Returns the last closed ledger.
Definition Env.cpp:115
void trace(int howMany=-1)
Turn on JSON tracing.
Definition Env.h:403
-
void disableFeature(uint256 const feature)
Definition Env.cpp:649
+
void disableFeature(uint256 const feature)
Definition Env.cpp:658
bool parseFailureExpected_
Definition Env.h:740
static ParsedResult parseResult(Json::Value const &jr)
Gets the TER result and didApply flag from a RPC Json result object.
Definition Env.cpp:327
Env(beast::unit_test::suite &suite_, std::unique_ptr< Config > config, std::unique_ptr< Logs > logs=nullptr, beast::severities::Severity thresh=beast::severities::kError)
Create Env using suite and Config pointer.
Definition Env.h:233
@@ -808,7 +808,7 @@ $(document).ready(function() { init_codefold(0); });
bool close(std::chrono::duration< Rep, Period > const &elapsed)
Close and advance the ledger.
Definition Env.h:379
PrettyAmount limit(Account const &account, Issue const &issue) const
Returns the IOU limit on an account.
Definition Env.cpp:237
AppBundle bundle_
Definition Env.h:159
-
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:506
+
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:515
void invoke(JTx &jt, FN const &... fN)
Definition Env.h:777
Env & operator=(Env const &)=delete
Env & operator()(JsonValue &&jv, FN const &... fN)
Definition Env.h:587
@@ -819,21 +819,21 @@ $(document).ready(function() { init_codefold(0); });
bool enabled(uint256 feature) const
Definition Env.h:635
void sign_and_submit(JTx const &jt, Json::Value params=Json::nullValue)
Use the submit RPC command with a provided JTx object.
Definition Env.cpp:395
AbstractClient & client()
Returns the connected client.
Definition Env.h:291
-
void autofill_sig(JTx &jt)
Definition Env.cpp:512
+
void autofill_sig(JTx &jt)
Definition Env.cpp:521
void trust(STAmount const &amount, Account const &account)
Establish trust lines.
Definition Env.cpp:310
void fund(STAmount const &amount, Arg const &arg, Args const &... args)
Create a new account with some XRP.
Definition Env.h:687
-
Json::Value do_rpc(unsigned apiVersion, std::vector< std::string > const &args, std::unordered_map< std::string, std::string > const &headers={})
Definition Env.cpp:618
+
Json::Value do_rpc(unsigned apiVersion, std::vector< std::string > const &args, std::unordered_map< std::string, std::string > const &headers={})
Definition Env.cpp:627
void invoke(STTx &stx, FN const &... fN)
Definition Env.h:769
-
std::shared_ptr< STTx const > st(JTx const &jt)
Create a STTx from a JTx The framework requires that JSON is valid.
Definition Env.cpp:566
-
void enableFeature(uint256 const feature)
Definition Env.cpp:641
+
std::shared_ptr< STTx const > st(JTx const &jt)
Create a STTx from a JTx The framework requires that JSON is valid.
Definition Env.cpp:575
+
void enableFeature(uint256 const feature)
Definition Env.cpp:650
Env(beast::unit_test::suite &suite_)
Create Env with only the current test suite.
Definition Env.h:254
Account const & master
Definition Env.h:125
Account const & lookup(AccountID const &id) const
Returns the Account given the AccountID.
Definition Env.cpp:162
unsigned retries_
Definition Env.h:741
JTx jt(JsonValue &&jv, FN const &... fN)
Create a JTx from parameters.
Definition Env.h:505
NetClock::time_point now()
Returns the current network time.
Definition Env.h:284
-
std::shared_ptr< STTx const > ust(JTx const &jt)
Create a STTx from a JTx without sanitizing Use to inject bogus values into test transactions by firs...
Definition Env.cpp:592
+
std::shared_ptr< STTx const > ust(JTx const &jt)
Create a STTx from a JTx without sanitizing Use to inject bogus values into test transactions by firs...
Definition Env.cpp:601
Application & app()
Definition Env.h:261
beast::Journal const journal
Definition Env.h:162
ManualTimeKeeper & timeKeeper()
Definition Env.h:273
diff --git a/Env__test_8cpp_source.html b/Env__test_8cpp_source.html index f6631f812e..2d9aeaaacd 100644 --- a/Env__test_8cpp_source.html +++ b/Env__test_8cpp_source.html @@ -1135,7 +1135,7 @@ $(document).ready(function() { init_codefold(0); });
std::shared_ptr< ReadView const > closed()
Returns the last closed ledger.
Definition Env.cpp:115
std::uint32_t seq(Account const &account) const
Returns the next sequence number on account.
Definition Env.cpp:258
void require(Args const &... args)
Check a set of requirements.
Definition Env.h:544
-
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:506
+
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:515
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition Env.h:331
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
Definition Env.cpp:121
void trust(STAmount const &amount, Account const &account)
Establish trust lines.
Definition Env.cpp:310
diff --git a/EscrowToken__test_8cpp_source.html b/EscrowToken__test_8cpp_source.html index bffe0fe75a..979e7aa118 100644 --- a/EscrowToken__test_8cpp_source.html +++ b/EscrowToken__test_8cpp_source.html @@ -4116,7 +4116,7 @@ $(document).ready(function() { init_codefold(0); });
constexpr std::uint32_t asfAllowTrustLineLocking
Definition TxFlags.h:95
constexpr std::uint32_t const tfMPTCanTransfer
Definition TxFlags.h:149
Rate transferRate(ReadView const &view, AccountID const &issuer)
Returns IOU issuer transfer fee as Rate.
Definition View.cpp:760
-
std::uint64_t constexpr maxMPTokenAmount
The maximum amount of MPTokenIssuance.
Definition Protocol.h:116
+
std::uint64_t constexpr maxMPTokenAmount
The maximum amount of MPTokenIssuance.
Definition Protocol.h:117
constexpr std::uint32_t const tfMPTUnauthorize
Definition TxFlags.h:155
diff --git a/FetchPack__test_8cpp_source.html b/FetchPack__test_8cpp_source.html index dd744cfd54..81e400311e 100644 --- a/FetchPack__test_8cpp_source.html +++ b/FetchPack__test_8cpp_source.html @@ -285,8 +285,8 @@ $(document).ready(function() { init_codefold(0); });
A testsuite class.
Definition suite.h:55
void pass()
Record a successful test condition.
Definition suite.h:511
- -
uint256 const & as_uint256() const
Definition SHAMapHash.h:43
+ +
uint256 const & as_uint256() const
Definition SHAMapHash.h:44
A SHAMap is both a radix tree with a fan-out of 16 and a Merkle tree.
Definition SHAMap.h:99
diff --git a/GetAggregatePrice_8cpp_source.html b/GetAggregatePrice_8cpp_source.html index ade72de201..ce48ed7169 100644 --- a/GetAggregatePrice_8cpp_source.html +++ b/GetAggregatePrice_8cpp_source.html @@ -498,7 +498,7 @@ $(document).ready(function() { init_codefold(0); });
@ rpcOBJECT_NOT_FOUND
Definition ErrorCodes.h:143
@ rpcINVALID_PARAMS
Definition ErrorCodes.h:84
@ rpcINTERNAL
Definition ErrorCodes.h:130
-
std::size_t constexpr maxTrim
The maximum percentage of outliers to trim.
Definition Protocol.h:165
+
std::size_t constexpr maxTrim
The maximum percentage of outliers to trim.
Definition Protocol.h:166
Issue const & noIssue()
Returns an asset specifier that represents no account and currency.
Definition Issue.h:123
bimap< multiset_of< std::uint32_t, std::greater< std::uint32_t > >, multiset_of< STAmount > > Prices
static void iteratePriceData(RPC::JsonContext &context, std::shared_ptr< SLE const > const &sle, std::function< bool(STObject const &)> &&f)
Calls callback "f" on the ledger-object sle and up to three previous metadata objects.
diff --git a/GetCounts_8cpp_source.html b/GetCounts_8cpp_source.html index c158eabeb0..89143af70c 100644 --- a/GetCounts_8cpp_source.html +++ b/GetCounts_8cpp_source.html @@ -200,7 +200,7 @@ $(document).ready(function() { init_codefold(0); });
114 ret[jss::treenode_cache_size] =
115 app.getNodeFamily().getTreeNodeCache()->getCacheSize();
116 ret[jss::treenode_track_size] =
-
117 static_cast<int>(app.getNodeFamily().getTreeNodeCache()->size());
+
117 app.getNodeFamily().getTreeNodeCache()->getTrackSize();
118
119 std::string uptime;
120 auto s = UptimeClock::now();
diff --git a/InboundLedger_8cpp_source.html b/InboundLedger_8cpp_source.html index a12fabe4ce..c31dd0048d 100644 --- a/InboundLedger_8cpp_source.html +++ b/InboundLedger_8cpp_source.html @@ -1538,8 +1538,8 @@ $(document).ready(function() { init_codefold(0); });
std::string get() const
- -
bool isZero() const
Definition SHAMapHash.h:53
+ +
bool isZero() const
Definition SHAMapHash.h:54
A SHAMap is both a radix tree with a fan-out of 16 and a Merkle tree.
Definition SHAMap.h:99
SHAMapHash getHash() const
Definition SHAMap.cpp:889
diff --git a/InvariantCheck_8cpp_source.html b/InvariantCheck_8cpp_source.html index 7844e0c08a..1041ca4d61 100644 --- a/InvariantCheck_8cpp_source.html +++ b/InvariantCheck_8cpp_source.html @@ -2367,8 +2367,8 @@ $(document).ready(function() { init_codefold(0); });
TxType
Transaction type identifiers.
Definition TxFormats.h:57
static bool validBalances(STAmount const &amount, STAmount const &amount2, STAmount const &lptAMMBalance, ValidAMM::ZeroAllowed zeroAllowed)
base_uint< 256 > uint256
Definition base_uint.h:558
-
std::size_t constexpr maxPermissionedDomainCredentialsArraySize
The maximum number of credentials can be passed in array for permissioned domain.
Definition Protocol.h:110
-
std::uint64_t constexpr maxMPTokenAmount
The maximum amount of MPTokenIssuance.
Definition Protocol.h:116
+
std::size_t constexpr maxPermissionedDomainCredentialsArraySize
The maximum number of credentials can be passed in array for permissioned domain.
Definition Protocol.h:111
+
std::uint64_t constexpr maxMPTokenAmount
The maximum amount of MPTokenIssuance.
Definition Protocol.h:117
@ lsfHighDeepFreeze
@ lsfDefaultRipple
@@ -2380,7 +2380,7 @@ $(document).ready(function() { init_codefold(0); });
@ lsfLowDeepFreeze
constexpr XRPAmount INITIAL_XRP
Configure the native currency.
-
std::size_t constexpr dirMaxTokensPerPage
The maximum number of items in an NFT page.
Definition Protocol.h:62
+
std::size_t constexpr dirMaxTokensPerPage
The maximum number of items in an NFT page.
Definition Protocol.h:63
std::array< keyletDesc< AccountID const & >, 6 > const directAccountKeylets
Definition Indexes.h:382
std::pair< STAmount, STAmount > ammPoolHolds(ReadView const &view, AccountID const &ammAccountID, Issue const &issue1, Issue const &issue2, FreezeHandling freezeHandling, beast::Journal const j)
Get AMM pool balances.
Definition AMMUtils.cpp:31
@ tecINCOMPLETE
Definition TER.h:335
diff --git a/Invariants__test_8cpp_source.html b/Invariants__test_8cpp_source.html index c4fa570066..c9783fc569 100644 --- a/Invariants__test_8cpp_source.html +++ b/Invariants__test_8cpp_source.html @@ -1811,7 +1811,7 @@ $(document).ready(function() { init_codefold(0); });
constexpr std::uint32_t tfSetDeepFreeze
Definition TxFlags.h:120
base_uint< 256 > uint256
Definition base_uint.h:558
-
std::size_t constexpr maxPermissionedDomainCredentialsArraySize
The maximum number of credentials can be passed in array for permissioned domain.
Definition Protocol.h:110
+
std::size_t constexpr maxPermissionedDomainCredentialsArraySize
The maximum number of credentials can be passed in array for permissioned domain.
Definition Protocol.h:111
@ lsfHighDeepFreeze
@ lsfRequireDestTag
@ lsfDefaultRipple
diff --git a/KeyCache__test_8cpp_source.html b/KeyCache__test_8cpp_source.html index b738410ecd..95f1208ecd 100644 --- a/KeyCache__test_8cpp_source.html +++ b/KeyCache__test_8cpp_source.html @@ -191,7 +191,7 @@ $(document).ready(function() { init_codefold(0); });
Map/cache combination.
Definition TaggedCache.h:62
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
-
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:129
+
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:130
-
73
- -
- -
76{
-
77 if (auto it = mLedgersByIndex.find(index); it != mLedgersByIndex.end())
-
78 return it->second;
-
79 return {};
-
80}
+
75
+ +
+ +
78{
+ +
80 if (auto it = mLedgersByIndex.find(index); it != mLedgersByIndex.end())
+
81 return it->second;
+
82 return {};
+
83}
-
81
- -
- -
84{
-
85 {
-
86 auto it = mLedgersByIndex.find(index);
-
87
-
88 if (it != mLedgersByIndex.end())
-
89 {
-
90 uint256 hash = it->second;
-
91 return getLedgerByHash(hash);
-
92 }
-
93 }
-
94
- -
96
-
97 if (!ret)
-
98 return ret;
+
84
+ +
+ +
87{
+
88 {
+ +
90 auto it = mLedgersByIndex.find(index);
+
91
+
92 if (it != mLedgersByIndex.end())
+
93 {
+
94 uint256 hash = it->second;
+
95 sl.unlock();
+
96 return getLedgerByHash(hash);
+
97 }
+
98 }
99
-
100 XRPL_ASSERT(
-
101 ret->info().seq == index,
-
102 "ripple::LedgerHistory::getLedgerBySeq : result sequence match");
-
103
-
104 {
-
105 // Add this ledger to the local tracking by index
-
106
-
107 XRPL_ASSERT(
-
108 ret->isImmutable(),
-
109 "ripple::LedgerHistory::getLedgerBySeq : immutable result ledger");
-
110 m_ledgers_by_hash.canonicalize_replace_client(ret->info().hash, ret);
-
111 mLedgersByIndex[ret->info().seq] = ret->info().hash;
-
112 return (ret->info().seq == index) ? ret : nullptr;
-
113 }
-
114}
+ +
101
+
102 if (!ret)
+
103 return ret;
+
104
+
105 XRPL_ASSERT(
+
106 ret->info().seq == index,
+
107 "ripple::LedgerHistory::getLedgerBySeq : result sequence match");
+
108
+
109 {
+
110 // Add this ledger to the local tracking by index
+ +
112
+
113 XRPL_ASSERT(
+
114 ret->isImmutable(),
+
115 "ripple::LedgerHistory::getLedgerBySeq : immutable result ledger");
+
116 m_ledgers_by_hash.canonicalize_replace_client(ret->info().hash, ret);
+
117 mLedgersByIndex[ret->info().seq] = ret->info().hash;
+
118 return (ret->info().seq == index) ? ret : nullptr;
+
119 }
+
120}
-
115
- -
- -
118{
-
119 auto ret = m_ledgers_by_hash.fetch(hash);
-
120
-
121 if (ret)
-
122 {
-
123 XRPL_ASSERT(
-
124 ret->isImmutable(),
-
125 "ripple::LedgerHistory::getLedgerByHash : immutable fetched "
-
126 "ledger");
-
127 XRPL_ASSERT(
-
128 ret->info().hash == hash,
-
129 "ripple::LedgerHistory::getLedgerByHash : fetched ledger hash "
-
130 "match");
-
131 return ret;
-
132 }
-
133
-
134 ret = loadByHash(hash, app_);
-
135
-
136 if (!ret)
+
121
+ +
+ +
124{
+
125 auto ret = m_ledgers_by_hash.fetch(hash);
+
126
+
127 if (ret)
+
128 {
+
129 XRPL_ASSERT(
+
130 ret->isImmutable(),
+
131 "ripple::LedgerHistory::getLedgerByHash : immutable fetched "
+
132 "ledger");
+
133 XRPL_ASSERT(
+
134 ret->info().hash == hash,
+
135 "ripple::LedgerHistory::getLedgerByHash : fetched ledger hash "
+
136 "match");
137 return ret;
-
138
-
139 XRPL_ASSERT(
-
140 ret->isImmutable(),
-
141 "ripple::LedgerHistory::getLedgerByHash : immutable loaded ledger");
-
142 XRPL_ASSERT(
-
143 ret->info().hash == hash,
-
144 "ripple::LedgerHistory::getLedgerByHash : loaded ledger hash match");
-
145 m_ledgers_by_hash.canonicalize_replace_client(ret->info().hash, ret);
-
146 XRPL_ASSERT(
-
147 ret->info().hash == hash,
-
148 "ripple::LedgerHistory::getLedgerByHash : result hash match");
-
149
-
150 return ret;
-
151}
+
138 }
+
139
+
140 ret = loadByHash(hash, app_);
+
141
+
142 if (!ret)
+
143 return ret;
+
144
+
145 XRPL_ASSERT(
+
146 ret->isImmutable(),
+
147 "ripple::LedgerHistory::getLedgerByHash : immutable loaded ledger");
+
148 XRPL_ASSERT(
+
149 ret->info().hash == hash,
+
150 "ripple::LedgerHistory::getLedgerByHash : loaded ledger hash match");
+
151 m_ledgers_by_hash.canonicalize_replace_client(ret->info().hash, ret);
+
152 XRPL_ASSERT(
+
153 ret->info().hash == hash,
+
154 "ripple::LedgerHistory::getLedgerByHash : result hash match");
+
155
+
156 return ret;
+
157}
-
152
-
153static void
-
- -
155 ReadView const& ledger,
-
156 uint256 const& tx,
-
157 char const* msg,
- -
159{
-
160 auto metaData = ledger.txRead(tx).second;
-
161
-
162 if (metaData != nullptr)
-
163 {
-
164 JLOG(j.debug()) << "MISMATCH on TX " << tx << ": " << msg
-
165 << " is missing this transaction:\n"
-
166 << metaData->getJson(JsonOptions::none);
-
167 }
-
168 else
+
158
+
159static void
+
+ +
161 ReadView const& ledger,
+
162 uint256 const& tx,
+
163 char const* msg,
+ +
165{
+
166 auto metaData = ledger.txRead(tx).second;
+
167
+
168 if (metaData != nullptr)
169 {
170 JLOG(j.debug()) << "MISMATCH on TX " << tx << ": " << msg
-
171 << " is missing this transaction.";
-
172 }
-
173}
+
171 << " is missing this transaction:\n"
+
172 << metaData->getJson(JsonOptions::none);
+
173 }
+
174 else
+
175 {
+
176 JLOG(j.debug()) << "MISMATCH on TX " << tx << ": " << msg
+
177 << " is missing this transaction.";
+
178 }
+
179}
-
174
-
175static void
-
- -
177 ReadView const& builtLedger,
-
178 ReadView const& validLedger,
-
179 uint256 const& tx,
- -
181{
-
182 auto getMeta = [](ReadView const& ledger, uint256 const& txID) {
- -
184 if (auto meta = ledger.txRead(txID).second)
-
185 ret.emplace(txID, ledger.seq(), *meta);
-
186 return ret;
-
187 };
-
188
-
189 auto validMetaData = getMeta(validLedger, tx);
-
190 auto builtMetaData = getMeta(builtLedger, tx);
-
191
-
192 XRPL_ASSERT(
-
193 validMetaData || builtMetaData,
-
194 "ripple::log_metadata_difference : some metadata present");
-
195
-
196 if (validMetaData && builtMetaData)
-
197 {
-
198 auto const& validNodes = validMetaData->getNodes();
-
199 auto const& builtNodes = builtMetaData->getNodes();
-
200
-
201 bool const result_diff =
-
202 validMetaData->getResultTER() != builtMetaData->getResultTER();
-
203
-
204 bool const index_diff =
-
205 validMetaData->getIndex() != builtMetaData->getIndex();
+
180
+
181static void
+
+ +
183 ReadView const& builtLedger,
+
184 ReadView const& validLedger,
+
185 uint256 const& tx,
+ +
187{
+
188 auto getMeta = [](ReadView const& ledger, uint256 const& txID) {
+ +
190 if (auto meta = ledger.txRead(txID).second)
+
191 ret.emplace(txID, ledger.seq(), *meta);
+
192 return ret;
+
193 };
+
194
+
195 auto validMetaData = getMeta(validLedger, tx);
+
196 auto builtMetaData = getMeta(builtLedger, tx);
+
197
+
198 XRPL_ASSERT(
+
199 validMetaData || builtMetaData,
+
200 "ripple::log_metadata_difference : some metadata present");
+
201
+
202 if (validMetaData && builtMetaData)
+
203 {
+
204 auto const& validNodes = validMetaData->getNodes();
+
205 auto const& builtNodes = builtMetaData->getNodes();
206
-
207 bool const nodes_diff = validNodes != builtNodes;
-
208
-
209 if (!result_diff && !index_diff && !nodes_diff)
-
210 {
-
211 JLOG(j.error()) << "MISMATCH on TX " << tx
-
212 << ": No apparent mismatches detected!";
-
213 return;
-
214 }
-
215
-
216 if (!nodes_diff)
-
217 {
-
218 if (result_diff && index_diff)
-
219 {
-
220 JLOG(j.debug()) << "MISMATCH on TX " << tx
-
221 << ": Different result and index!";
-
222 JLOG(j.debug()) << " Built:"
-
223 << " Result: " << builtMetaData->getResult()
-
224 << " Index: " << builtMetaData->getIndex();
-
225 JLOG(j.debug()) << " Valid:"
-
226 << " Result: " << validMetaData->getResult()
-
227 << " Index: " << validMetaData->getIndex();
-
228 }
-
229 else if (result_diff)
-
230 {
-
231 JLOG(j.debug())
-
232 << "MISMATCH on TX " << tx << ": Different result!";
-
233 JLOG(j.debug()) << " Built:"
-
234 << " Result: " << builtMetaData->getResult();
-
235 JLOG(j.debug()) << " Valid:"
-
236 << " Result: " << validMetaData->getResult();
-
237 }
-
238 else if (index_diff)
-
239 {
-
240 JLOG(j.debug())
-
241 << "MISMATCH on TX " << tx << ": Different index!";
-
242 JLOG(j.debug()) << " Built:"
-
243 << " Index: " << builtMetaData->getIndex();
-
244 JLOG(j.debug()) << " Valid:"
-
245 << " Index: " << validMetaData->getIndex();
-
246 }
-
247 }
-
248 else
-
249 {
-
250 if (result_diff && index_diff)
-
251 {
-
252 JLOG(j.debug()) << "MISMATCH on TX " << tx
-
253 << ": Different result, index and nodes!";
-
254 JLOG(j.debug()) << " Built:\n"
-
255 << builtMetaData->getJson(JsonOptions::none);
-
256 JLOG(j.debug()) << " Valid:\n"
-
257 << validMetaData->getJson(JsonOptions::none);
-
258 }
-
259 else if (result_diff)
-
260 {
-
261 JLOG(j.debug()) << "MISMATCH on TX " << tx
-
262 << ": Different result and nodes!";
-
263 JLOG(j.debug())
-
264 << " Built:"
-
265 << " Result: " << builtMetaData->getResult() << " Nodes:\n"
-
266 << builtNodes.getJson(JsonOptions::none);
-
267 JLOG(j.debug())
-
268 << " Valid:"
-
269 << " Result: " << validMetaData->getResult() << " Nodes:\n"
-
270 << validNodes.getJson(JsonOptions::none);
-
271 }
-
272 else if (index_diff)
-
273 {
-
274 JLOG(j.debug()) << "MISMATCH on TX " << tx
-
275 << ": Different index and nodes!";
-
276 JLOG(j.debug())
-
277 << " Built:"
-
278 << " Index: " << builtMetaData->getIndex() << " Nodes:\n"
-
279 << builtNodes.getJson(JsonOptions::none);
-
280 JLOG(j.debug())
-
281 << " Valid:"
-
282 << " Index: " << validMetaData->getIndex() << " Nodes:\n"
-
283 << validNodes.getJson(JsonOptions::none);
-
284 }
-
285 else // nodes_diff
-
286 {
-
287 JLOG(j.debug())
-
288 << "MISMATCH on TX " << tx << ": Different nodes!";
-
289 JLOG(j.debug()) << " Built:"
-
290 << " Nodes:\n"
-
291 << builtNodes.getJson(JsonOptions::none);
-
292 JLOG(j.debug()) << " Valid:"
-
293 << " Nodes:\n"
-
294 << validNodes.getJson(JsonOptions::none);
-
295 }
-
296 }
-
297
-
298 return;
-
299 }
-
300
-
301 if (validMetaData)
-
302 {
-
303 JLOG(j.error()) << "MISMATCH on TX " << tx
-
304 << ": Metadata Difference. Valid=\n"
-
305 << validMetaData->getJson(JsonOptions::none);
-
306 }
-
307
-
308 if (builtMetaData)
-
309 {
-
310 JLOG(j.error()) << "MISMATCH on TX " << tx
-
311 << ": Metadata Difference. Built=\n"
-
312 << builtMetaData->getJson(JsonOptions::none);
-
313 }
-
314}
+
207 bool const result_diff =
+
208 validMetaData->getResultTER() != builtMetaData->getResultTER();
+
209
+
210 bool const index_diff =
+
211 validMetaData->getIndex() != builtMetaData->getIndex();
+
212
+
213 bool const nodes_diff = validNodes != builtNodes;
+
214
+
215 if (!result_diff && !index_diff && !nodes_diff)
+
216 {
+
217 JLOG(j.error()) << "MISMATCH on TX " << tx
+
218 << ": No apparent mismatches detected!";
+
219 return;
+
220 }
+
221
+
222 if (!nodes_diff)
+
223 {
+
224 if (result_diff && index_diff)
+
225 {
+
226 JLOG(j.debug()) << "MISMATCH on TX " << tx
+
227 << ": Different result and index!";
+
228 JLOG(j.debug()) << " Built:"
+
229 << " Result: " << builtMetaData->getResult()
+
230 << " Index: " << builtMetaData->getIndex();
+
231 JLOG(j.debug()) << " Valid:"
+
232 << " Result: " << validMetaData->getResult()
+
233 << " Index: " << validMetaData->getIndex();
+
234 }
+
235 else if (result_diff)
+
236 {
+
237 JLOG(j.debug())
+
238 << "MISMATCH on TX " << tx << ": Different result!";
+
239 JLOG(j.debug()) << " Built:"
+
240 << " Result: " << builtMetaData->getResult();
+
241 JLOG(j.debug()) << " Valid:"
+
242 << " Result: " << validMetaData->getResult();
+
243 }
+
244 else if (index_diff)
+
245 {
+
246 JLOG(j.debug())
+
247 << "MISMATCH on TX " << tx << ": Different index!";
+
248 JLOG(j.debug()) << " Built:"
+
249 << " Index: " << builtMetaData->getIndex();
+
250 JLOG(j.debug()) << " Valid:"
+
251 << " Index: " << validMetaData->getIndex();
+
252 }
+
253 }
+
254 else
+
255 {
+
256 if (result_diff && index_diff)
+
257 {
+
258 JLOG(j.debug()) << "MISMATCH on TX " << tx
+
259 << ": Different result, index and nodes!";
+
260 JLOG(j.debug()) << " Built:\n"
+
261 << builtMetaData->getJson(JsonOptions::none);
+
262 JLOG(j.debug()) << " Valid:\n"
+
263 << validMetaData->getJson(JsonOptions::none);
+
264 }
+
265 else if (result_diff)
+
266 {
+
267 JLOG(j.debug()) << "MISMATCH on TX " << tx
+
268 << ": Different result and nodes!";
+
269 JLOG(j.debug())
+
270 << " Built:"
+
271 << " Result: " << builtMetaData->getResult() << " Nodes:\n"
+
272 << builtNodes.getJson(JsonOptions::none);
+
273 JLOG(j.debug())
+
274 << " Valid:"
+
275 << " Result: " << validMetaData->getResult() << " Nodes:\n"
+
276 << validNodes.getJson(JsonOptions::none);
+
277 }
+
278 else if (index_diff)
+
279 {
+
280 JLOG(j.debug()) << "MISMATCH on TX " << tx
+
281 << ": Different index and nodes!";
+
282 JLOG(j.debug())
+
283 << " Built:"
+
284 << " Index: " << builtMetaData->getIndex() << " Nodes:\n"
+
285 << builtNodes.getJson(JsonOptions::none);
+
286 JLOG(j.debug())
+
287 << " Valid:"
+
288 << " Index: " << validMetaData->getIndex() << " Nodes:\n"
+
289 << validNodes.getJson(JsonOptions::none);
+
290 }
+
291 else // nodes_diff
+
292 {
+
293 JLOG(j.debug())
+
294 << "MISMATCH on TX " << tx << ": Different nodes!";
+
295 JLOG(j.debug()) << " Built:"
+
296 << " Nodes:\n"
+
297 << builtNodes.getJson(JsonOptions::none);
+
298 JLOG(j.debug()) << " Valid:"
+
299 << " Nodes:\n"
+
300 << validNodes.getJson(JsonOptions::none);
+
301 }
+
302 }
+
303
+
304 return;
+
305 }
+
306
+
307 if (validMetaData)
+
308 {
+
309 JLOG(j.error()) << "MISMATCH on TX " << tx
+
310 << ": Metadata Difference. Valid=\n"
+
311 << validMetaData->getJson(JsonOptions::none);
+
312 }
+
313
+
314 if (builtMetaData)
+
315 {
+
316 JLOG(j.error()) << "MISMATCH on TX " << tx
+
317 << ": Metadata Difference. Built=\n"
+
318 << builtMetaData->getJson(JsonOptions::none);
+
319 }
+
320}
-
315
-
316//------------------------------------------------------------------------------
-
317
-
318// Return list of leaves sorted by key
- -
-
320leaves(SHAMap const& sm)
-
321{
- -
323 for (auto const& item : sm)
-
324 v.push_back(&item);
-
325 std::sort(
-
326 v.begin(), v.end(), [](SHAMapItem const* lhs, SHAMapItem const* rhs) {
-
327 return lhs->key() < rhs->key();
-
328 });
-
329 return v;
-
330}
+
321
+
322//------------------------------------------------------------------------------
+
323
+
324// Return list of leaves sorted by key
+ +
+
326leaves(SHAMap const& sm)
+
327{
+ +
329 for (auto const& item : sm)
+
330 v.push_back(&item);
+
331 std::sort(
+
332 v.begin(), v.end(), [](SHAMapItem const* lhs, SHAMapItem const* rhs) {
+
333 return lhs->key() < rhs->key();
+
334 });
+
335 return v;
+
336}
-
331
-
332void
-
- -
334 LedgerHash const& built,
-
335 LedgerHash const& valid,
-
336 std::optional<uint256> const& builtConsensusHash,
-
337 std::optional<uint256> const& validatedConsensusHash,
-
338 Json::Value const& consensus)
-
339{
-
340 XRPL_ASSERT(
-
341 built != valid,
-
342 "ripple::LedgerHistory::handleMismatch : unequal hashes");
- -
344
-
345 auto builtLedger = getLedgerByHash(built);
-
346 auto validLedger = getLedgerByHash(valid);
-
347
-
348 if (!builtLedger || !validLedger)
-
349 {
-
350 JLOG(j_.error()) << "MISMATCH cannot be analyzed:"
-
351 << " builtLedger: " << to_string(built) << " -> "
-
352 << builtLedger << " validLedger: " << to_string(valid)
-
353 << " -> " << validLedger;
-
354 return;
-
355 }
-
356
-
357 XRPL_ASSERT(
-
358 builtLedger->info().seq == validLedger->info().seq,
-
359 "ripple::LedgerHistory::handleMismatch : sequence match");
-
360
-
361 if (auto stream = j_.debug())
-
362 {
-
363 stream << "Built: " << getJson({*builtLedger, {}});
-
364 stream << "Valid: " << getJson({*validLedger, {}});
-
365 stream << "Consensus: " << consensus;
-
366 }
-
367
-
368 // Determine the mismatch reason, distinguishing Byzantine
-
369 // failure from transaction processing difference
-
370
-
371 // Disagreement over prior ledger indicates sync issue
-
372 if (builtLedger->info().parentHash != validLedger->info().parentHash)
-
373 {
-
374 JLOG(j_.error()) << "MISMATCH on prior ledger";
-
375 return;
-
376 }
-
377
-
378 // Disagreement over close time indicates Byzantine failure
-
379 if (builtLedger->info().closeTime != validLedger->info().closeTime)
-
380 {
-
381 JLOG(j_.error()) << "MISMATCH on close time";
-
382 return;
-
383 }
-
384
-
385 if (builtConsensusHash && validatedConsensusHash)
+
337
+
338void
+
+ +
340 LedgerHash const& built,
+
341 LedgerHash const& valid,
+
342 std::optional<uint256> const& builtConsensusHash,
+
343 std::optional<uint256> const& validatedConsensusHash,
+
344 Json::Value const& consensus)
+
345{
+
346 XRPL_ASSERT(
+
347 built != valid,
+
348 "ripple::LedgerHistory::handleMismatch : unequal hashes");
+ +
350
+
351 auto builtLedger = getLedgerByHash(built);
+
352 auto validLedger = getLedgerByHash(valid);
+
353
+
354 if (!builtLedger || !validLedger)
+
355 {
+
356 JLOG(j_.error()) << "MISMATCH cannot be analyzed:"
+
357 << " builtLedger: " << to_string(built) << " -> "
+
358 << builtLedger << " validLedger: " << to_string(valid)
+
359 << " -> " << validLedger;
+
360 return;
+
361 }
+
362
+
363 XRPL_ASSERT(
+
364 builtLedger->info().seq == validLedger->info().seq,
+
365 "ripple::LedgerHistory::handleMismatch : sequence match");
+
366
+
367 if (auto stream = j_.debug())
+
368 {
+
369 stream << "Built: " << getJson({*builtLedger, {}});
+
370 stream << "Valid: " << getJson({*validLedger, {}});
+
371 stream << "Consensus: " << consensus;
+
372 }
+
373
+
374 // Determine the mismatch reason, distinguishing Byzantine
+
375 // failure from transaction processing difference
+
376
+
377 // Disagreement over prior ledger indicates sync issue
+
378 if (builtLedger->info().parentHash != validLedger->info().parentHash)
+
379 {
+
380 JLOG(j_.error()) << "MISMATCH on prior ledger";
+
381 return;
+
382 }
+
383
+
384 // Disagreement over close time indicates Byzantine failure
+
385 if (builtLedger->info().closeTime != validLedger->info().closeTime)
386 {
-
387 if (builtConsensusHash != validatedConsensusHash)
-
388 JLOG(j_.error())
-
389 << "MISMATCH on consensus transaction set "
-
390 << " built: " << to_string(*builtConsensusHash)
-
391 << " validated: " << to_string(*validatedConsensusHash);
-
392 else
-
393 JLOG(j_.error()) << "MISMATCH with same consensus transaction set: "
-
394 << to_string(*builtConsensusHash);
-
395 }
-
396
-
397 // Find differences between built and valid ledgers
-
398 auto const builtTx = leaves(builtLedger->txMap());
-
399 auto const validTx = leaves(validLedger->txMap());
-
400
-
401 if (builtTx == validTx)
-
402 JLOG(j_.error()) << "MISMATCH with same " << builtTx.size()
-
403 << " transactions";
-
404 else
-
405 JLOG(j_.error()) << "MISMATCH with " << builtTx.size() << " built and "
-
406 << validTx.size() << " valid transactions.";
-
407
-
408 JLOG(j_.error()) << "built\n" << getJson({*builtLedger, {}});
-
409 JLOG(j_.error()) << "valid\n" << getJson({*validLedger, {}});
-
410
-
411 // Log all differences between built and valid ledgers
-
412 auto b = builtTx.begin();
-
413 auto v = validTx.begin();
-
414 while (b != builtTx.end() && v != validTx.end())
-
415 {
-
416 if ((*b)->key() < (*v)->key())
-
417 {
-
418 log_one(*builtLedger, (*b)->key(), "valid", j_);
-
419 ++b;
-
420 }
-
421 else if ((*b)->key() > (*v)->key())
-
422 {
-
423 log_one(*validLedger, (*v)->key(), "built", j_);
-
424 ++v;
-
425 }
-
426 else
-
427 {
-
428 if ((*b)->slice() != (*v)->slice())
-
429 {
-
430 // Same transaction with different metadata
- -
432 *builtLedger, *validLedger, (*b)->key(), j_);
-
433 }
-
434 ++b;
-
435 ++v;
-
436 }
-
437 }
-
438 for (; b != builtTx.end(); ++b)
-
439 log_one(*builtLedger, (*b)->key(), "valid", j_);
-
440 for (; v != validTx.end(); ++v)
-
441 log_one(*validLedger, (*v)->key(), "built", j_);
-
442}
+
387 JLOG(j_.error()) << "MISMATCH on close time";
+
388 return;
+
389 }
+
390
+
391 if (builtConsensusHash && validatedConsensusHash)
+
392 {
+
393 if (builtConsensusHash != validatedConsensusHash)
+
394 JLOG(j_.error())
+
395 << "MISMATCH on consensus transaction set "
+
396 << " built: " << to_string(*builtConsensusHash)
+
397 << " validated: " << to_string(*validatedConsensusHash);
+
398 else
+
399 JLOG(j_.error()) << "MISMATCH with same consensus transaction set: "
+
400 << to_string(*builtConsensusHash);
+
401 }
+
402
+
403 // Find differences between built and valid ledgers
+
404 auto const builtTx = leaves(builtLedger->txMap());
+
405 auto const validTx = leaves(validLedger->txMap());
+
406
+
407 if (builtTx == validTx)
+
408 JLOG(j_.error()) << "MISMATCH with same " << builtTx.size()
+
409 << " transactions";
+
410 else
+
411 JLOG(j_.error()) << "MISMATCH with " << builtTx.size() << " built and "
+
412 << validTx.size() << " valid transactions.";
+
413
+
414 JLOG(j_.error()) << "built\n" << getJson({*builtLedger, {}});
+
415 JLOG(j_.error()) << "valid\n" << getJson({*validLedger, {}});
+
416
+
417 // Log all differences between built and valid ledgers
+
418 auto b = builtTx.begin();
+
419 auto v = validTx.begin();
+
420 while (b != builtTx.end() && v != validTx.end())
+
421 {
+
422 if ((*b)->key() < (*v)->key())
+
423 {
+
424 log_one(*builtLedger, (*b)->key(), "valid", j_);
+
425 ++b;
+
426 }
+
427 else if ((*b)->key() > (*v)->key())
+
428 {
+
429 log_one(*validLedger, (*v)->key(), "built", j_);
+
430 ++v;
+
431 }
+
432 else
+
433 {
+
434 if ((*b)->slice() != (*v)->slice())
+
435 {
+
436 // Same transaction with different metadata
+ +
438 *builtLedger, *validLedger, (*b)->key(), j_);
+
439 }
+
440 ++b;
+
441 ++v;
+
442 }
+
443 }
+
444 for (; b != builtTx.end(); ++b)
+
445 log_one(*builtLedger, (*b)->key(), "valid", j_);
+
446 for (; v != validTx.end(); ++v)
+
447 log_one(*validLedger, (*v)->key(), "built", j_);
+
448}
-
443
-
444void
-
- -
446 std::shared_ptr<Ledger const> const& ledger,
-
447 uint256 const& consensusHash,
-
448 Json::Value consensus)
-
449{
-
450 LedgerIndex index = ledger->info().seq;
-
451 LedgerHash hash = ledger->info().hash;
-
452 XRPL_ASSERT(
-
453 !hash.isZero(), "ripple::LedgerHistory::builtLedger : nonzero hash");
-
454
-
455 auto entry = std::make_shared<cv_entry>();
- -
457
-
458 if (entry->validated && !entry->built)
-
459 {
-
460 if (entry->validated.value() != hash)
-
461 {
-
462 JLOG(j_.error()) << "MISMATCH: seq=" << index
-
463 << " validated:" << entry->validated.value()
-
464 << " then:" << hash;
- -
466 hash,
-
467 entry->validated.value(),
-
468 consensusHash,
-
469 entry->validatedConsensusHash,
-
470 consensus);
-
471 }
-
472 else
-
473 {
-
474 // We validated a ledger and then built it locally
-
475 JLOG(j_.debug()) << "MATCH: seq=" << index << " late";
-
476 }
-
477 }
-
478
-
479 entry->built.emplace(hash);
-
480 entry->builtConsensusHash.emplace(consensusHash);
-
481 entry->consensus.emplace(std::move(consensus));
-
482}
+
449
+
450void
+
+ +
452 std::shared_ptr<Ledger const> const& ledger,
+
453 uint256 const& consensusHash,
+
454 Json::Value consensus)
+
455{
+
456 LedgerIndex index = ledger->info().seq;
+
457 LedgerHash hash = ledger->info().hash;
+
458 XRPL_ASSERT(
+
459 !hash.isZero(), "ripple::LedgerHistory::builtLedger : nonzero hash");
+
460
+ +
462
+
463 auto entry = std::make_shared<cv_entry>();
+ +
465
+
466 if (entry->validated && !entry->built)
+
467 {
+
468 if (entry->validated.value() != hash)
+
469 {
+
470 JLOG(j_.error()) << "MISMATCH: seq=" << index
+
471 << " validated:" << entry->validated.value()
+
472 << " then:" << hash;
+ +
474 hash,
+
475 entry->validated.value(),
+
476 consensusHash,
+
477 entry->validatedConsensusHash,
+
478 consensus);
+
479 }
+
480 else
+
481 {
+
482 // We validated a ledger and then built it locally
+
483 JLOG(j_.debug()) << "MATCH: seq=" << index << " late";
+
484 }
+
485 }
+
486
+
487 entry->built.emplace(hash);
+
488 entry->builtConsensusHash.emplace(consensusHash);
+
489 entry->consensus.emplace(std::move(consensus));
+
490}
-
483
-
484void
-
- -
486 std::shared_ptr<Ledger const> const& ledger,
-
487 std::optional<uint256> const& consensusHash)
-
488{
-
489 LedgerIndex index = ledger->info().seq;
-
490 LedgerHash hash = ledger->info().hash;
-
491 XRPL_ASSERT(
-
492 !hash.isZero(),
-
493 "ripple::LedgerHistory::validatedLedger : nonzero hash");
-
494
-
495 auto entry = std::make_shared<cv_entry>();
- -
497
-
498 if (entry->built && !entry->validated)
-
499 {
-
500 if (entry->built.value() != hash)
-
501 {
-
502 JLOG(j_.error())
-
503 << "MISMATCH: seq=" << index
-
504 << " built:" << entry->built.value() << " then:" << hash;
- -
506 entry->built.value(),
-
507 hash,
-
508 entry->builtConsensusHash,
-
509 consensusHash,
-
510 entry->consensus.value());
-
511 }
-
512 else
-
513 {
-
514 // We built a ledger locally and then validated it
-
515 JLOG(j_.debug()) << "MATCH: seq=" << index;
-
516 }
-
517 }
-
518
-
519 entry->validated.emplace(hash);
-
520 entry->validatedConsensusHash = consensusHash;
-
521}
+
491
+
492void
+
+ +
494 std::shared_ptr<Ledger const> const& ledger,
+
495 std::optional<uint256> const& consensusHash)
+
496{
+
497 LedgerIndex index = ledger->info().seq;
+
498 LedgerHash hash = ledger->info().hash;
+
499 XRPL_ASSERT(
+
500 !hash.isZero(),
+
501 "ripple::LedgerHistory::validatedLedger : nonzero hash");
+
502
+ +
504
+
505 auto entry = std::make_shared<cv_entry>();
+ +
507
+
508 if (entry->built && !entry->validated)
+
509 {
+
510 if (entry->built.value() != hash)
+
511 {
+
512 JLOG(j_.error())
+
513 << "MISMATCH: seq=" << index
+
514 << " built:" << entry->built.value() << " then:" << hash;
+ +
516 entry->built.value(),
+
517 hash,
+
518 entry->builtConsensusHash,
+
519 consensusHash,
+
520 entry->consensus.value());
+
521 }
+
522 else
+
523 {
+
524 // We built a ledger locally and then validated it
+
525 JLOG(j_.debug()) << "MATCH: seq=" << index;
+
526 }
+
527 }
+
528
+
529 entry->validated.emplace(hash);
+
530 entry->validatedConsensusHash = consensusHash;
+
531}
-
522
-
525bool
-
-
526LedgerHistory::fixIndex(LedgerIndex ledgerIndex, LedgerHash const& ledgerHash)
-
527{
-
528 auto ledger = m_ledgers_by_hash.fetch(ledgerHash);
-
529 auto it = mLedgersByIndex.find(ledgerIndex);
-
530 if (ledger && (it != mLedgersByIndex.end()) && (it->second != ledgerHash))
-
531 {
-
532 it->second = ledgerHash;
-
533 return false;
-
534 }
-
535 return true;
-
536}
-
-
537
-
538void
-
- -
540{
- +
532
+
535bool
+
+
536LedgerHistory::fixIndex(LedgerIndex ledgerIndex, LedgerHash const& ledgerHash)
+
537{
+ +
539 auto it = mLedgersByIndex.find(ledgerIndex);
+
540
+
541 if ((it != mLedgersByIndex.end()) && (it->second != ledgerHash))
542 {
-
543 auto const ledger = getLedgerByHash(it);
-
544 if (!ledger || ledger->info().seq < seq)
-
545 m_ledgers_by_hash.del(it, false);
-
546 }
+
543 it->second = ledgerHash;
+
544 return false;
+
545 }
+
546 return true;
547}
548
-
549} // namespace ripple
+
549void
+
+ +
551{
+ +
553 {
+
554 auto const ledger = getLedgerByHash(it);
+
555 if (!ledger || ledger->info().seq < seq)
+
556 m_ledgers_by_hash.del(it, false);
+
557 }
+
558}
+
+
559
+
560} // namespace ripple
T begin(T... args)
Represents a JSON value.
Definition json_value.h:149
const_iterator begin() const
@@ -663,20 +674,20 @@ $(document).ready(function() { init_codefold(0); });
LedgerHistory(beast::insight::Collector::ptr const &collector, Application &app)
std::map< LedgerIndex, LedgerHash > mLedgersByIndex
-
void builtLedger(std::shared_ptr< Ledger const > const &, uint256 const &consensusHash, Json::Value)
Report that we have locally built a particular ledger.
+
void builtLedger(std::shared_ptr< Ledger const > const &, uint256 const &consensusHash, Json::Value)
Report that we have locally built a particular ledger.
LedgersByHash m_ledgers_by_hash
ConsensusValidated m_consensus_validated
-
void handleMismatch(LedgerHash const &built, LedgerHash const &valid, std::optional< uint256 > const &builtConsensusHash, std::optional< uint256 > const &validatedConsensusHash, Json::Value const &consensus)
Log details in the case where we build one ledger but validate a different one.
-
LedgerHash getLedgerHash(LedgerIndex ledgerIndex)
Get a ledger's hash given its sequence number.
-
void clearLedgerCachePrior(LedgerIndex seq)
-
std::shared_ptr< Ledger const > getLedgerBySeq(LedgerIndex ledgerIndex)
Get a ledger given its sequence number.
+
void handleMismatch(LedgerHash const &built, LedgerHash const &valid, std::optional< uint256 > const &builtConsensusHash, std::optional< uint256 > const &validatedConsensusHash, Json::Value const &consensus)
Log details in the case where we build one ledger but validate a different one.
+
LedgerHash getLedgerHash(LedgerIndex ledgerIndex)
Get a ledger's hash given its sequence number.
+
void clearLedgerCachePrior(LedgerIndex seq)
+
std::shared_ptr< Ledger const > getLedgerBySeq(LedgerIndex ledgerIndex)
Get a ledger given its sequence number.
beast::insight::Counter mismatch_counter_
bool insert(std::shared_ptr< Ledger const > const &ledger, bool validated)
Track a ledger.
-
bool fixIndex(LedgerIndex ledgerIndex, LedgerHash const &ledgerHash)
Repair a hash to index mapping.
-
void validatedLedger(std::shared_ptr< Ledger const > const &, std::optional< uint256 > const &consensusHash)
Report that we have validated a particular ledger.
-
std::shared_ptr< Ledger const > getLedgerByHash(LedgerHash const &ledgerHash)
Retrieve a ledger given its hash.
+
bool fixIndex(LedgerIndex ledgerIndex, LedgerHash const &ledgerHash)
Repair a hash to index mapping.
+
void validatedLedger(std::shared_ptr< Ledger const > const &, std::optional< uint256 > const &consensusHash)
Report that we have validated a particular ledger.
+
std::shared_ptr< Ledger const > getLedgerByHash(LedgerHash const &ledgerHash)
Retrieve a ledger given its hash.
A view into a ledger.
Definition ReadView.h:52
LedgerIndex seq() const
Returns the sequence number of the base ledger.
Definition ReadView.h:119
virtual tx_type txRead(key_type const &key) const =0
Read a transaction from the tx map.
@@ -685,6 +696,7 @@ $(document).ready(function() { init_codefold(0); });
bool canonicalize_replace_client(key_type const &key, SharedPointerType &data)
bool del(key_type const &key, bool valid)
SharedPointerType fetch(key_type const &key)
+
mutex_type & peekMutex()
std::vector< key_type > getKeys() const
bool canonicalize_replace_cache(key_type const &key, SharedPointerType const &data)
@@ -699,12 +711,12 @@ $(document).ready(function() { init_codefold(0); });
std::shared_ptr< Ledger > loadByIndex(std::uint32_t ledgerIndex, Application &app, bool acquire)
Definition Ledger.cpp:1114
-
static void log_one(ReadView const &ledger, uint256 const &tx, char const *msg, beast::Journal &j)
-
static std::vector< SHAMapItem const * > leaves(SHAMap const &sm)
+
static void log_one(ReadView const &ledger, uint256 const &tx, char const *msg, beast::Journal &j)
+
static std::vector< SHAMapItem const * > leaves(SHAMap const &sm)
std::shared_ptr< Ledger > loadByHash(uint256 const &ledgerHash, Application &app, bool acquire)
Definition Ledger.cpp:1127
Stopwatch & stopwatch()
Returns an instance of a wall clock.
Definition chrono.h:119
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:630
-
static void log_metadata_difference(ReadView const &builtLedger, ReadView const &validLedger, uint256 const &tx, beast::Journal j)
+
static void log_metadata_difference(ReadView const &builtLedger, ReadView const &validLedger, uint256 const &tx, beast::Journal j)
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
void LogicError(std::string const &how) noexcept
Called when faulty logic causes a broken invariant.
STL namespace.
@@ -714,6 +726,8 @@ $(document).ready(function() { init_codefold(0); });
T sort(T... args)
+ +
T unlock(T... args)
diff --git a/LedgerHistory_8h_source.html b/LedgerHistory_8h_source.html index cc118f4402..898df8e246 100644 --- a/LedgerHistory_8h_source.html +++ b/LedgerHistory_8h_source.html @@ -223,22 +223,22 @@ $(document).ready(function() { init_codefold(0); });
Retains historical ledgers.
std::map< LedgerIndex, LedgerHash > mLedgersByIndex
float getCacheHitRate()
Get the ledgers_by_hash cache hit rate.
-
void builtLedger(std::shared_ptr< Ledger const > const &, uint256 const &consensusHash, Json::Value)
Report that we have locally built a particular ledger.
+
void builtLedger(std::shared_ptr< Ledger const > const &, uint256 const &consensusHash, Json::Value)
Report that we have locally built a particular ledger.
void sweep()
Remove stale cache entries.
LedgersByHash m_ledgers_by_hash
ConsensusValidated m_consensus_validated
-
void handleMismatch(LedgerHash const &built, LedgerHash const &valid, std::optional< uint256 > const &builtConsensusHash, std::optional< uint256 > const &validatedConsensusHash, Json::Value const &consensus)
Log details in the case where we build one ledger but validate a different one.
-
LedgerHash getLedgerHash(LedgerIndex ledgerIndex)
Get a ledger's hash given its sequence number.
-
void clearLedgerCachePrior(LedgerIndex seq)
+
void handleMismatch(LedgerHash const &built, LedgerHash const &valid, std::optional< uint256 > const &builtConsensusHash, std::optional< uint256 > const &validatedConsensusHash, Json::Value const &consensus)
Log details in the case where we build one ledger but validate a different one.
+
LedgerHash getLedgerHash(LedgerIndex ledgerIndex)
Get a ledger's hash given its sequence number.
+
void clearLedgerCachePrior(LedgerIndex seq)
beast::insight::Collector::ptr collector_
-
std::shared_ptr< Ledger const > getLedgerBySeq(LedgerIndex ledgerIndex)
Get a ledger given its sequence number.
+
std::shared_ptr< Ledger const > getLedgerBySeq(LedgerIndex ledgerIndex)
Get a ledger given its sequence number.
beast::insight::Counter mismatch_counter_
bool insert(std::shared_ptr< Ledger const > const &ledger, bool validated)
Track a ledger.
-
bool fixIndex(LedgerIndex ledgerIndex, LedgerHash const &ledgerHash)
Repair a hash to index mapping.
-
void validatedLedger(std::shared_ptr< Ledger const > const &, std::optional< uint256 > const &consensusHash)
Report that we have validated a particular ledger.
-
std::shared_ptr< Ledger const > getLedgerByHash(LedgerHash const &ledgerHash)
Retrieve a ledger given its hash.
+
bool fixIndex(LedgerIndex ledgerIndex, LedgerHash const &ledgerHash)
Repair a hash to index mapping.
+
void validatedLedger(std::shared_ptr< Ledger const > const &, std::optional< uint256 > const &consensusHash)
Report that we have validated a particular ledger.
+
std::shared_ptr< Ledger const > getLedgerByHash(LedgerHash const &ledgerHash)
Retrieve a ledger given its hash.
Map/cache combination.
Definition TaggedCache.h:62
diff --git a/LedgerHistory__test_8cpp_source.html b/LedgerHistory__test_8cpp_source.html index 7e13f32697..9317c1c992 100644 --- a/LedgerHistory__test_8cpp_source.html +++ b/LedgerHistory__test_8cpp_source.html @@ -298,9 +298,9 @@ $(document).ready(function() { init_codefold(0); });
virtual Family & getNodeFamily()=0
virtual LedgerMaster & getLedgerMaster()=0
Retains historical ledgers.
-
void builtLedger(std::shared_ptr< Ledger const > const &, uint256 const &consensusHash, Json::Value)
Report that we have locally built a particular ledger.
+
void builtLedger(std::shared_ptr< Ledger const > const &, uint256 const &consensusHash, Json::Value)
Report that we have locally built a particular ledger.
bool insert(std::shared_ptr< Ledger const > const &ledger, bool validated)
Track a ledger.
-
void validatedLedger(std::shared_ptr< Ledger const > const &, std::optional< uint256 > const &consensusHash)
Report that we have validated a particular ledger.
+
void validatedLedger(std::shared_ptr< Ledger const > const &, std::optional< uint256 > const &consensusHash)
Report that we have validated a particular ledger.
std::shared_ptr< Ledger const > getClosedLedger()
Writable ledger view that accumulates state and tx changes.
Definition OpenView.h:66
diff --git a/LedgerMaster_8cpp_source.html b/LedgerMaster_8cpp_source.html index 369633d00f..978890b23a 100644 --- a/LedgerMaster_8cpp_source.html +++ b/LedgerMaster_8cpp_source.html @@ -2503,15 +2503,15 @@ $(document).ready(function() { init_codefold(0); });
int getJobCount(JobType t) const
Jobs waiting at this priority.
Definition JobQueue.cpp:142
bool addJob(JobType type, std::string const &name, JobHandler &&jobHandler)
Adds a job to the JobQueue.
Definition JobQueue.h:168
float getCacheHitRate()
Get the ledgers_by_hash cache hit rate.
-
void builtLedger(std::shared_ptr< Ledger const > const &, uint256 const &consensusHash, Json::Value)
Report that we have locally built a particular ledger.
+
void builtLedger(std::shared_ptr< Ledger const > const &, uint256 const &consensusHash, Json::Value)
Report that we have locally built a particular ledger.
void sweep()
Remove stale cache entries.
-
LedgerHash getLedgerHash(LedgerIndex ledgerIndex)
Get a ledger's hash given its sequence number.
-
void clearLedgerCachePrior(LedgerIndex seq)
-
std::shared_ptr< Ledger const > getLedgerBySeq(LedgerIndex ledgerIndex)
Get a ledger given its sequence number.
+
LedgerHash getLedgerHash(LedgerIndex ledgerIndex)
Get a ledger's hash given its sequence number.
+
void clearLedgerCachePrior(LedgerIndex seq)
+
std::shared_ptr< Ledger const > getLedgerBySeq(LedgerIndex ledgerIndex)
Get a ledger given its sequence number.
bool insert(std::shared_ptr< Ledger const > const &ledger, bool validated)
Track a ledger.
-
bool fixIndex(LedgerIndex ledgerIndex, LedgerHash const &ledgerHash)
Repair a hash to index mapping.
-
void validatedLedger(std::shared_ptr< Ledger const > const &, std::optional< uint256 > const &consensusHash)
Report that we have validated a particular ledger.
-
std::shared_ptr< Ledger const > getLedgerByHash(LedgerHash const &ledgerHash)
Retrieve a ledger given its hash.
+
bool fixIndex(LedgerIndex ledgerIndex, LedgerHash const &ledgerHash)
Repair a hash to index mapping.
+
void validatedLedger(std::shared_ptr< Ledger const > const &, std::optional< uint256 > const &consensusHash)
Report that we have validated a particular ledger.
+
std::shared_ptr< Ledger const > getLedgerByHash(LedgerHash const &ledgerHash)
Retrieve a ledger given its hash.
std::shared_ptr< Ledger const > get()
void set(std::shared_ptr< Ledger const > ledger)
@@ -2647,7 +2647,7 @@ $(document).ready(function() { init_codefold(0); });
virtual std::optional< LedgerIndex > getMinLedgerSeq()=0
getMinLedgerSeq Returns the minimum ledger sequence in the Ledgers table.
virtual uint256 getHashByIndex(LedgerIndex ledgerIndex)=0
getHashByIndex Returns the hash of the ledger with the given sequence.
Rules controlling protocol behavior.
Definition Rules.h:38
-
uint256 const & as_uint256() const
Definition SHAMapHash.h:43
+
uint256 const & as_uint256() const
Definition SHAMapHash.h:44
virtual void onLedgerClosed(std::shared_ptr< Ledger const > const &ledger)=0
Called by LedgerMaster every time a ledger validates.
virtual std::optional< LedgerIndex > minimumOnline() const =0
The minimum ledger to try and maintain in our database.
diff --git a/LedgerReplayMsgHandler_8cpp_source.html b/LedgerReplayMsgHandler_8cpp_source.html index b7ad43da8e..7487078ce6 100644 --- a/LedgerReplayMsgHandler_8cpp_source.html +++ b/LedgerReplayMsgHandler_8cpp_source.html @@ -402,7 +402,7 @@ $(document).ready(function() { init_codefold(0); });
Manages the lifetime of ledger replay tasks.
void gotReplayDelta(LedgerInfo const &info, std::map< std::uint32_t, std::shared_ptr< STTx const > > &&txns)
Process a ledger delta (extracted from a TMReplayDeltaResponse message)
void gotSkipList(LedgerInfo const &info, boost::intrusive_ptr< SHAMapItem const > const &data)
Process a skip list (extracted from a TMProofPathResponse message)
-
uint256 const & as_uint256() const
Definition SHAMapHash.h:43
+
uint256 const & as_uint256() const
Definition SHAMapHash.h:44
boost::intrusive_ptr< SHAMapItem const > const & peekItem() const
static intr_ptr::SharedPtr< SHAMapTreeNode > makeFromWire(Slice rawNode)
diff --git a/Ledger_8cpp_source.html b/Ledger_8cpp_source.html index eb4d6ab601..348b523a61 100644 --- a/Ledger_8cpp_source.html +++ b/Ledger_8cpp_source.html @@ -1445,9 +1445,9 @@ $(document).ready(function() { init_codefold(0); });
virtual std::optional< LedgerInfo > getLedgerInfoByIndex(LedgerIndex ledgerSeq)=0
getLedgerInfoByIndex Returns a ledger by its sequence.
virtual std::optional< LedgerInfo > getLedgerInfoByHash(uint256 const &ledgerHash)=0
getLedgerInfoByHash Returns the info of the ledger with given hash.
bool enabled(uint256 const &feature) const
Returns true if a feature is enabled.
Definition Rules.cpp:130
- -
uint256 const & as_uint256() const
Definition SHAMapHash.h:43
-
bool isZero() const
Definition SHAMapHash.h:53
+ +
uint256 const & as_uint256() const
Definition SHAMapHash.h:44
+
bool isZero() const
Definition SHAMapHash.h:54
Slice slice() const
Definition SHAMapItem.h:106
diff --git a/MPTokenIssuanceCreate_8cpp_source.html b/MPTokenIssuanceCreate_8cpp_source.html index d0dbfe7578..ccf69234e4 100644 --- a/MPTokenIssuanceCreate_8cpp_source.html +++ b/MPTokenIssuanceCreate_8cpp_source.html @@ -280,12 +280,12 @@ $(document).ready(function() { init_codefold(0); });
Keylet ownerDir(AccountID const &id) noexcept
The root page of an account's directory.
Definition Indexes.cpp:374
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
constexpr std::uint32_t const tfMPTCanTransfer
Definition TxFlags.h:149
-
std::uint64_t constexpr maxMPTokenAmount
The maximum amount of MPTokenIssuance.
Definition Protocol.h:116
+
std::uint64_t constexpr maxMPTokenAmount
The maximum amount of MPTokenIssuance.
Definition Protocol.h:117
constexpr std::uint32_t const tfMPTokenIssuanceCreateMask
Definition TxFlags.h:151
-
std::uint16_t constexpr maxTransferFee
The maximum token transfer fee allowed.
Definition Protocol.h:82
+
std::uint16_t constexpr maxTransferFee
The maximum token transfer fee allowed.
Definition Protocol.h:83
std::function< void(SLE::ref)> describeOwnerDir(AccountID const &account)
Definition View.cpp:1048
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
-
std::size_t constexpr maxMPTokenMetadataLength
The maximum length of MPTokenMetadata.
Definition Protocol.h:113
+
std::size_t constexpr maxMPTokenMetadataLength
The maximum length of MPTokenMetadata.
Definition Protocol.h:114
static bool adjustOwnerCount(ApplyContext &ctx, int count)
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
@ tecDIR_FULL
Definition TER.h:287
diff --git a/MPToken__test_8cpp_source.html b/MPToken__test_8cpp_source.html index 9e2b2123e2..d9681c518b 100644 --- a/MPToken__test_8cpp_source.html +++ b/MPToken__test_8cpp_source.html @@ -3022,8 +3022,8 @@ $(document).ready(function() { init_codefold(0); });
Asset assetFromJson(Json::Value const &jv)
Definition Asset.cpp:77
constexpr std::uint32_t const tfMPTCanTrade
Definition TxFlags.h:148
constexpr std::uint32_t const tfMPTUnlock
Definition TxFlags.h:160
-
std::uint64_t constexpr maxMPTokenAmount
The maximum amount of MPTokenIssuance.
Definition Protocol.h:116
-
std::uint16_t constexpr maxTransferFee
The maximum token transfer fee allowed.
Definition Protocol.h:82
+
std::uint64_t constexpr maxMPTokenAmount
The maximum amount of MPTokenIssuance.
Definition Protocol.h:117
+
std::uint16_t constexpr maxTransferFee
The maximum token transfer fee allowed.
Definition Protocol.h:83
STAmount multiply(STAmount const &amount, Rate const &rate)
Definition Rate2.cpp:53
MPTIssue mptIssueFromJson(Json::Value const &jv)
Definition MPTIssue.cpp:78
Json::Value to_json(Asset const &asset)
Definition Asset.h:123
diff --git a/NFTokenBurn_8cpp_source.html b/NFTokenBurn_8cpp_source.html index 7183b66ae0..dd81b3c0bc 100644 --- a/NFTokenBurn_8cpp_source.html +++ b/NFTokenBurn_8cpp_source.html @@ -258,7 +258,7 @@ $(document).ready(function() { init_codefold(0); });
std::optional< STObject > findToken(ReadView const &view, AccountID const &owner, uint256 const &nftokenID)
Finds the specified token in the owner's token directory.
std::size_t removeTokenOffersWithLimit(ApplyView &view, Keylet const &directory, std::size_t maxDeletableOffers)
Delete up to a specified number of offers from the specified token offer directory.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
-
std::size_t constexpr maxDeletableTokenOfferEntries
The maximum number of offers in an offer directory for NFT to be burnable.
Definition Protocol.h:71
+
std::size_t constexpr maxDeletableTokenOfferEntries
The maximum number of offers in an offer directory for NFT to be burnable.
Definition Protocol.h:72
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
@ tecNO_ENTRY
Definition TER.h:306
diff --git a/NFTokenBurn__test_8cpp_source.html b/NFTokenBurn__test_8cpp_source.html index 651a52c416..1777935efc 100644 --- a/NFTokenBurn__test_8cpp_source.html +++ b/NFTokenBurn__test_8cpp_source.html @@ -1652,14 +1652,14 @@ $(document).ready(function() { init_codefold(0); });
Taxon toTaxon(std::uint32_t i)
Definition nft.h:42
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
constexpr std::uint32_t const tfSellNFToken
Definition TxFlags.h:194
-
std::size_t constexpr maxTokenOfferCancelCount
The maximum number of token offers that can be canceled at once.
Definition Protocol.h:68
-
std::uint16_t constexpr maxTransferFee
The maximum token transfer fee allowed.
Definition Protocol.h:82
-
std::size_t constexpr maxDeletableTokenOfferEntries
The maximum number of offers in an offer directory for NFT to be burnable.
Definition Protocol.h:71
+
std::size_t constexpr maxTokenOfferCancelCount
The maximum number of token offers that can be canceled at once.
Definition Protocol.h:69
+
std::uint16_t constexpr maxTransferFee
The maximum token transfer fee allowed.
Definition Protocol.h:83
+
std::size_t constexpr maxDeletableTokenOfferEntries
The maximum number of offers in an offer directory for NFT to be burnable.
Definition Protocol.h:72
constexpr std::uint32_t const tfBurnable
Definition TxFlags.h:137
@ tefINVARIANT_FAILED
Definition TER.h:183
@ tefTOO_BIG
Definition TER.h:184
-
std::size_t constexpr maxTokenURILength
The maximum length of a URI inside an NFT.
Definition Protocol.h:85
+
std::size_t constexpr maxTokenURILength
The maximum length of a URI inside an NFT.
Definition Protocol.h:86
@ tecHAS_OBLIGATIONS
Definition TER.h:317
@ tecINVARIANT_FAILED
Definition TER.h:313
@ tesSUCCESS
Definition TER.h:244
diff --git a/NFTokenCancelOffer_8cpp_source.html b/NFTokenCancelOffer_8cpp_source.html index 9f2ee101e5..c7937b38cd 100644 --- a/NFTokenCancelOffer_8cpp_source.html +++ b/NFTokenCancelOffer_8cpp_source.html @@ -226,7 +226,7 @@ $(document).ready(function() { init_codefold(0); });
Keylet nftoffer(AccountID const &owner, std::uint32_t seq)
An offer from an account to buy or sell an NFT.
Definition Indexes.cpp:427
bool deleteTokenOffer(ApplyView &view, std::shared_ptr< SLE > const &offer)
Deletes the given token offer.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
-
std::size_t constexpr maxTokenOfferCancelCount
The maximum number of token offers that can be canceled at once.
Definition Protocol.h:68
+
std::size_t constexpr maxTokenOfferCancelCount
The maximum number of token offers that can be canceled at once.
Definition Protocol.h:69
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
@ tefBAD_LEDGER
Definition TER.h:170
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
diff --git a/NFTokenMint_8cpp_source.html b/NFTokenMint_8cpp_source.html index 27870abbad..ecd03dbbd7 100644 --- a/NFTokenMint_8cpp_source.html +++ b/NFTokenMint_8cpp_source.html @@ -503,10 +503,10 @@ $(document).ready(function() { init_codefold(0); });
constexpr std::uint32_t const tfNFTokenMintOldMaskWithMutable
Definition TxFlags.h:187
constexpr std::uint32_t const tfNFTokenMintMaskWithMutable
Definition TxFlags.h:190
constexpr std::uint32_t const tfNFTokenMintOldMask
Definition TxFlags.h:183
-
std::uint16_t constexpr maxTransferFee
The maximum token transfer fee allowed.
Definition Protocol.h:82
+
std::uint16_t constexpr maxTransferFee
The maximum token transfer fee allowed.
Definition Protocol.h:83
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
-
std::size_t constexpr maxTokenURILength
The maximum length of a URI inside an NFT.
Definition Protocol.h:85
+
std::size_t constexpr maxTokenURILength
The maximum length of a URI inside an NFT.
Definition Protocol.h:86
@ tecNO_ISSUER
Definition TER.h:299
@ tecINTERNAL
Definition TER.h:310
@ tecNO_PERMISSION
Definition TER.h:305
diff --git a/NFTokenModify_8cpp_source.html b/NFTokenModify_8cpp_source.html index 9202b25840..0be28a83bd 100644 --- a/NFTokenModify_8cpp_source.html +++ b/NFTokenModify_8cpp_source.html @@ -199,7 +199,7 @@ $(document).ready(function() { init_codefold(0); });
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
NotTEC preflight2(PreflightContext const &ctx)
Checks whether the signature appears valid.
-
std::size_t constexpr maxTokenURILength
The maximum length of a URI inside an NFT.
Definition Protocol.h:85
+
std::size_t constexpr maxTokenURILength
The maximum length of a URI inside an NFT.
Definition Protocol.h:86
@ tecNO_ENTRY
Definition TER.h:306
@ tecINTERNAL
Definition TER.h:310
@ tecNO_PERMISSION
Definition TER.h:305
diff --git a/NFTokenUtils_8cpp_source.html b/NFTokenUtils_8cpp_source.html index 0ef0890db5..34f1804a3c 100644 --- a/NFTokenUtils_8cpp_source.html +++ b/NFTokenUtils_8cpp_source.html @@ -1427,9 +1427,9 @@ $(document).ready(function() { init_codefold(0); }); -
std::size_t constexpr maxDeletableTokenOfferEntries
The maximum number of offers in an offer directory for NFT to be burnable.
Definition Protocol.h:71
+
std::size_t constexpr maxDeletableTokenOfferEntries
The maximum number of offers in an offer directory for NFT to be burnable.
Definition Protocol.h:72
std::function< void(SLE::ref)> describeOwnerDir(AccountID const &account)
Definition View.cpp:1048
-
std::size_t constexpr dirMaxTokensPerPage
The maximum number of items in an NFT page.
Definition Protocol.h:62
+
std::size_t constexpr dirMaxTokensPerPage
The maximum number of items in an NFT page.
Definition Protocol.h:63
bool isFrozen(ReadView const &view, AccountID const &account, Currency const &currency, AccountID const &issuer)
Definition View.cpp:248
@ tefNFTOKEN_IS_NOT_TRANSFERABLE
Definition TER.h:186
@ tefTOO_BIG
Definition TER.h:184
diff --git a/NFToken__test_8cpp_source.html b/NFToken__test_8cpp_source.html index c059c592c3..8c378ccbbe 100644 --- a/NFToken__test_8cpp_source.html +++ b/NFToken__test_8cpp_source.html @@ -8502,15 +8502,15 @@ $(document).ready(function() { init_codefold(0); });
constexpr std::uint32_t const tfOnlyXRP
Definition TxFlags.h:138
constexpr std::uint32_t asfDisallowIncomingNFTokenOffer
Definition TxFlags.h:90
constexpr std::uint32_t const tfSellNFToken
Definition TxFlags.h:194
-
std::size_t constexpr maxTokenOfferCancelCount
The maximum number of token offers that can be canceled at once.
Definition Protocol.h:68
+
std::size_t constexpr maxTokenOfferCancelCount
The maximum number of token offers that can be canceled at once.
Definition Protocol.h:69
@ lsfDisallowIncomingNFTokenOffer
-
std::uint16_t constexpr maxTransferFee
The maximum token transfer fee allowed.
Definition Protocol.h:82
+
std::uint16_t constexpr maxTransferFee
The maximum token transfer fee allowed.
Definition Protocol.h:83
constexpr std::uint32_t const tfBurnable
Definition TxFlags.h:137
@ tefNFTOKEN_IS_NOT_TRANSFERABLE
Definition TER.h:186
constexpr std::uint32_t const tfTrustLine
Definition TxFlags.h:139
std::string strHex(FwdIt begin, FwdIt end)
Definition strHex.h:30
-
std::size_t constexpr maxTokenURILength
The maximum length of a URI inside an NFT.
Definition Protocol.h:85
+
std::size_t constexpr maxTokenURILength
The maximum length of a URI inside an NFT.
Definition Protocol.h:86
constexpr std::uint32_t tfClearFreeze
Definition TxFlags.h:119
@ tecNO_ENTRY
Definition TER.h:306
@ tecNO_DST
Definition TER.h:290
diff --git a/NegativeUNL__test_8cpp_source.html b/NegativeUNL__test_8cpp_source.html index fc407109f0..a27c4920af 100644 --- a/NegativeUNL__test_8cpp_source.html +++ b/NegativeUNL__test_8cpp_source.html @@ -2176,7 +2176,7 @@ $(document).ready(function() { init_codefold(0); });
bool VerifyPubKeyAndSeq(std::shared_ptr< Ledger const > const &l, hash_map< PublicKey, std::uint32_t > nUnlLedgerSeq)
Verify the content of negative UNL entries (public key and ledger sequence) of a ledger.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
-
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:129
+
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:130
base_uint< 160, detail::NodeIDTag > NodeID
NodeID is a 160-bit hash representing one node.
Definition UintTypes.h:59
diff --git a/Node_8cpp_source.html b/Node_8cpp_source.html index ed07cce5fd..4d444f5338 100644 --- a/Node_8cpp_source.html +++ b/Node_8cpp_source.html @@ -1495,7 +1495,7 @@ $(document).ready(function() { init_codefold(0); });
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
constexpr std::array< char const *, 8 > TxDBInit
Definition DBInit.h:72
std::string toBase58(AccountID const &v)
Convert AccountID to base58 checked string.
-
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:129
+
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:130
constexpr auto megabytes(T value) noexcept
diff --git a/Oracle__test_8cpp_source.html b/Oracle__test_8cpp_source.html index be9ae915d9..2e4891b949 100644 --- a/Oracle__test_8cpp_source.html +++ b/Oracle__test_8cpp_source.html @@ -1025,7 +1025,7 @@ $(document).ready(function() { init_codefold(0); });
Json::Value acctdelete(Account const &account, Account const &dest)
Delete account.
XRP_t const XRP
Converts to XRP Issue or STAmount.
Definition amount.cpp:105
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
-
std::size_t constexpr maxPriceScale
The maximum price scaling factor.
Definition Protocol.h:161
+
std::size_t constexpr maxPriceScale
The maximum price scaling factor.
Definition Protocol.h:162
constexpr std::uint32_t const tfSellNFToken
Definition TxFlags.h:194
constexpr std::uint32_t asfDisableMaster
Definition TxFlags.h:80
@ tefBAD_QUORUM
Definition TER.h:180
diff --git a/PayChan__test_8cpp_source.html b/PayChan__test_8cpp_source.html index 0132db36e8..c92674574e 100644 --- a/PayChan__test_8cpp_source.html +++ b/PayChan__test_8cpp_source.html @@ -2521,7 +2521,7 @@ $(document).ready(function() { init_codefold(0); });
std::uint32_t seq(Account const &account) const
Returns the next sequence number on account.
Definition Env.cpp:258
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition Env.h:331
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
Definition Env.cpp:121
-
void enableFeature(uint256 const feature)
Definition Env.cpp:641
+
void enableFeature(uint256 const feature)
Definition Env.cpp:650
Json::Value rpc(unsigned apiVersion, std::unordered_map< std::string, std::string > const &headers, std::string const &cmd, Args &&... args)
Execute an RPC command.
Definition Env.h:788
void fund(bool setDefaultRipple, STAmount const &amount, Account const &account)
Definition Env.cpp:279
PrettyAmount balance(Account const &account) const
Returns the XRP balance on an account.
Definition Env.cpp:183
diff --git a/PermissionedDEX__test_8cpp_source.html b/PermissionedDEX__test_8cpp_source.html index ce971c7875..71b4c01210 100644 --- a/PermissionedDEX__test_8cpp_source.html +++ b/PermissionedDEX__test_8cpp_source.html @@ -1731,7 +1731,7 @@ $(document).ready(function() { init_codefold(0); });
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition Env.h:331
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
Definition Env.cpp:121
void trust(STAmount const &amount, Account const &account)
Establish trust lines.
Definition Env.cpp:310
-
void enableFeature(uint256 const feature)
Definition Env.cpp:641
+
void enableFeature(uint256 const feature)
Definition Env.cpp:650
void fund(bool setDefaultRipple, STAmount const &amount, Account const &account)
Definition Env.cpp:279
std::shared_ptr< SLE const > le(Account const &account) const
Return an account root.
Definition Env.cpp:267
diff --git a/PermissionedDomainSet_8cpp_source.html b/PermissionedDomainSet_8cpp_source.html index dccc453ba2..ce1f0ed357 100644 --- a/PermissionedDomainSet_8cpp_source.html +++ b/PermissionedDomainSet_8cpp_source.html @@ -276,7 +276,7 @@ $(document).ready(function() { init_codefold(0); });
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition Indexes.cpp:184
Keylet ownerDir(AccountID const &id) noexcept
The root page of an account's directory.
Definition Indexes.cpp:374
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
-
std::size_t constexpr maxPermissionedDomainCredentialsArraySize
The maximum number of credentials can be passed in array for permissioned domain.
Definition Protocol.h:110
+
std::size_t constexpr maxPermissionedDomainCredentialsArraySize
The maximum number of credentials can be passed in array for permissioned domain.
Definition Protocol.h:111
std::function< void(SLE::ref)> describeOwnerDir(AccountID const &account)
Definition View.cpp:1048
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
@ tefINTERNAL
Definition TER.h:173
diff --git a/PermissionedDomains__test_8cpp_source.html b/PermissionedDomains__test_8cpp_source.html index 8ebf3633ff..1feb1fe9a7 100644 --- a/PermissionedDomains__test_8cpp_source.html +++ b/PermissionedDomains__test_8cpp_source.html @@ -712,7 +712,7 @@ $(document).ready(function() { init_codefold(0); });
A transaction testing environment.
Definition Env.h:121
std::uint32_t ownerCount(Account const &account) const
Return the number of objects owned by an account.
Definition Env.cpp:249
std::uint32_t seq(Account const &account) const
Returns the next sequence number on account.
Definition Env.cpp:258
-
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:506
+
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:515
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition Env.h:331
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
Definition Env.cpp:121
Account const & master
Definition Env.h:125
@@ -743,9 +743,9 @@ $(document).ready(function() { init_codefold(0); });
static std::string exceptionExpected(Env &env, Json::Value const &jv)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
base_uint< 256 > uint256
Definition base_uint.h:558
-
std::size_t constexpr maxPermissionedDomainCredentialsArraySize
The maximum number of credentials can be passed in array for permissioned domain.
Definition Protocol.h:110
+
std::size_t constexpr maxPermissionedDomainCredentialsArraySize
The maximum number of credentials can be passed in array for permissioned domain.
Definition Protocol.h:111
constexpr std::uint32_t tfClawTwoAssets
Definition TxFlags.h:226
-
std::size_t constexpr maxCredentialTypeLength
The maximum length of a CredentialType inside a Credential.
Definition Protocol.h:103
+
std::size_t constexpr maxCredentialTypeLength
The maximum length of a CredentialType inside a Credential.
Definition Protocol.h:104
@ tecNO_ENTRY
Definition TER.h:306
@ tecNO_ISSUER
Definition TER.h:299
@ tecNO_PERMISSION
Definition TER.h:305
diff --git a/Protocol_8h_source.html b/Protocol_8h_source.html index e2eaa25f20..2049fec528 100644 --- a/Protocol_8h_source.html +++ b/Protocol_8h_source.html @@ -105,132 +105,133 @@ $(document).ready(function() { init_codefold(0); });
22
23#include <xrpl/basics/ByteUtilities.h>
24#include <xrpl/basics/base_uint.h>
-
25
-
26#include <cstdint>
-
27
-
28namespace ripple {
-
29
- -
42
- -
45
- -
48
- -
51
- -
54
- -
57
-
59std::uint64_t constexpr dirNodeMaxPages = 262144;
-
60
- -
63
- -
66
- -
69
- -
72
-
82std::uint16_t constexpr maxTransferFee = 50000;
-
83
- -
86
- -
89
- -
92
- -
95
- -
98
- -
101
- -
104
- -
107
- -
111
- -
114
-
116std::uint64_t constexpr maxMPTokenAmount = 0x7FFF'FFFF'FFFF'FFFFull;
-
117
- -
120
- -
123
- -
127
- -
130
-
135using TxID = uint256;
-
136
- -
141
-
143std::size_t constexpr maxOracleURI = 256;
-
144
- -
147
- -
150
- -
153
- -
158
- -
162
-
165std::size_t constexpr maxTrim = 25;
-
166
- -
170
- -
173
-
174} // namespace ripple
-
175
-
176#endif
+
25#include <xrpl/basics/partitioned_unordered_map.h>
+
26
+
27#include <cstdint>
+
28
+
29namespace ripple {
+
30
+ +
43
+ +
46
+ +
49
+ +
52
+ +
55
+ +
58
+
60std::uint64_t constexpr dirNodeMaxPages = 262144;
+
61
+ +
64
+ +
67
+ +
70
+ +
73
+
83std::uint16_t constexpr maxTransferFee = 50000;
+
84
+ +
87
+ +
90
+ +
93
+ +
96
+ +
99
+ +
102
+ +
105
+ +
108
+ +
112
+ +
115
+
117std::uint64_t constexpr maxMPTokenAmount = 0x7FFF'FFFF'FFFF'FFFFull;
+
118
+ +
121
+ +
124
+ +
128
+ +
131
+
136using TxID = uint256;
+
137
+ +
142
+
144std::size_t constexpr maxOracleURI = 256;
+
145
+ +
148
+ +
151
+ +
154
+ +
159
+ +
163
+
166std::size_t constexpr maxTrim = 25;
+
167
+ +
171
+ +
174
+
175} // namespace ripple
+
176
+
177#endif
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
-
std::size_t constexpr maxDIDURILength
The maximum length of a URI inside a DID.
Definition Protocol.h:91
-
std::size_t constexpr permissionMaxSize
The maximum number of delegate permissions an account can grant.
Definition Protocol.h:169
-
std::size_t constexpr maxDeletableDirEntries
The maximum number of owner directory entries for account to be deletable.
Definition Protocol.h:65
-
std::uint8_t constexpr maxAssetCheckDepth
Maximum recursion depth for vault shares being put as an asset inside another vault; counted from 0.
Definition Protocol.h:126
+
std::size_t constexpr maxDIDURILength
The maximum length of a URI inside a DID.
Definition Protocol.h:92
+
std::size_t constexpr permissionMaxSize
The maximum number of delegate permissions an account can grant.
Definition Protocol.h:170
+
std::size_t constexpr maxDeletableDirEntries
The maximum number of owner directory entries for account to be deletable.
Definition Protocol.h:66
+
std::uint8_t constexpr maxAssetCheckDepth
Maximum recursion depth for vault shares being put as an asset inside another vault; counted from 0.
Definition Protocol.h:127
constexpr auto megabytes(T value) noexcept
-
std::uint64_t constexpr dirNodeMaxPages
The maximum number of pages allowed in a directory.
Definition Protocol.h:59
-
std::size_t constexpr maxCredentialURILength
The maximum length of a URI inside a Credential.
Definition Protocol.h:100
-
std::size_t constexpr unfundedOfferRemoveLimit
The maximum number of unfunded offers to delete at once.
Definition Protocol.h:47
-
std::size_t constexpr maxPriceScale
The maximum price scaling factor.
Definition Protocol.h:161
+
std::uint64_t constexpr dirNodeMaxPages
The maximum number of pages allowed in a directory.
Definition Protocol.h:60
+
std::size_t constexpr maxCredentialURILength
The maximum length of a URI inside a Credential.
Definition Protocol.h:101
+
std::size_t constexpr unfundedOfferRemoveLimit
The maximum number of unfunded offers to delete at once.
Definition Protocol.h:48
+
std::size_t constexpr maxPriceScale
The maximum price scaling factor.
Definition Protocol.h:162
base_uint< 256 > uint256
Definition base_uint.h:558
-
std::size_t constexpr maxDIDAttestationLength
The maximum length of an Attestation inside a DID.
Definition Protocol.h:94
-
std::size_t constexpr maxPermissionedDomainCredentialsArraySize
The maximum number of credentials can be passed in array for permissioned domain.
Definition Protocol.h:110
-
std::size_t constexpr expiredOfferRemoveLimit
The maximum number of expired offers to delete at once.
Definition Protocol.h:50
-
std::uint64_t constexpr maxMPTokenAmount
The maximum amount of MPTokenIssuance.
Definition Protocol.h:116
-
std::size_t constexpr maxTokenOfferCancelCount
The maximum number of token offers that can be canceled at once.
Definition Protocol.h:68
-
std::size_t constexpr maxOracleURI
The maximum length of a URI inside an Oracle.
Definition Protocol.h:143
-
std::uint16_t constexpr maxTransferFee
The maximum token transfer fee allowed.
Definition Protocol.h:82
-
std::size_t constexpr maxDIDDocumentLength
The maximum length of a Data element inside a DID.
Definition Protocol.h:88
-
std::size_t constexpr maxDeletableTokenOfferEntries
The maximum number of offers in an offer directory for NFT to be burnable.
Definition Protocol.h:71
-
std::size_t constexpr oversizeMetaDataCap
The maximum number of metadata entries allowed in one transaction.
Definition Protocol.h:53
-
std::size_t constexpr maxOracleProvider
The maximum length of a Provider inside an Oracle.
Definition Protocol.h:146
-
std::size_t constexpr txMinSizeBytes
Protocol specific constants.
Definition Protocol.h:41
-
std::size_t constexpr maxDataPayloadLength
The maximum length of Data payload.
Definition Protocol.h:119
-
std::size_t constexpr dirMaxTokensPerPage
The maximum number of items in an NFT page.
Definition Protocol.h:62
-
std::size_t constexpr maxTrim
The maximum percentage of outliers to trim.
Definition Protocol.h:165
-
std::size_t constexpr maxDomainLength
The maximum length of a domain.
Definition Protocol.h:97
-
std::size_t constexpr maxMPTokenMetadataLength
The maximum length of MPTokenMetadata.
Definition Protocol.h:113
-
std::size_t constexpr maxCredentialsArraySize
The maximum number of credentials can be passed in array.
Definition Protocol.h:106
-
std::size_t constexpr maxCredentialTypeLength
The maximum length of a CredentialType inside a Credential.
Definition Protocol.h:103
-
std::size_t constexpr maxTokenURILength
The maximum length of a URI inside an NFT.
Definition Protocol.h:85
-
std::size_t constexpr dirNodeMaxEntries
The maximum number of entries per directory page.
Definition Protocol.h:56
-
std::size_t constexpr maxOracleSymbolClass
The maximum length of a SymbolClass inside an Oracle.
Definition Protocol.h:152
-
std::size_t constexpr txMaxSizeBytes
Largest legal byte size of a transaction.
Definition Protocol.h:44
-
std::uint8_t constexpr vaultStrategyFirstComeFirstServe
Vault withdrawal policies.
Definition Protocol.h:122
-
std::size_t constexpr maxOracleDataSeries
The maximum size of a data series array inside an Oracle.
Definition Protocol.h:149
-
std::size_t constexpr maxBatchTxCount
The maximum number of transactions that can be in a batch.
Definition Protocol.h:172
-
std::uint16_t constexpr maxDeletableAMMTrustLines
The maximum number of trustlines to delete as part of AMM account deletion cleanup.
Definition Protocol.h:140
-
std::size_t constexpr maxLastUpdateTimeDelta
The maximum allowed time difference between lastUpdateTime and the time of the last closed ledger.
Definition Protocol.h:157
+
std::size_t constexpr maxDIDAttestationLength
The maximum length of an Attestation inside a DID.
Definition Protocol.h:95
+
std::size_t constexpr maxPermissionedDomainCredentialsArraySize
The maximum number of credentials can be passed in array for permissioned domain.
Definition Protocol.h:111
+
std::size_t constexpr expiredOfferRemoveLimit
The maximum number of expired offers to delete at once.
Definition Protocol.h:51
+
std::uint64_t constexpr maxMPTokenAmount
The maximum amount of MPTokenIssuance.
Definition Protocol.h:117
+
std::size_t constexpr maxTokenOfferCancelCount
The maximum number of token offers that can be canceled at once.
Definition Protocol.h:69
+
std::size_t constexpr maxOracleURI
The maximum length of a URI inside an Oracle.
Definition Protocol.h:144
+
std::uint16_t constexpr maxTransferFee
The maximum token transfer fee allowed.
Definition Protocol.h:83
+
std::size_t constexpr maxDIDDocumentLength
The maximum length of a Data element inside a DID.
Definition Protocol.h:89
+
std::size_t constexpr maxDeletableTokenOfferEntries
The maximum number of offers in an offer directory for NFT to be burnable.
Definition Protocol.h:72
+
std::size_t constexpr oversizeMetaDataCap
The maximum number of metadata entries allowed in one transaction.
Definition Protocol.h:54
+
std::size_t constexpr maxOracleProvider
The maximum length of a Provider inside an Oracle.
Definition Protocol.h:147
+
std::size_t constexpr txMinSizeBytes
Protocol specific constants.
Definition Protocol.h:42
+
std::size_t constexpr maxDataPayloadLength
The maximum length of Data payload.
Definition Protocol.h:120
+
std::size_t constexpr dirMaxTokensPerPage
The maximum number of items in an NFT page.
Definition Protocol.h:63
+
std::size_t constexpr maxTrim
The maximum percentage of outliers to trim.
Definition Protocol.h:166
+
std::size_t constexpr maxDomainLength
The maximum length of a domain.
Definition Protocol.h:98
+
std::size_t constexpr maxMPTokenMetadataLength
The maximum length of MPTokenMetadata.
Definition Protocol.h:114
+
std::size_t constexpr maxCredentialsArraySize
The maximum number of credentials can be passed in array.
Definition Protocol.h:107
+
std::size_t constexpr maxCredentialTypeLength
The maximum length of a CredentialType inside a Credential.
Definition Protocol.h:104
+
std::size_t constexpr maxTokenURILength
The maximum length of a URI inside an NFT.
Definition Protocol.h:86
+
std::size_t constexpr dirNodeMaxEntries
The maximum number of entries per directory page.
Definition Protocol.h:57
+
std::size_t constexpr maxOracleSymbolClass
The maximum length of a SymbolClass inside an Oracle.
Definition Protocol.h:153
+
std::size_t constexpr txMaxSizeBytes
Largest legal byte size of a transaction.
Definition Protocol.h:45
+
std::uint8_t constexpr vaultStrategyFirstComeFirstServe
Vault withdrawal policies.
Definition Protocol.h:123
+
std::size_t constexpr maxOracleDataSeries
The maximum size of a data series array inside an Oracle.
Definition Protocol.h:150
+
std::size_t constexpr maxBatchTxCount
The maximum number of transactions that can be in a batch.
Definition Protocol.h:173
+
std::uint16_t constexpr maxDeletableAMMTrustLines
The maximum number of trustlines to delete as part of AMM account deletion cleanup.
Definition Protocol.h:141
+
std::size_t constexpr maxLastUpdateTimeDelta
The maximum allowed time difference between lastUpdateTime and the time of the last closed ledger.
Definition Protocol.h:158
diff --git a/RCLCxLedger_8h_source.html b/RCLCxLedger_8h_source.html index 7612919e27..047d7d6e60 100644 --- a/RCLCxLedger_8h_source.html +++ b/RCLCxLedger_8h_source.html @@ -215,7 +215,7 @@ $(document).ready(function() { init_codefold(0); });
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
bool getCloseAgree(LedgerHeader const &info)
-
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:129
+
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:130
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
uint256 LedgerHash
diff --git a/RCLValidations_8h_source.html b/RCLValidations_8h_source.html index da2a2f4d6d..c0a060a7ca 100644 --- a/RCLValidations_8h_source.html +++ b/RCLValidations_8h_source.html @@ -368,7 +368,7 @@ $(document).ready(function() { init_codefold(0); });
T is_same_v
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
-
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:129
+
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:130
base_uint< 160, detail::NodeIDTag > NodeID
NodeID is a 160-bit hash representing one node.
Definition UintTypes.h:59
void handleNewValidation(Application &app, std::shared_ptr< STValidation > const &val, std::string const &source, BypassAccept const bypassAccept, std::optional< beast::Journal > j)
Handle a new validation.
@ no
Definition Steps.h:45
diff --git a/Regression__test_8cpp_source.html b/Regression__test_8cpp_source.html index e1b707ba43..d6b8813c1a 100644 --- a/Regression__test_8cpp_source.html +++ b/Regression__test_8cpp_source.html @@ -461,8 +461,8 @@ $(document).ready(function() { init_codefold(0); });
std::shared_ptr< Ledger const > getClosedLedger()
Writable ledger view that accumulates state and tx changes.
Definition OpenView.h:66
void apply(TxsRawView &to) const
Apply changes.
Definition OpenView.cpp:129
- -
uint256 const & as_uint256() const
Definition SHAMapHash.h:43
+ +
uint256 const & as_uint256() const
Definition SHAMapHash.h:44
bool del(key_type const &key, bool valid)
time_point closeTime() const
Returns the predicted close time, in network time.
Definition TimeKeeper.h:76
Immutable cryptographic account descriptor.
Definition Account.h:39
@@ -470,7 +470,7 @@ $(document).ready(function() { init_codefold(0); });
A transaction testing environment.
Definition Env.h:121
Json::Value json(JsonValue &&jv, FN const &... fN)
Create JSON from parameters.
Definition Env.h:531
std::uint32_t seq(Account const &account) const
Returns the next sequence number on account.
Definition Env.cpp:258
-
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:506
+
std::shared_ptr< STTx const > tx() const
Return the tx data for the last JTx.
Definition Env.cpp:515
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
Definition Env.h:331
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
Definition Env.cpp:121
Account const & master
Definition Env.h:125
diff --git a/SHAMapAccountStateLeafNode_8h_source.html b/SHAMapAccountStateLeafNode_8h_source.html index c41908bf52..a4a6cdfb16 100644 --- a/SHAMapAccountStateLeafNode_8h_source.html +++ b/SHAMapAccountStateLeafNode_8h_source.html @@ -198,7 +198,7 @@ $(document).ready(function() { init_codefold(0); });
void updateHash() final override
Recalculate the hash of this node.
void serializeWithPrefix(Serializer &s) const final override
Serialize the node in a format appropriate for hashing.
intr_ptr::SharedPtr< SHAMapTreeNode > clone(std::uint32_t cowid) const final override
Make a copy of this node, setting the owner.
- +
boost::intrusive_ptr< SHAMapItem const > item_
diff --git a/SHAMapHash_8h_source.html b/SHAMapHash_8h_source.html index b97692f275..b84745950b 100644 --- a/SHAMapHash_8h_source.html +++ b/SHAMapHash_8h_source.html @@ -104,150 +104,151 @@ $(document).ready(function() { init_codefold(0); });
21#define RIPPLE_BASICS_SHAMAP_HASH_H_INCLUDED
22
23#include <xrpl/basics/base_uint.h>
-
24
-
25#include <ostream>
-
26
-
27namespace ripple {
-
28
-
29// A SHAMapHash is the hash of a node in a SHAMap, and also the
-
30// type of the hash of the entire SHAMap.
-
31
-
- -
33{
- -
35
-
36public:
-
37 SHAMapHash() = default;
-
-
38 explicit SHAMapHash(uint256 const& hash) : hash_(hash)
-
39 {
-
40 }
+
24#include <xrpl/basics/partitioned_unordered_map.h>
+
25
+
26#include <ostream>
+
27
+
28namespace ripple {
+
29
+
30// A SHAMapHash is the hash of a node in a SHAMap, and also the
+
31// type of the hash of the entire SHAMap.
+
32
+
+ +
34{
+ +
36
+
37public:
+
38 SHAMapHash() = default;
+
+
39 explicit SHAMapHash(uint256 const& hash) : hash_(hash)
+
40 {
+
41 }
-
41
-
42 uint256 const&
-
-
43 as_uint256() const
-
44 {
-
45 return hash_;
-
46 }
+
42
+
43 uint256 const&
+
+
44 as_uint256() const
+
45 {
+
46 return hash_;
+
47 }
-
47 uint256&
-
- -
49 {
-
50 return hash_;
-
51 }
+
48 uint256&
+
+ +
50 {
+
51 return hash_;
+
52 }
-
52 bool
-
-
53 isZero() const
-
54 {
-
55 return hash_.isZero();
-
56 }
+
53 bool
+
+
54 isZero() const
+
55 {
+
56 return hash_.isZero();
+
57 }
-
57 bool
-
-
58 isNonZero() const
-
59 {
-
60 return hash_.isNonZero();
-
61 }
+
58 bool
+
+
59 isNonZero() const
+
60 {
+
61 return hash_.isNonZero();
+
62 }
-
62 int
-
-
63 signum() const
-
64 {
-
65 return hash_.signum();
-
66 }
+
63 int
+
+
64 signum() const
+
65 {
+
66 return hash_.signum();
+
67 }
-
67 void
-
- -
69 {
-
70 hash_.zero();
-
71 }
+
68 void
+
+ +
70 {
+
71 hash_.zero();
+
72 }
-
72
-
73 friend bool
-
-
74 operator==(SHAMapHash const& x, SHAMapHash const& y)
-
75 {
-
76 return x.hash_ == y.hash_;
-
77 }
+
73
+
74 friend bool
+
+
75 operator==(SHAMapHash const& x, SHAMapHash const& y)
+
76 {
+
77 return x.hash_ == y.hash_;
+
78 }
-
78
-
-
79 friend bool
-
80 operator<(SHAMapHash const& x, SHAMapHash const& y)
-
81 {
-
82 return x.hash_ < y.hash_;
-
83 }
+
79
+
+
80 friend bool
+
81 operator<(SHAMapHash const& x, SHAMapHash const& y)
+
82 {
+
83 return x.hash_ < y.hash_;
+
84 }
-
84
-
- - -
87 {
-
88 return os << x.hash_;
-
89 }
+
85
+
+ + +
88 {
+
89 return os << x.hash_;
+
90 }
-
90
-
91 friend std::string
-
- -
93 {
-
94 return to_string(x.hash_);
-
95 }
+
91
+
92 friend std::string
+
+ +
94 {
+
95 return to_string(x.hash_);
+
96 }
-
96
-
97 template <class H>
-
98 friend void
-
-
99 hash_append(H& h, SHAMapHash const& x)
-
100 {
-
101 hash_append(h, x.hash_);
-
102 }
+
97
+
98 template <class H>
+
99 friend void
+
+
100 hash_append(H& h, SHAMapHash const& x)
+
101 {
+
102 hash_append(h, x.hash_);
+
103 }
-
103};
+
104};
-
104
-
105inline bool
-
- -
107{
-
108 return !(x == y);
-
109}
+
105
+
106inline bool
+
+ +
108{
+
109 return !(x == y);
+
110}
-
110
-
111template <>
-
112inline std::size_t
-
- -
114{
-
115 return *reinterpret_cast<std::size_t const*>(key.as_uint256().data());
-
116}
+
111
+
112template <>
+
113inline std::size_t
+
+ +
115{
+
116 return *reinterpret_cast<std::size_t const*>(key.as_uint256().data());
+
117}
-
117
-
118} // namespace ripple
-
119
-
120#endif // RIPPLE_BASICS_SHAMAP_HASH_H_INCLUDED
+
118
+
119} // namespace ripple
+
120
+
121#endif // RIPPLE_BASICS_SHAMAP_HASH_H_INCLUDED
- +
SHAMapHash()=default
-
friend std::string to_string(SHAMapHash const &x)
Definition SHAMapHash.h:92
-
friend bool operator==(SHAMapHash const &x, SHAMapHash const &y)
Definition SHAMapHash.h:74
-
friend bool operator<(SHAMapHash const &x, SHAMapHash const &y)
Definition SHAMapHash.h:80
-
SHAMapHash(uint256 const &hash)
Definition SHAMapHash.h:38
-
bool isNonZero() const
Definition SHAMapHash.h:58
-
friend void hash_append(H &h, SHAMapHash const &x)
Definition SHAMapHash.h:99
-
uint256 const & as_uint256() const
Definition SHAMapHash.h:43
-
friend std::ostream & operator<<(std::ostream &os, SHAMapHash const &x)
Definition SHAMapHash.h:86
-
bool isZero() const
Definition SHAMapHash.h:53
-
uint256 & as_uint256()
Definition SHAMapHash.h:48
- -
int signum() const
Definition SHAMapHash.h:63
- +
friend std::string to_string(SHAMapHash const &x)
Definition SHAMapHash.h:93
+
friend bool operator==(SHAMapHash const &x, SHAMapHash const &y)
Definition SHAMapHash.h:75
+
friend bool operator<(SHAMapHash const &x, SHAMapHash const &y)
Definition SHAMapHash.h:81
+
SHAMapHash(uint256 const &hash)
Definition SHAMapHash.h:39
+
bool isNonZero() const
Definition SHAMapHash.h:59
+
friend void hash_append(H &h, SHAMapHash const &x)
Definition SHAMapHash.h:100
+
uint256 const & as_uint256() const
Definition SHAMapHash.h:44
+
friend std::ostream & operator<<(std::ostream &os, SHAMapHash const &x)
Definition SHAMapHash.h:87
+
bool isZero() const
Definition SHAMapHash.h:54
+
uint256 & as_uint256()
Definition SHAMapHash.h:49
+ +
int signum() const
Definition SHAMapHash.h:64
+ diff --git a/SHAMapInnerNode_8cpp_source.html b/SHAMapInnerNode_8cpp_source.html index 3a7dc83dcc..83c8d3c8a2 100644 --- a/SHAMapInnerNode_8cpp_source.html +++ b/SHAMapInnerNode_8cpp_source.html @@ -610,11 +610,11 @@ $(document).ready(function() { init_codefold(0); });
485
486} // namespace ripple
- -
bool isNonZero() const
Definition SHAMapHash.h:58
-
uint256 const & as_uint256() const
Definition SHAMapHash.h:43
-
bool isZero() const
Definition SHAMapHash.h:53
- + +
bool isNonZero() const
Definition SHAMapHash.h:59
+
uint256 const & as_uint256() const
Definition SHAMapHash.h:44
+
bool isZero() const
Definition SHAMapHash.h:54
+
std::optional< int > getChildIndex(int i) const
Get the child's index inside the hashes or children array (stored in hashesAndChildren_.
diff --git a/SHAMapInnerNode_8h_source.html b/SHAMapInnerNode_8h_source.html index 98dbb70431..440cd516bb 100644 --- a/SHAMapInnerNode_8h_source.html +++ b/SHAMapInnerNode_8h_source.html @@ -290,7 +290,7 @@ $(document).ready(function() { init_codefold(0); });
Tracks the number of instances of an object.
- +
bool isInner() const override
Determines if this is an inner node.
diff --git a/SHAMapLeafNode_8cpp_source.html b/SHAMapLeafNode_8cpp_source.html index d43ca015eb..0e79607c46 100644 --- a/SHAMapLeafNode_8cpp_source.html +++ b/SHAMapLeafNode_8cpp_source.html @@ -194,8 +194,8 @@ $(document).ready(function() { init_codefold(0); });
99
100} // namespace ripple
- -
bool isNonZero() const
Definition SHAMapHash.h:58
+ +
bool isNonZero() const
Definition SHAMapHash.h:59
std::string getString(SHAMapNodeID const &) const final override
boost::intrusive_ptr< SHAMapItem const > item_
SHAMapLeafNode(boost::intrusive_ptr< SHAMapItem const > item, std::uint32_t cowid)
diff --git a/SHAMapLeafNode_8h_source.html b/SHAMapLeafNode_8h_source.html index 94e4cc9628..d4f54ca8d8 100644 --- a/SHAMapLeafNode_8h_source.html +++ b/SHAMapLeafNode_8h_source.html @@ -164,7 +164,7 @@ $(document).ready(function() { init_codefold(0); });
81} // namespace ripple
82
83#endif
- +
SHAMapLeafNode & operator=(SHAMapLeafNode const &)=delete
diff --git a/SHAMapMissingNode_8h_source.html b/SHAMapMissingNode_8h_source.html index c6cc3858be..67d4fc78b9 100644 --- a/SHAMapMissingNode_8h_source.html +++ b/SHAMapMissingNode_8h_source.html @@ -167,7 +167,7 @@ $(document).ready(function() { init_codefold(0); });
74
75#endif
- +
SHAMapMissingNode(SHAMapType t, uint256 const &id)
SHAMapMissingNode(SHAMapType t, SHAMapHash const &hash)
diff --git a/SHAMapStoreImp_8cpp_source.html b/SHAMapStoreImp_8cpp_source.html index fb622d5133..4688127c1f 100644 --- a/SHAMapStoreImp_8cpp_source.html +++ b/SHAMapStoreImp_8cpp_source.html @@ -856,7 +856,7 @@ $(document).ready(function() { init_codefold(0); });
static Manager & instance()
Returns the instance of the manager singleton.
Scheduling for asynchronous backend activity.
virtual std::optional< LedgerIndex > getMinLedgerSeq()=0
getMinLedgerSeq Returns the minimum ledger sequence in the Ledgers table.
-
uint256 const & as_uint256() const
Definition SHAMapHash.h:43
+
uint256 const & as_uint256() const
Definition SHAMapHash.h:44
LedgerIndex setCanDelete(LedgerIndex canDelete)
diff --git a/SHAMapSyncFilter_8h_source.html b/SHAMapSyncFilter_8h_source.html index 03b9361c8c..49ce980b01 100644 --- a/SHAMapSyncFilter_8h_source.html +++ b/SHAMapSyncFilter_8h_source.html @@ -136,7 +136,7 @@ $(document).ready(function() { init_codefold(0); });
52} // namespace ripple
53
54#endif
- +
virtual void gotNode(bool fromFilter, SHAMapHash const &nodeHash, std::uint32_t ledgerSeq, Blob &&nodeData, SHAMapNodeType type) const =0
diff --git a/SHAMapSync_8cpp_source.html b/SHAMapSync_8cpp_source.html index fa5c3e4749..b96d93dd34 100644 --- a/SHAMapSync_8cpp_source.html +++ b/SHAMapSync_8cpp_source.html @@ -985,7 +985,7 @@ $(document).ready(function() { init_codefold(0); });
880} // namespace ripple
virtual std::shared_ptr< FullBelowCache > getFullBelowCache()=0
Return a pointer to the Family Full Below Cache.
- +
bool isFullBelow(std::uint32_t generation) const
diff --git a/SHAMapSync__test_8cpp_source.html b/SHAMapSync__test_8cpp_source.html index b1b7db393d..7cdf26d6f1 100644 --- a/SHAMapSync__test_8cpp_source.html +++ b/SHAMapSync__test_8cpp_source.html @@ -288,7 +288,7 @@ $(document).ready(function() { init_codefold(0); });
log_os< char > log
Logging output stream.
Definition suite.h:152
bool unexpected(Condition shouldBeFalse, String const &reason)
Definition suite.h:499
void fail(String const &reason, char const *file, int line)
Record a failure.
Definition suite.h:533
- +
Identifies a node inside a SHAMap.
A SHAMap is both a radix tree with a fan-out of 16 and a Merkle tree.
Definition SHAMap.h:99
bool getNodeFat(SHAMapNodeID const &wanted, std::vector< std::pair< SHAMapNodeID, Blob > > &data, bool fatLeaves, std::uint32_t depth) const
diff --git a/SHAMapTreeNode_8cpp_source.html b/SHAMapTreeNode_8cpp_source.html index 2f91395952..f0ff37b85b 100644 --- a/SHAMapTreeNode_8cpp_source.html +++ b/SHAMapTreeNode_8cpp_source.html @@ -281,7 +281,7 @@ $(document).ready(function() { init_codefold(0); });
186
187} // namespace ripple
- +
static intr_ptr::SharedPtr< SHAMapTreeNode > makeCompressedInner(Slice data)
static intr_ptr::SharedPtr< SHAMapTreeNode > makeFullInner(Slice data, SHAMapHash const &hash, bool hashValid)
Identifies a node inside a SHAMap.
diff --git a/SHAMapTreeNode_8h_source.html b/SHAMapTreeNode_8h_source.html index e130e7e8b1..fe694ae672 100644 --- a/SHAMapTreeNode_8h_source.html +++ b/SHAMapTreeNode_8h_source.html @@ -239,7 +239,7 @@ $(document).ready(function() { init_codefold(0); });
194
195#endif
- +
Identifies a node inside a SHAMap.
SHAMapTreeNode & operator=(SHAMapTreeNode const &)=delete
diff --git a/SHAMapTxLeafNode_8h_source.html b/SHAMapTxLeafNode_8h_source.html index d02274a4cf..0c3b64bcc0 100644 --- a/SHAMapTxLeafNode_8h_source.html +++ b/SHAMapTxLeafNode_8h_source.html @@ -186,7 +186,7 @@ $(document).ready(function() { init_codefold(0); });
88
89#endif
Tracks the number of instances of an object.
- +
boost::intrusive_ptr< SHAMapItem const > item_
diff --git a/SHAMapTxPlusMetaLeafNode_8h_source.html b/SHAMapTxPlusMetaLeafNode_8h_source.html index 5980c34f32..a0b970d20d 100644 --- a/SHAMapTxPlusMetaLeafNode_8h_source.html +++ b/SHAMapTxPlusMetaLeafNode_8h_source.html @@ -190,7 +190,7 @@ $(document).ready(function() { init_codefold(0); });
92
93#endif
Tracks the number of instances of an object.
- +
boost::intrusive_ptr< SHAMapItem const > item_
diff --git a/SHAMap_8cpp_source.html b/SHAMap_8cpp_source.html index efbfcde95b..f3340aae22 100644 --- a/SHAMap_8cpp_source.html +++ b/SHAMap_8cpp_source.html @@ -1436,8 +1436,8 @@ $(document).ready(function() { init_codefold(0); });
virtual void asyncFetch(uint256 const &hash, std::uint32_t ledgerSeq, std::function< void(std::shared_ptr< NodeObject > const &)> &&callback)
Fetch an object without waiting.
Definition Database.cpp:185
std::shared_ptr< NodeObject > fetchNodeObject(uint256 const &hash, std::uint32_t ledgerSeq=0, FetchType fetchType=FetchType::synchronous, bool duplicate=false)
Fetch a node object.
Definition Database.cpp:241
virtual void store(NodeObjectType type, Blob &&data, uint256 const &hash, std::uint32_t ledgerSeq)=0
Store the object.
- -
uint256 const & as_uint256() const
Definition SHAMapHash.h:43
+ +
uint256 const & as_uint256() const
Definition SHAMapHash.h:44
bool isInner() const override
Determines if this is an inner node.
void setChild(int m, intr_ptr::SharedPtr< SHAMapTreeNode > child)
diff --git a/SHAMap_8h_source.html b/SHAMap_8h_source.html index f32aff47b3..5e961e14af 100644 --- a/SHAMap_8h_source.html +++ b/SHAMap_8h_source.html @@ -801,7 +801,7 @@ $(document).ready(function() { init_codefold(0); });
pointer operator->() const
Definition Dir.h:84
- +
static constexpr unsigned int branchFactor
Each inner node has 16 children (the 'radix tree' part of the map)
diff --git a/SHAMap__test_8cpp_source.html b/SHAMap__test_8cpp_source.html index a44d01cd0e..bc27e0f08e 100644 --- a/SHAMap__test_8cpp_source.html +++ b/SHAMap__test_8cpp_source.html @@ -519,8 +519,8 @@ $(document).ready(function() { init_codefold(0); });
Like std::vector<char> but better.
Definition Buffer.h:36
std::size_t size() const noexcept
Returns the number of bytes in the buffer.
Definition Buffer.h:127
std::uint8_t const * data() const noexcept
Return a pointer to beginning of the storage.
Definition Buffer.h:151
- -
uint256 const & as_uint256() const
Definition SHAMapHash.h:43
+ +
uint256 const & as_uint256() const
Definition SHAMapHash.h:44
uint256 const & key() const
Definition SHAMapItem.h:88
A SHAMap is both a radix tree with a fan-out of 16 and a Merkle tree.
Definition SHAMap.h:99
diff --git a/STAmount_8cpp_source.html b/STAmount_8cpp_source.html index 584ba32bf2..61246fce6e 100644 --- a/STAmount_8cpp_source.html +++ b/STAmount_8cpp_source.html @@ -2063,7 +2063,7 @@ $(document).ready(function() { init_codefold(0); });
SerializedTypeID
Definition SField.h:107
static std::uint64_t const tenTo17
Definition STAmount.cpp:96
SField const sfGeneric
-
std::uint64_t constexpr maxMPTokenAmount
The maximum amount of MPTokenIssuance.
Definition Protocol.h:116
+
std::uint64_t constexpr maxMPTokenAmount
The maximum amount of MPTokenIssuance.
Definition Protocol.h:117
STAmount amountFromQuality(std::uint64_t rate)
bool getSTAmountCanonicalizeSwitchover()
Definition STAmount.cpp:83
static std::string const & systemCurrencyCode()
diff --git a/STTx_8cpp_source.html b/STTx_8cpp_source.html index 2023c69ab9..ac8eaf70f8 100644 --- a/STTx_8cpp_source.html +++ b/STTx_8cpp_source.html @@ -1084,7 +1084,7 @@ $(document).ready(function() { init_codefold(0); });
SerializedTypeID
Definition SField.h:107
void serializeBatch(Serializer &msg, std::uint32_t const &flags, std::vector< uint256 > const &txids)
constexpr std::enable_if_t< std::is_integral_v< Dest > &&std::is_integral_v< Src >, Dest > safe_cast(Src s) noexcept
Definition safe_cast.h:42
-
std::size_t constexpr txMinSizeBytes
Protocol specific constants.
Definition Protocol.h:41
+
std::size_t constexpr txMinSizeBytes
Protocol specific constants.
Definition Protocol.h:42
static auto getTxFormat(TxType type)
Definition STTx.cpp:76
Buffer sign(PublicKey const &pk, SecretKey const &sk, Slice const &message)
Generate a signature for a message.
std::optional< KeyType > publicKeyType(Slice const &slice)
Returns the type of public key.
@@ -1101,12 +1101,12 @@ $(document).ready(function() { init_codefold(0); });
bool passesLocalChecks(STObject const &st, std::string &)
Definition STTx.cpp:781
@ soeMPTNone
Definition SOTemplate.h:43
@ soeMPTSupported
Definition SOTemplate.h:43
-
std::size_t constexpr txMaxSizeBytes
Largest legal byte size of a transaction.
Definition Protocol.h:44
+
std::size_t constexpr txMaxSizeBytes
Largest legal byte size of a transaction.
Definition Protocol.h:45
std::string to_string(base_uint< Bits, Tag > const &a)
Definition base_uint.h:630
constexpr std::uint32_t tfFullyCanonicalSig
Transaction flags.
Definition TxFlags.h:60
@ txSign
inner transaction to sign
@ transactionID
transaction plus signature to give transaction ID
-
std::size_t constexpr maxBatchTxCount
The maximum number of transactions that can be in a batch.
Definition Protocol.h:172
+
std::size_t constexpr maxBatchTxCount
The maximum number of transactions that can be in a batch.
Definition Protocol.h:173
void LogicError(std::string const &how) noexcept
Called when faulty logic causes a broken invariant.
STL namespace.
diff --git a/SetAccount_8cpp_source.html b/SetAccount_8cpp_source.html index 3a6d468309..e6a53630b4 100644 --- a/SetAccount_8cpp_source.html +++ b/SetAccount_8cpp_source.html @@ -835,7 +835,7 @@ $(document).ready(function() { init_codefold(0); });
constexpr std::uint32_t asfNoFreeze
Definition TxFlags.h:82
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
AccountID calcAccountID(PublicKey const &pk)
-
std::size_t constexpr maxDomainLength
The maximum length of a domain.
Definition Protocol.h:97
+
std::size_t constexpr maxDomainLength
The maximum length of a domain.
Definition Protocol.h:98
constexpr std::uint32_t asfDisableMaster
Definition TxFlags.h:80
constexpr std::uint32_t asfDisallowIncomingTrustline
Definition TxFlags.h:93
@ tefINTERNAL
Definition TER.h:173
diff --git a/SetOracle_8cpp_source.html b/SetOracle_8cpp_source.html index 223a03c098..84a792e59c 100644 --- a/SetOracle_8cpp_source.html +++ b/SetOracle_8cpp_source.html @@ -477,9 +477,9 @@ $(document).ready(function() { init_codefold(0); });
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
static void setPriceDataInnerObjTemplate(STObject &obj)
bool isConsistent(Book const &book)
Definition Book.cpp:29
-
std::size_t constexpr maxPriceScale
The maximum price scaling factor.
Definition Protocol.h:161
-
std::size_t constexpr maxOracleURI
The maximum length of a URI inside an Oracle.
Definition Protocol.h:143
-
std::size_t constexpr maxOracleProvider
The maximum length of a Provider inside an Oracle.
Definition Protocol.h:146
+
std::size_t constexpr maxPriceScale
The maximum price scaling factor.
Definition Protocol.h:162
+
std::size_t constexpr maxOracleURI
The maximum length of a URI inside an Oracle.
Definition Protocol.h:144
+
std::size_t constexpr maxOracleProvider
The maximum length of a Provider inside an Oracle.
Definition Protocol.h:147
std::function< void(SLE::ref)> describeOwnerDir(AccountID const &account)
Definition View.cpp:1048
static std::pair< Currency, Currency > tokenPairKey(STObject const &pair)
Definition SetOracle.cpp:32
NotTEC preflight1(PreflightContext const &ctx)
Performs early sanity checks on the account and fee fields.
@@ -494,14 +494,14 @@ $(document).ready(function() { init_codefold(0); });
@ tecARRAY_EMPTY
Definition TER.h:356
@ tecTOKEN_PAIR_NOT_FOUND
Definition TER.h:355
static constexpr std::chrono::seconds epoch_offset
Clock for measuring the network time.
Definition chrono.h:55
-
std::size_t constexpr maxOracleSymbolClass
The maximum length of a SymbolClass inside an Oracle.
Definition Protocol.h:152
+
std::size_t constexpr maxOracleSymbolClass
The maximum length of a SymbolClass inside an Oracle.
Definition Protocol.h:153
@ tesSUCCESS
Definition TER.h:244
bool isTesSuccess(TER x) noexcept
Definition TER.h:674
constexpr std::uint32_t tfUniversalMask
Definition TxFlags.h:63
-
std::size_t constexpr maxOracleDataSeries
The maximum size of a data series array inside an Oracle.
Definition Protocol.h:149
+
std::size_t constexpr maxOracleDataSeries
The maximum size of a data series array inside an Oracle.
Definition Protocol.h:150
@ terNO_ACCOUNT
Definition TER.h:217
TERSubset< CanCvtToTER > TER
Definition TER.h:645
-
std::size_t constexpr maxLastUpdateTimeDelta
The maximum allowed time difference between lastUpdateTime and the time of the last closed ledger.
Definition Protocol.h:157
+
std::size_t constexpr maxLastUpdateTimeDelta
The maximum allowed time difference between lastUpdateTime and the time of the last closed ledger.
Definition Protocol.h:158
TERSubset< CanCvtToNotTEC > NotTEC
Definition TER.h:605
@ temMALFORMED
Definition TER.h:87
@ temINVALID_FLAG
Definition TER.h:111
diff --git a/State_8cpp_source.html b/State_8cpp_source.html index 2537a0c788..d03c1bc238 100644 --- a/State_8cpp_source.html +++ b/State_8cpp_source.html @@ -228,7 +228,7 @@ $(document).ready(function() { init_codefold(0); });
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
LedgerIndex getCanDelete(soci::session &session)
getCanDelete Returns the ledger sequence which can be deleted.
Definition State.cpp:81
-
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:129
+
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:130
SavedState getSavedState(soci::session &session)
getSavedState Returns the saved state.
Definition State.cpp:99
void setSavedState(soci::session &session, SavedState const &state)
setSavedState Saves the given state.
Definition State.cpp:111
void initStateDB(soci::session &session, BasicConfig const &config, std::string const &dbName)
initStateDB Opens a session with the State database.
Definition State.cpp:25
diff --git a/TaggedCache_8h_source.html b/TaggedCache_8h_source.html index c2ca270c9a..463078f243 100644 --- a/TaggedCache_8h_source.html +++ b/TaggedCache_8h_source.html @@ -160,248 +160,252 @@ $(document).ready(function() { init_codefold(0); });
90 int
91 getCacheSize() const;
92
-
93 float
- +
93 int
+
94 getTrackSize() const;
95
-
96 void
- +
96 float
+
98
99 void
- +
101
-
105 template <class KeyComparable>
-
106 bool
-
107 touch_if_exists(KeyComparable const& key);
-
108
- -
110
-
111 void
- +
102 void
+ +
104
+
108 template <class KeyComparable>
+
109 bool
+
110 touch_if_exists(KeyComparable const& key);
+
111
+
113
-
114 bool
-
115 del(key_type const& key, bool valid);
+
114 void
+
116
-
117public:
-
131 template <class R>
-
132 bool
- -
134 key_type const& key,
-
135 SharedPointerType& data,
-
136 R&& replaceCallback);
-
137
-
138 bool
- -
140 key_type const& key,
-
141 SharedPointerType const& data);
-
142
-
143 bool
-
144 canonicalize_replace_client(key_type const& key, SharedPointerType& data);
+
117 bool
+
118 del(key_type const& key, bool valid);
+
119
+
120public:
+
134 template <class R>
+
135 bool
+ +
137 key_type const& key,
+
138 SharedPointerType& data,
+
139 R&& replaceCallback);
+
140
+
141 bool
+ +
143 key_type const& key,
+
144 SharedPointerType const& data);
145
-
146 SharedPointerType
-
147 fetch(key_type const& key);
+
146 bool
+
147 canonicalize_replace_client(key_type const& key, SharedPointerType& data);
148
-
153 template <class ReturnType = bool>
-
154 auto
-
155 insert(key_type const& key, T const& value)
- -
157
-
158 template <class ReturnType = bool>
-
159 auto
- -
161
-
162 // VFALCO NOTE It looks like this returns a copy of the data in
-
163 // the output parameter 'data'. This could be expensive.
-
164 // Perhaps it should work like standard containers, which
-
165 // simply return an iterator.
-
166 //
-
167 bool
-
168 retrieve(key_type const& key, T& data);
-
169
- -
171 getKeys() const;
+
149 SharedPointerType
+
150 fetch(key_type const& key);
+
151
+
156 template <class ReturnType = bool>
+
157 auto
+
158 insert(key_type const& key, T const& value)
+ +
160
+
161 template <class ReturnType = bool>
+
162 auto
+ +
164
+
165 // VFALCO NOTE It looks like this returns a copy of the data in
+
166 // the output parameter 'data'. This could be expensive.
+
167 // Perhaps it should work like standard containers, which
+
168 // simply return an iterator.
+
169 //
+
170 bool
+
171 retrieve(key_type const& key, T& data);
172
-
173 // CachedSLEs functions.
-
175 double
-
176 rate() const;
-
177
-
183 template <class Handler>
-
184 SharedPointerType
-
185 fetch(key_type const& digest, Handler const& h);
-
186 // End CachedSLEs functions.
-
187
-
188private:
-
189 SharedPointerType
- -
191
-
192 void
- -
194
-
195 Mutex&
-
196 lockPartition(key_type const& key) const;
+ + +
175
+ +
177 getKeys() const;
+
178
+
179 // CachedSLEs functions.
+
181 double
+
182 rate() const;
+
183
+
189 template <class Handler>
+
190 SharedPointerType
+
191 fetch(key_type const& digest, Handler const& h);
+
192 // End CachedSLEs functions.
+
193
+
194private:
+
195 SharedPointerType
+
197
-
198private:
-
-
199 struct Stats
-
200 {
-
201 template <class Handler>
-
- -
203 std::string const& prefix,
-
204 Handler const& handler,
-
205 beast::insight::Collector::ptr const& collector)
-
206 : hook(collector->make_hook(handler))
-
207 , size(collector->make_gauge(prefix, "size"))
-
208 , hit_rate(collector->make_gauge(prefix, "hit_rate"))
-
209 , hits(0)
-
210 , misses(0)
-
211 {
-
212 }
+
198 void
+ +
200
+
201private:
+
+
202 struct Stats
+
203 {
+
204 template <class Handler>
+
+ +
206 std::string const& prefix,
+
207 Handler const& handler,
+
208 beast::insight::Collector::ptr const& collector)
+
209 : hook(collector->make_hook(handler))
+
210 , size(collector->make_gauge(prefix, "size"))
+
211 , hit_rate(collector->make_gauge(prefix, "hit_rate"))
+
212 , hits(0)
+
213 , misses(0)
+
214 {
+
215 }
-
213
- - - -
217
- - -
220 };
+
216
+ + + +
220
+ + +
223 };
-
221
-
- -
223 {
-
224 public:
- -
226
-
-
227 explicit KeyOnlyEntry(clock_type::time_point const& last_access_)
-
228 : last_access(last_access_)
-
229 {
-
230 }
+
224
+
+ +
226 {
+
227 public:
+ +
229
+
+
230 explicit KeyOnlyEntry(clock_type::time_point const& last_access_)
+
231 : last_access(last_access_)
+
232 {
+
233 }
-
231
-
232 void
-
- -
234 {
-
235 last_access = now;
-
236 }
+
234
+
235 void
+
+ +
237 {
+
238 last_access = now;
+
239 }
-
237 };
+
240 };
-
238
-
- -
240 {
-
241 public:
- - -
244
-
- -
246 clock_type::time_point const& last_access_,
-
247 shared_pointer_type const& ptr_)
-
248 : ptr(ptr_), last_access(last_access_)
-
249 {
-
250 }
+
241
+
+ +
243 {
+
244 public:
+ + +
247
+
+ +
249 clock_type::time_point const& last_access_,
+
250 shared_pointer_type const& ptr_)
+
251 : ptr(ptr_), last_access(last_access_)
+
252 {
+
253 }
-
251
-
252 bool
-
-
253 isWeak() const
-
254 {
-
255 if (!ptr)
-
256 return true;
-
257 return ptr.isWeak();
-
258 }
+
254
+
255 bool
+
+
256 isWeak() const
+
257 {
+
258 if (!ptr)
+
259 return true;
+
260 return ptr.isWeak();
+
261 }
-
259 bool
-
-
260 isCached() const
-
261 {
-
262 return ptr && ptr.isStrong();
-
263 }
+
262 bool
+
+
263 isCached() const
+
264 {
+
265 return ptr && ptr.isStrong();
+
266 }
-
264 bool
-
-
265 isExpired() const
-
266 {
-
267 return ptr.expired();
-
268 }
+
267 bool
+
+
268 isExpired() const
+
269 {
+
270 return ptr.expired();
+
271 }
-
269 SharedPointerType
-
- -
271 {
-
272 return ptr.lock();
-
273 }
+
272 SharedPointerType
+
+ +
274 {
+
275 return ptr.lock();
+
276 }
-
274 void
-
- -
276 {
-
277 last_access = now;
-
278 }
+
277 void
+
+ +
279 {
+
280 last_access = now;
+
281 }
-
279 };
+
282 };
-
280
-
281 typedef
- - -
284
- - +
283
+
284 typedef
+ +
287
- - + +
290
- - + +
293
-
294 [[nodiscard]] std::thread
- -
296 clock_type::time_point const& when_expire,
-
297 [[maybe_unused]] clock_type::time_point const& now,
-
298 typename KeyValueCacheType::map_type& partition,
-
299 SweptPointersVector& stuffToSweep,
-
300 std::atomic<int>& allRemoval,
-
301 Mutex& partitionLock);
-
302
-
303 [[nodiscard]] std::thread
- -
305 clock_type::time_point const& when_expire,
-
306 clock_type::time_point const& now,
-
307 typename KeyOnlyCacheType::map_type& partition,
- -
309 std::atomic<int>& allRemovals,
-
310 Mutex& partitionLock);
-
311
- - - -
315
-
316 // Used for logging
- + + +
296
+
297 [[nodiscard]] std::thread
+ +
299 clock_type::time_point const& when_expire,
+
300 [[maybe_unused]] clock_type::time_point const& now,
+
301 typename KeyValueCacheType::map_type& partition,
+
302 SweptPointersVector& stuffToSweep,
+
303 std::atomic<int>& allRemovals,
+ +
305
+
306 [[nodiscard]] std::thread
+ +
308 clock_type::time_point const& when_expire,
+
309 clock_type::time_point const& now,
+
310 typename KeyOnlyCacheType::map_type& partition,
+ +
312 std::atomic<int>& allRemovals,
+ +
314
+ + +
318
-
319 // Desired number of cache entries (0 = ignore)
-
320 int const m_target_size;
-
321
-
322 // Desired maximum cache age
- -
324
-
325 // Number of items cached
- -
327 cache_type m_cache; // Hold strong reference to recent objects
- - - -
331};
+ +
320
+
321 // Used for logging
+ +
323
+
324 // Desired number of cache entries (0 = ignore)
+
325 int const m_target_size;
+
326
+
327 // Desired maximum cache age
+ +
329
+
330 // Number of items cached
+ +
332 cache_type m_cache; // Hold strong reference to recent objects
+ + +
335};
-
332
-
333} // namespace ripple
-
334
-
335#endif
+
336
+
337} // namespace ripple
+
338
+
339#endif
A generic endpoint for log messages.
Definition Journal.h:60
@@ -411,67 +415,70 @@ $(document).ready(function() { init_codefold(0); });
A metric for measuring an integral value.
Definition Gauge.h:40
A reference to a handler for performing polled collection.
Definition Hook.h:32
static std::shared_ptr< Collector > New()
- -
void touch(clock_type::time_point const &now)
-
KeyOnlyEntry(clock_type::time_point const &last_access_)
-
clock_type::time_point last_access
- - -
ValueEntry(clock_type::time_point const &last_access_, shared_pointer_type const &ptr_)
-
shared_weak_combo_pointer_type ptr
- -
clock_type::time_point last_access
- -
void touch(clock_type::time_point const &now)
- + +
void touch(clock_type::time_point const &now)
+
KeyOnlyEntry(clock_type::time_point const &last_access_)
+
clock_type::time_point last_access
+ + +
ValueEntry(clock_type::time_point const &last_access_, shared_pointer_type const &ptr_)
+
shared_weak_combo_pointer_type ptr
+ +
clock_type::time_point last_access
+ +
void touch(clock_type::time_point const &now)
+
Map/cache combination.
Definition TaggedCache.h:62
bool canonicalize(key_type const &key, SharedPointerType &data, R &&replaceCallback)
Replace aliased objects with originals.
bool touch_if_exists(KeyComparable const &key)
Refresh the last access time on a key if present.
bool canonicalize_replace_client(key_type const &key, SharedPointerType &data)
bool retrieve(key_type const &key, T &data)
-
std::thread sweepHelper(clock_type::time_point const &when_expire, clock_type::time_point const &now, typename KeyValueCacheType::map_type &partition, SweptPointersVector &stuffToSweep, std::atomic< int > &allRemoval, Mutex &partitionLock)
bool del(key_type const &key, bool valid)
-
std::atomic< int > m_cache_count
SharedPointerType fetch(key_type const &key)
- + -
beast::Journal m_journal
-
SharedPointerType initialFetch(key_type const &key)
-
Mutex & lockPartition(key_type const &key) const
+
beast::Journal m_journal
clock_type & clock()
Return the clock associated with the cache.
-
clock_type & m_clock
+
clock_type & m_clock
SharedWeakUnionPointerType shared_weak_combo_pointer_type
Definition TaggedCache.h:68
+
mutex_type & peekMutex()
SharedPointerType fetch(key_type const &digest, Handler const &h)
Fetch an item from the cache.
auto insert(key_type const &key, T const &value) -> std::enable_if_t<!IsKeyCache, ReturnType >
Insert the element into the container.
-
std::atomic< std::uint64_t > m_misses
std::vector< key_type > getKeys() const
+
bool canonicalize_replace_cache(key_type const &key, SharedPointerType const &data)
std::size_t size() const
Returns the number of items in the container.
-
std::thread sweepHelper(clock_type::time_point const &when_expire, clock_type::time_point const &now, typename KeyOnlyCacheType::map_type &partition, SweptPointersVector &, std::atomic< int > &allRemovals, Mutex &partitionLock)
int getCacheSize() const
SharedPointerType shared_pointer_type
Definition TaggedCache.h:69
- -
std::conditional< IsKeyCache, KeyOnlyEntry, ValueEntry >::type Entry
- +
std::thread sweepHelper(clock_type::time_point const &when_expire, clock_type::time_point const &now, typename KeyOnlyCacheType::map_type &partition, SweptPointersVector &, std::atomic< int > &allRemovals, std::lock_guard< std::recursive_mutex > const &)
+
SharedPointerType initialFetch(key_type const &key, std::lock_guard< mutex_type > const &l)
+
std::thread sweepHelper(clock_type::time_point const &when_expire, clock_type::time_point const &now, typename KeyValueCacheType::map_type &partition, SweptPointersVector &stuffToSweep, std::atomic< int > &allRemovals, std::lock_guard< std::recursive_mutex > const &)
+ +
std::uint64_t m_misses
+
std::conditional< IsKeyCache, KeyOnlyEntry, ValueEntry >::type Entry
+
double rate() const
Returns the fraction of cache hits.
auto insert(key_type const &key) -> std::enable_if_t< IsKeyCache, ReturnType >
-
clock_type::duration const m_target_age
+
clock_type::duration const m_target_age
+
TaggedCache(std::string const &name, int size, clock_type::duration expiration, clock_type &clock, beast::Journal journal, beast::insight::Collector::ptr const &collector=beast::insight::NullCollector::New())
-
int const m_target_size
-
std::vector< mutex_type > partitionLocks_
-
std::atomic< std::uint64_t > m_hits
+
std::uint64_t m_hits
+
int const m_target_size
+
int getTrackSize() const
+ +
TER valid(STTx const &tx, ReadView const &view, AccountID const &src, beast::Journal j)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
@@ -479,13 +486,13 @@ $(document).ready(function() { init_codefold(0); }); - -
beast::insight::Gauge size
-
beast::insight::Hook hook
-
beast::insight::Gauge hit_rate
-
Stats(std::string const &prefix, Handler const &handler, beast::insight::Collector::ptr const &collector)
- - + +
beast::insight::Gauge size
+
beast::insight::Hook hook
+
beast::insight::Gauge hit_rate
+
Stats(std::string const &prefix, Handler const &handler, beast::insight::Collector::ptr const &collector)
+ + diff --git a/TaggedCache__test_8cpp_source.html b/TaggedCache__test_8cpp_source.html index 9a9087a4bb..20e781dddf 100644 --- a/TaggedCache__test_8cpp_source.html +++ b/TaggedCache__test_8cpp_source.html @@ -143,10 +143,10 @@ $(document).ready(function() { init_codefold(0); });
58 // Insert an item, retrieve it, and age it so it gets purged.
59 {
60 BEAST_EXPECT(c.getCacheSize() == 0);
-
61 BEAST_EXPECT(c.size() == 0);
+
61 BEAST_EXPECT(c.getTrackSize() == 0);
62 BEAST_EXPECT(!c.insert(1, "one"));
63 BEAST_EXPECT(c.getCacheSize() == 1);
-
64 BEAST_EXPECT(c.size() == 1);
+
64 BEAST_EXPECT(c.getTrackSize() == 1);
65
66 {
@@ -157,7 +157,7 @@ $(document).ready(function() { init_codefold(0); });
72 ++clock;
73 c.sweep();
74 BEAST_EXPECT(c.getCacheSize() == 0);
-
75 BEAST_EXPECT(c.size() == 0);
+
75 BEAST_EXPECT(c.getTrackSize() == 0);
76 }
77
78 // Insert an item, maintain a strong pointer, age it, and
@@ -165,7 +165,7 @@ $(document).ready(function() { init_codefold(0); });
80 {
81 BEAST_EXPECT(!c.insert(2, "two"));
82 BEAST_EXPECT(c.getCacheSize() == 1);
-
83 BEAST_EXPECT(c.size() == 1);
+
83 BEAST_EXPECT(c.getTrackSize() == 1);
84
85 {
86 auto p = c.fetch(2);
@@ -173,14 +173,14 @@ $(document).ready(function() { init_codefold(0); });
88 ++clock;
89 c.sweep();
90 BEAST_EXPECT(c.getCacheSize() == 0);
-
91 BEAST_EXPECT(c.size() == 1);
+
91 BEAST_EXPECT(c.getTrackSize() == 1);
92 }
93
94 // Make sure its gone now that our reference is gone
95 ++clock;
96 c.sweep();
97 BEAST_EXPECT(c.getCacheSize() == 0);
-
98 BEAST_EXPECT(c.size() == 0);
+
98 BEAST_EXPECT(c.getTrackSize() == 0);
99 }
100
101 // Insert the same key/value pair and make sure we get the same result
@@ -196,7 +196,7 @@ $(document).ready(function() { init_codefold(0); });
111 ++clock;
112 c.sweep();
113 BEAST_EXPECT(c.getCacheSize() == 0);
-
114 BEAST_EXPECT(c.size() == 0);
+
114 BEAST_EXPECT(c.getTrackSize() == 0);
115 }
116
117 // Put an object in but keep a strong pointer to it, advance the clock a
@@ -206,24 +206,24 @@ $(document).ready(function() { init_codefold(0); });
121 // Put an object in
122 BEAST_EXPECT(!c.insert(4, "four"));
123 BEAST_EXPECT(c.getCacheSize() == 1);
-
124 BEAST_EXPECT(c.size() == 1);
+
124 BEAST_EXPECT(c.getTrackSize() == 1);
125
126 {
127 // Keep a strong pointer to it
128 auto const p1 = c.fetch(4);
129 BEAST_EXPECT(p1 != nullptr);
130 BEAST_EXPECT(c.getCacheSize() == 1);
-
131 BEAST_EXPECT(c.size() == 1);
+
131 BEAST_EXPECT(c.getTrackSize() == 1);
132 // Advance the clock a lot
133 ++clock;
134 c.sweep();
135 BEAST_EXPECT(c.getCacheSize() == 0);
-
136 BEAST_EXPECT(c.size() == 1);
+
136 BEAST_EXPECT(c.getTrackSize() == 1);
137 // Canonicalize a new object with the same key
138 auto p2 = std::make_shared<std::string>("four");
139 BEAST_EXPECT(c.canonicalize_replace_client(4, p2));
140 BEAST_EXPECT(c.getCacheSize() == 1);
-
141 BEAST_EXPECT(c.size() == 1);
+
141 BEAST_EXPECT(c.getTrackSize() == 1);
142 // Make sure we get the original object
143 BEAST_EXPECT(p1.get() == p2.get());
144 }
@@ -231,7 +231,7 @@ $(document).ready(function() { init_codefold(0); });
146 ++clock;
147 c.sweep();
148 BEAST_EXPECT(c.getCacheSize() == 0);
-
149 BEAST_EXPECT(c.size() == 0);
+
149 BEAST_EXPECT(c.getTrackSize() == 0);
150 }
151 }
@@ -251,7 +251,7 @@ $(document).ready(function() { init_codefold(0); });
T is_same_v
A namespace for easy access to logging severity values.
Definition Journal.h:30
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
-
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:129
+
std::uint32_t LedgerIndex
A ledger index.
Definition Protocol.h:130
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]
diff --git a/classripple_1_1CachedView__coll__graph.map b/classripple_1_1CachedView__coll__graph.map index 242a3283d7..23d2ee286e 100644 --- a/classripple_1_1CachedView__coll__graph.map +++ b/classripple_1_1CachedView__coll__graph.map @@ -1,78 +1,74 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/classripple_1_1CachedView__coll__graph.md5 b/classripple_1_1CachedView__coll__graph.md5 index 9bf319a466..6baf896f5c 100644 --- a/classripple_1_1CachedView__coll__graph.md5 +++ b/classripple_1_1CachedView__coll__graph.md5 @@ -1 +1 @@ -e5c450e28fcc385948561685b03ca096 \ No newline at end of file +f74a26149792c856823694a95ca71b32 \ No newline at end of file diff --git a/classripple_1_1CachedView__coll__graph.png b/classripple_1_1CachedView__coll__graph.png index 22dc87bbc6..68db50a801 100644 Binary files a/classripple_1_1CachedView__coll__graph.png and b/classripple_1_1CachedView__coll__graph.png differ diff --git a/classripple_1_1ConsensusTransSetSF.html b/classripple_1_1ConsensusTransSetSF.html index 6b4d68f4d8..b3b6877efb 100644 --- a/classripple_1_1ConsensusTransSetSF.html +++ b/classripple_1_1ConsensusTransSetSF.html @@ -98,76 +98,71 @@ Collaboration diagram for ripple::ConsensusTransSetSF:
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]
diff --git a/classripple_1_1ConsensusTransSetSF__coll__graph.map b/classripple_1_1ConsensusTransSetSF__coll__graph.map index 980dca0c2f..ed80fb62ca 100644 --- a/classripple_1_1ConsensusTransSetSF__coll__graph.map +++ b/classripple_1_1ConsensusTransSetSF__coll__graph.map @@ -1,72 +1,67 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/classripple_1_1ConsensusTransSetSF__coll__graph.md5 b/classripple_1_1ConsensusTransSetSF__coll__graph.md5 index 95876d57ed..e61209c8c7 100644 --- a/classripple_1_1ConsensusTransSetSF__coll__graph.md5 +++ b/classripple_1_1ConsensusTransSetSF__coll__graph.md5 @@ -1 +1 @@ -e29f7e5738f19acb44ac7283e1896b04 \ No newline at end of file +9948840ed1b074cb058fe771b0c9edfa \ No newline at end of file diff --git a/classripple_1_1ConsensusTransSetSF__coll__graph.png b/classripple_1_1ConsensusTransSetSF__coll__graph.png index d37e015d62..a84e5018c3 100644 Binary files a/classripple_1_1ConsensusTransSetSF__coll__graph.png and b/classripple_1_1ConsensusTransSetSF__coll__graph.png differ diff --git a/classripple_1_1LedgerHistory.html b/classripple_1_1LedgerHistory.html index 285aca6812..4255a6fa79 100644 --- a/classripple_1_1LedgerHistory.html +++ b/classripple_1_1LedgerHistory.html @@ -93,109 +93,103 @@ Collaboration diagram for ripple::LedgerHistory:
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]
@@ -426,7 +420,7 @@ Private Attributes

Get a ledger given its sequence number.

-

Definition at line 83 of file LedgerHistory.cpp.

+

Definition at line 86 of file LedgerHistory.cpp.

@@ -448,7 +442,7 @@ Private Attributes

Retrieve a ledger given its hash.

-

Definition at line 117 of file LedgerHistory.cpp.

+

Definition at line 123 of file LedgerHistory.cpp.

@@ -477,7 +471,7 @@ Private Attributes
Returns
The hash of the specified ledger
-

Definition at line 75 of file LedgerHistory.cpp.

+

Definition at line 77 of file LedgerHistory.cpp.

@@ -536,7 +530,7 @@ Private Attributes

Report that we have locally built a particular ledger.

-

Definition at line 445 of file LedgerHistory.cpp.

+

Definition at line 451 of file LedgerHistory.cpp.

@@ -568,7 +562,7 @@ Private Attributes

Report that we have validated a particular ledger.

-

Definition at line 485 of file LedgerHistory.cpp.

+

Definition at line 493 of file LedgerHistory.cpp.

@@ -609,7 +603,7 @@ Private Attributes
Returns
false if the mapping was repaired
-

Definition at line 526 of file LedgerHistory.cpp.

+

Definition at line 536 of file LedgerHistory.cpp.

@@ -629,7 +623,7 @@ Private Attributes
-

Definition at line 539 of file LedgerHistory.cpp.

+

Definition at line 550 of file LedgerHistory.cpp.

@@ -697,7 +691,7 @@ Private Attributes -

Definition at line 333 of file LedgerHistory.cpp.

+

Definition at line 339 of file LedgerHistory.cpp.

diff --git a/classripple_1_1LedgerHistory__coll__graph.map b/classripple_1_1LedgerHistory__coll__graph.map index ed42536a83..9215a6c429 100644 --- a/classripple_1_1LedgerHistory__coll__graph.map +++ b/classripple_1_1LedgerHistory__coll__graph.map @@ -1,105 +1,99 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/classripple_1_1LedgerHistory__coll__graph.md5 b/classripple_1_1LedgerHistory__coll__graph.md5 index 7ef5be7dd9..9112fbab98 100644 --- a/classripple_1_1LedgerHistory__coll__graph.md5 +++ b/classripple_1_1LedgerHistory__coll__graph.md5 @@ -1 +1 @@ -4087756606569e00ba1473ed95d30e57 \ No newline at end of file +895b7e12a29d19109b8d6ba20e616dc9 \ No newline at end of file diff --git a/classripple_1_1LedgerHistory__coll__graph.png b/classripple_1_1LedgerHistory__coll__graph.png index 3f0698457e..dce6edc980 100644 Binary files a/classripple_1_1LedgerHistory__coll__graph.png and b/classripple_1_1LedgerHistory__coll__graph.png differ diff --git a/classripple_1_1LedgerMaster.html b/classripple_1_1LedgerMaster.html index 3ad4122429..b64297c9a1 100644 --- a/classripple_1_1LedgerMaster.html +++ b/classripple_1_1LedgerMaster.html @@ -99,138 +99,137 @@ Collaboration diagram for ripple::LedgerMaster:
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]
diff --git a/classripple_1_1LedgerMaster__coll__graph.map b/classripple_1_1LedgerMaster__coll__graph.map index 4c7ac1b529..cc282094b0 100644 --- a/classripple_1_1LedgerMaster__coll__graph.map +++ b/classripple_1_1LedgerMaster__coll__graph.map @@ -1,134 +1,133 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/classripple_1_1LedgerMaster__coll__graph.md5 b/classripple_1_1LedgerMaster__coll__graph.md5 index 4071af5276..ea4c9b836b 100644 --- a/classripple_1_1LedgerMaster__coll__graph.md5 +++ b/classripple_1_1LedgerMaster__coll__graph.md5 @@ -1 +1 @@ -dacf72829b88c8d31d0630636278c15a \ No newline at end of file +b349c2ded4b0f4a524eb59619b379267 \ No newline at end of file diff --git a/classripple_1_1LedgerMaster__coll__graph.png b/classripple_1_1LedgerMaster__coll__graph.png index 3b8b4d7815..3ed294a6ab 100644 Binary files a/classripple_1_1LedgerMaster__coll__graph.png and b/classripple_1_1LedgerMaster__coll__graph.png differ diff --git a/classripple_1_1NetworkOPsImp.html b/classripple_1_1NetworkOPsImp.html index 787102a340..069edc8db8 100644 --- a/classripple_1_1NetworkOPsImp.html +++ b/classripple_1_1NetworkOPsImp.html @@ -103,141 +103,141 @@ Collaboration diagram for ripple::NetworkOPsImp:
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]
diff --git a/classripple_1_1NetworkOPsImp__coll__graph.map b/classripple_1_1NetworkOPsImp__coll__graph.map index e808cc1a84..002eb1344d 100644 --- a/classripple_1_1NetworkOPsImp__coll__graph.map +++ b/classripple_1_1NetworkOPsImp__coll__graph.map @@ -1,137 +1,137 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/classripple_1_1NetworkOPsImp__coll__graph.md5 b/classripple_1_1NetworkOPsImp__coll__graph.md5 index d1d8193804..7ede1a6a49 100644 --- a/classripple_1_1NetworkOPsImp__coll__graph.md5 +++ b/classripple_1_1NetworkOPsImp__coll__graph.md5 @@ -1 +1 @@ -a66e0a7cb8f13f8811c5a3bed59f9dc3 \ No newline at end of file +875157419d139c8b8244971ee3e4c966 \ No newline at end of file diff --git a/classripple_1_1NetworkOPsImp__coll__graph.png b/classripple_1_1NetworkOPsImp__coll__graph.png index 4d8ae6a8aa..4521522b68 100644 Binary files a/classripple_1_1NetworkOPsImp__coll__graph.png and b/classripple_1_1NetworkOPsImp__coll__graph.png differ diff --git a/classripple_1_1NodeFamily.html b/classripple_1_1NodeFamily.html index b86069d7f9..e352148ac7 100644 --- a/classripple_1_1NodeFamily.html +++ b/classripple_1_1NodeFamily.html @@ -98,112 +98,110 @@ Collaboration diagram for ripple::NodeFamily:
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]
diff --git a/classripple_1_1NodeFamily__coll__graph.map b/classripple_1_1NodeFamily__coll__graph.map index da502711b3..7ae920c50a 100644 --- a/classripple_1_1NodeFamily__coll__graph.map +++ b/classripple_1_1NodeFamily__coll__graph.map @@ -1,108 +1,106 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/classripple_1_1NodeFamily__coll__graph.md5 b/classripple_1_1NodeFamily__coll__graph.md5 index 61a4d9bdca..7e7e5ece8b 100644 --- a/classripple_1_1NodeFamily__coll__graph.md5 +++ b/classripple_1_1NodeFamily__coll__graph.md5 @@ -1 +1 @@ -79b12e093aab263025e2e8ec4b36dfb9 \ No newline at end of file +4e7e703379dfea138aeb6485eb2a69f7 \ No newline at end of file diff --git a/classripple_1_1NodeFamily__coll__graph.png b/classripple_1_1NodeFamily__coll__graph.png index fb8e61479a..b1d40cca17 100644 Binary files a/classripple_1_1NodeFamily__coll__graph.png and b/classripple_1_1NodeFamily__coll__graph.png differ diff --git a/classripple_1_1NodeStore_1_1DatabaseNodeImp.html b/classripple_1_1NodeStore_1_1DatabaseNodeImp.html index 4f22214031..b290699680 100644 --- a/classripple_1_1NodeStore_1_1DatabaseNodeImp.html +++ b/classripple_1_1NodeStore_1_1DatabaseNodeImp.html @@ -100,84 +100,83 @@ Collaboration diagram for ripple::NodeStore::DatabaseNodeImp:
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]
diff --git a/classripple_1_1NodeStore_1_1DatabaseNodeImp__coll__graph.map b/classripple_1_1NodeStore_1_1DatabaseNodeImp__coll__graph.map index 7eb408505f..798bafca4a 100644 --- a/classripple_1_1NodeStore_1_1DatabaseNodeImp__coll__graph.map +++ b/classripple_1_1NodeStore_1_1DatabaseNodeImp__coll__graph.map @@ -1,80 +1,79 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/classripple_1_1NodeStore_1_1DatabaseNodeImp__coll__graph.md5 b/classripple_1_1NodeStore_1_1DatabaseNodeImp__coll__graph.md5 index 328ef84d49..dfe915df18 100644 --- a/classripple_1_1NodeStore_1_1DatabaseNodeImp__coll__graph.md5 +++ b/classripple_1_1NodeStore_1_1DatabaseNodeImp__coll__graph.md5 @@ -1 +1 @@ -e7af06b2553a1fc0aa25fcc96e8cc9f0 \ No newline at end of file +52c4ed7a6ea33f734dc05315b2defb26 \ No newline at end of file diff --git a/classripple_1_1NodeStore_1_1DatabaseNodeImp__coll__graph.png b/classripple_1_1NodeStore_1_1DatabaseNodeImp__coll__graph.png index f1bf99ff55..b034790bb9 100644 Binary files a/classripple_1_1NodeStore_1_1DatabaseNodeImp__coll__graph.png and b/classripple_1_1NodeStore_1_1DatabaseNodeImp__coll__graph.png differ diff --git a/classripple_1_1OpenLedger.html b/classripple_1_1OpenLedger.html index 8b1fe32343..7087b852fc 100644 --- a/classripple_1_1OpenLedger.html +++ b/classripple_1_1OpenLedger.html @@ -94,115 +94,115 @@ Collaboration diagram for ripple::OpenLedger:
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]
diff --git a/classripple_1_1OpenLedger__coll__graph.map b/classripple_1_1OpenLedger__coll__graph.map index f82a910bd8..7b69aa61e4 100644 --- a/classripple_1_1OpenLedger__coll__graph.map +++ b/classripple_1_1OpenLedger__coll__graph.map @@ -1,111 +1,111 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/classripple_1_1OpenLedger__coll__graph.md5 b/classripple_1_1OpenLedger__coll__graph.md5 index 503d505107..730593a0e5 100644 --- a/classripple_1_1OpenLedger__coll__graph.md5 +++ b/classripple_1_1OpenLedger__coll__graph.md5 @@ -1 +1 @@ -fd9b8653764245cf3b37e25e2ca11174 \ No newline at end of file +c4be045d159954d22f5f9dc63a5893ab \ No newline at end of file diff --git a/classripple_1_1OpenLedger__coll__graph.png b/classripple_1_1OpenLedger__coll__graph.png index e41b66b9d2..f07c3cfa09 100644 Binary files a/classripple_1_1OpenLedger__coll__graph.png and b/classripple_1_1OpenLedger__coll__graph.png differ diff --git a/classripple_1_1RCLConsensus.html b/classripple_1_1RCLConsensus.html index 0a7131ebec..265344a9ae 100644 --- a/classripple_1_1RCLConsensus.html +++ b/classripple_1_1RCLConsensus.html @@ -92,131 +92,133 @@ Collaboration diagram for ripple::RCLConsensus:
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]
diff --git a/classripple_1_1RCLConsensus_1_1Adaptor.html b/classripple_1_1RCLConsensus_1_1Adaptor.html index fccd200614..adb7f949db 100644 --- a/classripple_1_1RCLConsensus_1_1Adaptor.html +++ b/classripple_1_1RCLConsensus_1_1Adaptor.html @@ -88,132 +88,135 @@ Collaboration diagram for ripple::RCLConsensus::Adaptor:
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]
diff --git a/classripple_1_1RCLConsensus_1_1Adaptor__coll__graph.map b/classripple_1_1RCLConsensus_1_1Adaptor__coll__graph.map index 25527916fd..f569cbdd67 100644 --- a/classripple_1_1RCLConsensus_1_1Adaptor__coll__graph.map +++ b/classripple_1_1RCLConsensus_1_1Adaptor__coll__graph.map @@ -1,128 +1,131 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/classripple_1_1RCLConsensus_1_1Adaptor__coll__graph.md5 b/classripple_1_1RCLConsensus_1_1Adaptor__coll__graph.md5 index 1bfd2bcf66..7387ff9bb0 100644 --- a/classripple_1_1RCLConsensus_1_1Adaptor__coll__graph.md5 +++ b/classripple_1_1RCLConsensus_1_1Adaptor__coll__graph.md5 @@ -1 +1 @@ -4bab465c728c21d183688ad2e1eb9e59 \ No newline at end of file +f6d6c66870a285e9ae981829429912db \ No newline at end of file diff --git a/classripple_1_1RCLConsensus_1_1Adaptor__coll__graph.png b/classripple_1_1RCLConsensus_1_1Adaptor__coll__graph.png index be5f904f88..43053cc501 100644 Binary files a/classripple_1_1RCLConsensus_1_1Adaptor__coll__graph.png and b/classripple_1_1RCLConsensus_1_1Adaptor__coll__graph.png differ diff --git a/classripple_1_1RCLConsensus__coll__graph.map b/classripple_1_1RCLConsensus__coll__graph.map index d447b6da1e..c1cd52de20 100644 --- a/classripple_1_1RCLConsensus__coll__graph.map +++ b/classripple_1_1RCLConsensus__coll__graph.map @@ -1,127 +1,129 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/classripple_1_1RCLConsensus__coll__graph.md5 b/classripple_1_1RCLConsensus__coll__graph.md5 index 06400b8be2..5f59574c7a 100644 --- a/classripple_1_1RCLConsensus__coll__graph.md5 +++ b/classripple_1_1RCLConsensus__coll__graph.md5 @@ -1 +1 @@ -6b5a92d148810c97d9a2d72cbde98a92 \ No newline at end of file +c0b15a8b63c4f386c6591be4e032a903 \ No newline at end of file diff --git a/classripple_1_1RCLConsensus__coll__graph.png b/classripple_1_1RCLConsensus__coll__graph.png index 8f3d20ff46..b2998ef1b2 100644 Binary files a/classripple_1_1RCLConsensus__coll__graph.png and b/classripple_1_1RCLConsensus__coll__graph.png differ diff --git a/classripple_1_1RPC_1_1LedgerHandler.html b/classripple_1_1RPC_1_1LedgerHandler.html index 1da3dd9ffa..7d62250b4f 100644 --- a/classripple_1_1RPC_1_1LedgerHandler.html +++ b/classripple_1_1RPC_1_1LedgerHandler.html @@ -93,78 +93,79 @@ Collaboration diagram for ripple::RPC::LedgerHandler: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -173,20 +174,20 @@ Collaboration diagram for ripple::RPC::LedgerHandler: - - + + - - - - - - - - + + + + + + + + @@ -196,8 +197,8 @@ Collaboration diagram for ripple::RPC::LedgerHandler: - - + + diff --git a/classripple_1_1RPC_1_1LedgerHandler__coll__graph.map b/classripple_1_1RPC_1_1LedgerHandler__coll__graph.map index 205a6b8dbd..396422ca6c 100644 --- a/classripple_1_1RPC_1_1LedgerHandler__coll__graph.map +++ b/classripple_1_1RPC_1_1LedgerHandler__coll__graph.map @@ -4,117 +4,118 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/classripple_1_1RPC_1_1LedgerHandler__coll__graph.md5 b/classripple_1_1RPC_1_1LedgerHandler__coll__graph.md5 index 86574265e3..67c8a25664 100644 --- a/classripple_1_1RPC_1_1LedgerHandler__coll__graph.md5 +++ b/classripple_1_1RPC_1_1LedgerHandler__coll__graph.md5 @@ -1 +1 @@ -6edf8c4b1f58ab42fdb531cca147f632 \ No newline at end of file +59a8809e4a054bcc2dcb293f1f8a638a \ No newline at end of file diff --git a/classripple_1_1RPC_1_1LedgerHandler__coll__graph.png b/classripple_1_1RPC_1_1LedgerHandler__coll__graph.png index fafe00ab44..590156f410 100644 Binary files a/classripple_1_1RPC_1_1LedgerHandler__coll__graph.png and b/classripple_1_1RPC_1_1LedgerHandler__coll__graph.png differ diff --git a/classripple_1_1SHAMapHash.html b/classripple_1_1SHAMapHash.html index 9edd771123..19003314cd 100644 --- a/classripple_1_1SHAMapHash.html +++ b/classripple_1_1SHAMapHash.html @@ -140,7 +140,7 @@ Friends

Detailed Description

-

Definition at line 32 of file SHAMapHash.h.

+

Definition at line 33 of file SHAMapHash.h.

Constructor & Destructor Documentation

◆ SHAMapHash() [1/2]

@@ -191,7 +191,7 @@ Friends
-

Definition at line 38 of file SHAMapHash.h.

+

Definition at line 39 of file SHAMapHash.h.

@@ -211,7 +211,7 @@ Friends
-

Definition at line 43 of file SHAMapHash.h.

+

Definition at line 44 of file SHAMapHash.h.

@@ -230,7 +230,7 @@ Friends
-

Definition at line 48 of file SHAMapHash.h.

+

Definition at line 49 of file SHAMapHash.h.

@@ -249,7 +249,7 @@ Friends
-

Definition at line 53 of file SHAMapHash.h.

+

Definition at line 54 of file SHAMapHash.h.

@@ -268,7 +268,7 @@ Friends
-

Definition at line 58 of file SHAMapHash.h.

+

Definition at line 59 of file SHAMapHash.h.

@@ -287,7 +287,7 @@ Friends
-

Definition at line 63 of file SHAMapHash.h.

+

Definition at line 64 of file SHAMapHash.h.

@@ -306,7 +306,7 @@ Friends
-

Definition at line 68 of file SHAMapHash.h.

+

Definition at line 69 of file SHAMapHash.h.

@@ -345,7 +345,7 @@ Friends
-

Definition at line 74 of file SHAMapHash.h.

+

Definition at line 75 of file SHAMapHash.h.

@@ -383,7 +383,7 @@ Friends
-

Definition at line 79 of file SHAMapHash.h.

+

Definition at line 80 of file SHAMapHash.h.

@@ -421,7 +421,7 @@ Friends
-

Definition at line 85 of file SHAMapHash.h.

+

Definition at line 86 of file SHAMapHash.h.

@@ -449,7 +449,7 @@ Friends
-

Definition at line 92 of file SHAMapHash.h.

+

Definition at line 93 of file SHAMapHash.h.

@@ -489,7 +489,7 @@ template<class H >
-

Definition at line 99 of file SHAMapHash.h.

+

Definition at line 100 of file SHAMapHash.h.

@@ -514,7 +514,7 @@ template<class H >
-

Definition at line 34 of file SHAMapHash.h.

+

Definition at line 35 of file SHAMapHash.h.

diff --git a/classripple_1_1SHAMapStoreImp.html b/classripple_1_1SHAMapStoreImp.html index 901e2981a2..869c964a00 100644 --- a/classripple_1_1SHAMapStoreImp.html +++ b/classripple_1_1SHAMapStoreImp.html @@ -101,144 +101,143 @@ Collaboration diagram for ripple::SHAMapStoreImp:
Collaboration graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]
diff --git a/classripple_1_1SHAMapStoreImp__coll__graph.map b/classripple_1_1SHAMapStoreImp__coll__graph.map index b003d21b34..6ce02cd9e3 100644 --- a/classripple_1_1SHAMapStoreImp__coll__graph.map +++ b/classripple_1_1SHAMapStoreImp__coll__graph.map @@ -1,140 +1,139 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/classripple_1_1SHAMapStoreImp__coll__graph.md5 b/classripple_1_1SHAMapStoreImp__coll__graph.md5 index 45d8c5527a..59574d4743 100644 --- a/classripple_1_1SHAMapStoreImp__coll__graph.md5 +++ b/classripple_1_1SHAMapStoreImp__coll__graph.md5 @@ -1 +1 @@ -52744ae443ed96494819185dcd0e9c12 \ No newline at end of file +1cecdc0662ba141993cc5919a4007ca9 \ No newline at end of file diff --git a/classripple_1_1SHAMapStoreImp__coll__graph.png b/classripple_1_1SHAMapStoreImp__coll__graph.png index bdef79cbda..f16e2d7479 100644 Binary files a/classripple_1_1SHAMapStoreImp__coll__graph.png and b/classripple_1_1SHAMapStoreImp__coll__graph.png differ diff --git a/classripple_1_1TaggedCache-members.html b/classripple_1_1TaggedCache-members.html index 484b6b3f0f..5399aad990 100644 --- a/classripple_1_1TaggedCache-members.html +++ b/classripple_1_1TaggedCache-members.html @@ -94,38 +94,39 @@ $(function() { - - - - - - - + + + + + + + - + - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + +
getCacheSize() constripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
getHitRate()ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
getKeys() constripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
initialFetch(key_type const &key)ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
insert(key_type const &key, T const &value) -> std::enable_if_t<!IsKeyCache, ReturnType >ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
insert(key_type const &key) -> std::enable_if_t< IsKeyCache, ReturnType >ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
key_type typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
KeyOnlyCacheType typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
KeyValueCacheType typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
lockPartition(key_type const &key) constripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
getTrackSize() constripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
initialFetch(key_type const &key, std::lock_guard< mutex_type > const &l)ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
insert(key_type const &key, T const &value) -> std::enable_if_t<!IsKeyCache, ReturnType >ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
insert(key_type const &key) -> std::enable_if_t< IsKeyCache, ReturnType >ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
key_type typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
KeyOnlyCacheType typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
KeyValueCacheType typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_cacheripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_cache_countripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_cache_countripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_clockripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_hitsripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_hitsripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_journalripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_missesripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_nameripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_statsripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_target_ageripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_target_sizeripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
mapped_type typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
mutex_type typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
partitionLocks_ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >mutableprivate
rate() constripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
reset()ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
retrieve(key_type const &key, T &data)ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
shared_pointer_type typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
shared_weak_combo_pointer_type typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
size() constripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
sweep()ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
sweepHelper(clock_type::time_point const &when_expire, clock_type::time_point const &now, typename KeyValueCacheType::map_type &partition, SweptPointersVector &stuffToSweep, std::atomic< int > &allRemoval, Mutex &partitionLock)ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
sweepHelper(clock_type::time_point const &when_expire, clock_type::time_point const &now, typename KeyOnlyCacheType::map_type &partition, SweptPointersVector &, std::atomic< int > &allRemovals, Mutex &partitionLock)ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
SweptPointersVector typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
TaggedCache(std::string const &name, int size, clock_type::duration expiration, clock_type &clock, beast::Journal journal, beast::insight::Collector::ptr const &collector=beast::insight::NullCollector::New())ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
touch_if_exists(KeyComparable const &key)ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
m_missesripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_mutexripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >mutableprivate
m_nameripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_statsripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_target_ageripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
m_target_sizeripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
mapped_type typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
mutex_type typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
peekMutex()ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
rate() constripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
reset()ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
retrieve(key_type const &key, T &data)ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
shared_pointer_type typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
shared_weak_combo_pointer_type typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
size() constripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
sweep()ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
sweepHelper(clock_type::time_point const &when_expire, clock_type::time_point const &now, typename KeyValueCacheType::map_type &partition, SweptPointersVector &stuffToSweep, std::atomic< int > &allRemovals, std::lock_guard< std::recursive_mutex > const &)ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
sweepHelper(clock_type::time_point const &when_expire, clock_type::time_point const &now, typename KeyOnlyCacheType::map_type &partition, SweptPointersVector &, std::atomic< int > &allRemovals, std::lock_guard< std::recursive_mutex > const &)ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >private
SweptPointersVector typedefripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
TaggedCache(std::string const &name, int size, clock_type::duration expiration, clock_type &clock, beast::Journal journal, beast::insight::Collector::ptr const &collector=beast::insight::NullCollector::New())ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >
touch_if_exists(KeyComparable const &key)ripple::TaggedCache< Key, T, IsKeyCache, SharedWeakUnionPointerType, SharedPointerType, Hash, KeyEqual, Mutex >