rippled
|
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm. More...
Namespaces | |
base64 | |
BuildInfo | |
Versioning information for this build. | |
compression | |
compression_algorithms | |
CrawlOptions | |
cryptoconditions | |
detail | |
feeunit | |
InnerObjectFormatsUnitTestDetail | |
jss | |
keylet | |
Keylet computation funclets. | |
ledger_trie_detail | |
LedgerReplayParameters | |
metrics | |
nft | |
NodeStore | |
openssl | |
path | |
PeerFinder | |
perf | |
Dummy class for unit tests. | |
reduce_relay | |
Resource | |
RPC | |
RPCCall | |
Processes Ripple RPC calls. | |
STParsedJSONDetail | |
test | |
tests | |
Tuning | |
unl | |
Classes | |
class | AbstractFetchPackContainer |
An interface facilitating retrieval of fetch packs without an application or ledgermaster object. More... | |
class | AcceptedLedger |
A ledger that has become irrevocable. More... | |
class | AcceptedLedgerTx |
A transaction that is in a closed ledger. More... | |
class | AccountCurrencies_test |
class | AccountRootsNotDeleted |
Invariant: we cannot remove an account ledger entry. More... | |
class | AccountSet_test |
class | AccountStateSF |
class | AccountTxPaging_test |
struct | AcquireShardSeqsHash |
class | AmendmentBlocked_test |
class | AmendmentSet |
The status of all amendments requested in a given window. More... | |
struct | AmendmentState |
Current state of an amendment. More... | |
class | AmendmentTable |
The amendment table stores the list of enabled and potential amendments. More... | |
class | AmendmentTable_test |
class | AmendmentTableImpl |
Track the list of "amendments". More... | |
struct | AmountSpec |
class | Application |
class | ApplicationImp |
class | Apply_test |
class | ApplyContext |
State information when applying a tx. More... | |
class | ApplyView |
Writeable view to a ledger, for applying a transaction. More... | |
class | ApplyViewImpl |
Editable, discardable view that can build metadata for one tx. More... | |
class | AsyncCallData |
class | AsyncObject |
Mix-in to track when all pending I/O is complete. More... | |
struct | bad_expected_access |
Expected is an approximation of std::expected (hoped for in C++23) More... | |
class | base64_test |
class | base_uint |
Integers of any length that is a multiple of 32-bits. More... | |
class | BaseHTTPPeer |
Represents an active connection. More... | |
class | BasePeer |
class | BaseWSPeer |
Represents an active WebSocket connection. More... | |
class | basic_semaphore |
class | BasicConfig |
Holds unparsed configuration information. More... | |
class | BasicTaker |
State for the active party during order book or payment operations. More... | |
class | Book |
Specifies an order book. More... | |
class | BookDirs |
class | BookListeners |
Listen to public/subscribe messages from a book. More... | |
class | BookOfferCrossingStep |
class | BookPaymentStep |
class | BookStep |
class | BookTip |
Iterates and consumes raw offers in an order book. More... | |
class | Buffer |
Like std::vector<char> but better. More... | |
class | BuildInfo_test |
class | CachedView |
Wraps a DigestAwareReadView to provide caching. More... | |
class | CancelCheck |
class | CancelOffer |
class | CanCvtToNotTEC |
class | CanCvtToNotTEC< TEFcodes > |
class | CanCvtToNotTEC< TELcodes > |
class | CanCvtToNotTEC< TEMcodes > |
class | CanCvtToNotTEC< TERcodes > |
class | CanCvtToNotTEC< TEScodes > |
class | CanCvtToTER |
class | CanCvtToTER< NotTEC > |
class | CanCvtToTER< TECcodes > |
class | CanCvtToTER< TEFcodes > |
class | CanCvtToTER< TELcodes > |
class | CanCvtToTER< TEMcodes > |
class | CanCvtToTER< TERcodes > |
class | CanCvtToTER< TEScodes > |
class | CanonicalTXSet |
Holds transactions which were deferred to the next pass of consensus. More... | |
class | CashCheck |
class | Change |
class | Check_test |
class | Checkpointer |
class | CheckpointersCollection |
class | ClosureCounter |
The role of a ClosureCounter is to assist in shutdown by letting callers wait for the completion of closures (of a specific type signature) that they previously registered. More... | |
class | Cluster |
class | ClusterNode |
class | CollectionAndDelimiter |
class | CollectionAndDelimiter< char[N]> |
class | CollectionAndDelimiter< Collection[N]> |
class | CollectorManager |
Provides the beast::insight::Collector service. More... | |
class | CollectorManagerImp |
class | Config |
class | Config_test |
struct | ConfigSection |
class | ConnectAttempt |
Manages an outbound connection attempt. More... | |
class | Consensus |
Generic implementation of consensus algorithm. More... | |
struct | ConsensusCloseTimes |
Stores the set of initial close times. More... | |
struct | ConsensusParms |
Consensus algorithm parameters. More... | |
class | ConsensusProposal |
Represents a proposed position taken during a round of consensus. More... | |
struct | ConsensusResult |
Encapsulates the result of consensus. More... | |
class | ConsensusTimer |
Measures the duration of phases of consensus. More... | |
class | ConsensusTransSetSF |
class | contract_test |
struct | Coro_create_t |
class | CountedObject |
Tracks the number of instances of an object. More... | |
class | CountedObjects |
Manages all counted object types. More... | |
struct | create_genesis_t |
class | CreateCheck |
class | CreateOffer |
Transactor specialized for creating offers in the ledger. More... | |
class | CreateTicket |
class | CryptoPRNG_test |
class | csprng_engine |
A cryptographically secure random number engine. More... | |
struct | DatabaseBody |
class | DatabaseCon |
class | DatabaseDownloader |
struct | DatabasePair |
class | DBConfig |
DBConfig is used when a client wants to delay opening a soci::session after parsing the config parameters. More... | |
class | DebugSink |
class | DecayingSample |
Sampling function using exponential decay to provide a continuous value. More... | |
class | DecayWindow |
Sampling function using exponential decay to provide a continuous value. More... | |
class | DeleteAccount |
class | DepositPreauth |
class | DigestAwareReadView |
ReadView that associates keys with digests. More... | |
class | Dir |
class | DirectIOfferCrossingStep |
class | DirectIPaymentStep |
class | DirectStepI |
class | Discrepancy_test |
class | DisputedTx |
A transaction discovered to be in dispute during consensus. More... | |
class | Door |
A listening socket. More... | |
class | DummyPeerSet |
struct | EitherAmount |
struct | equal_to |
class | EscrowCancel |
class | EscrowCreate |
class | EscrowFinish |
class | ETLLoadBalancer |
This class is used to manage connections to transaction processing processes This class spawns a listener for each etl source, which listens to messages on the ledgers stream (to keep track of which ledgers have been validated by the network, and the range of ledgers each etl source has). More... | |
class | ETLSource |
This class manages a connection to a single ETL source. More... | |
class | Expected |
class | Expected< void, E > |
class | Family |
class | Feature_test |
class | FeatureBitset |
struct | Fees |
Reflects the fee settings for a particular ledger. More... | |
struct | FeeSetup |
Fee schedule for startup / standalone, and to vote for. More... | |
class | FeeVote |
Manager to process fee votes. More... | |
class | FeeVoteImpl |
class | FileUtilities_test |
class | FlowOfferStream |
Presents and consumes the offers in an order book. More... | |
class | Freeze_test |
class | GetCounts_test |
class | GRPCServer |
class | GRPCServerImpl |
struct | Handoff |
Used to indicate the result of a server connection handoff. More... | |
class | hardened_hash |
Seed functor once per construction. More... | |
class | hardened_hash_test |
class | HashRouter |
Routing table for objects identified by hash. More... | |
class | Hooks_test |
class | HTTPClient |
Provides an asynchronous HTTP client implementation with optional SSL. More... | |
class | HTTPClientImp |
class | HTTPClientSSLContext |
class | HTTPDownloader |
Provides an asynchronous HTTP[S] file downloader. More... | |
class | HTTPStream |
class | InboundLedger |
class | InboundLedgers |
Manages the lifetime of inbound ledgers. More... | |
class | InboundLedgersImp |
class | InboundTransactions |
Manages the acquisition and lifetime of transaction sets. More... | |
class | InboundTransactionSet |
class | InboundTransactionsImp |
class | InfoSub |
Manages a client's subscription to data feeds. More... | |
class | InfoSubRequest |
class | InnerObjectFormats |
Manages the list of known inner object formats. More... | |
class | InnerObjectFormatsParsedJSON_test |
class | InnerObjectFormatsSerializer_test |
class | InvariantChecker_PROTOTYPE |
Prototype for invariant check implementations. More... | |
class | Invariants_test |
class | io_list |
Manages a set of objects performing asynchronous I/O. More... | |
class | IOUAmount |
Floating point representation of amounts with high dynamic range. More... | |
class | IOUAmount_test |
class | Issue |
A currency issued by an account. More... | |
class | Issue_test |
class | Job |
class | JobQueue |
A pool of threads to perform work. More... | |
struct | JobTypeData |
class | JobTypeInfo |
Holds all the 'static' information about a job, which does not change. More... | |
class | JobTypes |
struct | json_body |
Body that holds JSON. More... | |
struct | json_value_test |
class | JsonPropertyStream |
A PropertyStream::Sink which produces a Json::Value of type objectValue. More... | |
class | KeyCache_test |
struct | KeyEqual |
struct | Keylet |
A pair of SHAMap key and LedgerEntryType. More... | |
class | KnownFormats |
Manages a list of known formats. More... | |
class | Ledger |
Holds a ledger. More... | |
class | LedgerCleaner |
Check the ledger/transaction databases to make sure they have continuity. More... | |
class | LedgerCleanerImp |
class | LedgerClosed_test |
class | LedgerData_test |
class | LedgerDeltaAcquire |
Manage the retrieval of a ledger delta (header and transactions) from the network. More... | |
class | LedgerEntryTypesMatch |
Invariant: corresponding modified ledger entries should match in type and added entries should be a valid type. More... | |
struct | LedgerFill |
class | LedgerFormats |
Holds the list of known ledger entry formats. More... | |
struct | LedgerHashPair |
class | LedgerHistory |
Retains historical ledgers. More... | |
class | LedgerHolder |
Hold a ledger in a thread-safe way. More... | |
struct | LedgerInfo |
Information about the notional ledger backing the view. More... | |
class | LedgerLoad_test |
class | LedgerMaster |
struct | LedgerRange |
class | LedgerReplay |
class | LedgerReplayer |
Manages the lifetime of ledger replay tasks. More... | |
class | LedgerReplayMsgHandler |
class | LedgerReplayTask |
class | LedgerRPC_test |
class | LedgerTrie |
Ancestry trie of ledgers. More... | |
struct | less |
class | LoadEvent |
class | LoadFeeTrack |
Manages the current fee schedule. More... | |
class | LoadFeeTrack_test |
class | LoadManager |
Manages load sources. More... | |
class | LoadMonitor |
class | LocalTx |
class | LocalTxs |
class | LocalTxsImp |
class | LocalValue |
class | LockedSociSession |
class | Logs |
Manages partitions for logging. More... | |
struct | Manifest |
class | ManifestCache |
Remembers manifests with the highest sequence number. More... | |
struct | match_peer |
Select the specific peer. More... | |
class | Memo_test |
class | Message |
class | NegativeUNLVote |
Manager to create NegativeUNL votes. More... | |
class | NetClock |
Clock for measuring the network time. More... | |
class | NetworkOPs |
Provides server functionality for clients. More... | |
class | NetworkOPsImp |
class | NetworkValidatedLedgers |
This datastructure is used to keep track of the sequence of the most recent ledger validated by the network. More... | |
class | NFToken_test |
class | NFTokenAcceptOffer |
class | NFTokenBurn |
class | NFTokenBurn_test |
class | NFTokenCancelOffer |
class | NFTokenCountTracking |
class | NFTokenCreateOffer |
class | NFTokenDir_test |
class | NFTokenMint |
class | NoBadOffers |
Invariant: offers should be for non-negative amounts and must not be XRP to XRP. More... | |
class | NodeFamily |
class | NodeObject |
A simple object that the Ledger uses to store entries. More... | |
class | NodeStoreScheduler |
A NodeStore::Scheduler which uses the JobQueue. More... | |
class | NoRippleCheck_test |
class | NoRippleCheckLimits_test |
class | NoXRPTrustLines |
Invariant: Trust lines using XRP are not allowed. More... | |
class | NoZeroEscrow |
Invariant: an escrow entry must take a value between 0 and INITIAL_XRP drops exclusive. More... | |
class | Number |
class | Number_test |
class | NumberSO |
RAII class to set and restore the Number switchover. More... | |
class | OfferStream |
Presents and consumes the offers in an order book. More... | |
class | OfferStream_test |
struct | open_ledger_t |
Open ledger construction tag. More... | |
class | OpenLedger |
Represents the open ledger. More... | |
struct | openssl_ripemd160_hasher |
Message digest functions used in the codebase. More... | |
struct | openssl_sha256_hasher |
SHA-256 digest. More... | |
struct | openssl_sha512_hasher |
SHA-512 digest. More... | |
class | OpenView |
Writable ledger view that accumulates state and tx changes. More... | |
struct | OptionaledField |
Indicate std::optional field semantics. More... | |
class | OrderBookDB |
class | Overlay |
Manages the set of connected peers. More... | |
class | OverlayImpl |
class | OwnerInfo_test |
class | packed_spinlock |
Classes to handle arrays of spinlocks packed into a single atomic integer: More... | |
struct | ParsedPort |
struct | parsedURL |
class | partitioned_unordered_map |
class | Pathfinder |
Calculates payment paths. More... | |
class | PathFindTrustLine |
class | PathRequest |
class | PathRequests |
class | PayChanClaim |
class | PayChanCreate |
class | PayChanFund |
class | Payment |
class | PaymentSandbox |
A wrapper which makes credits unavailable to balances. More... | |
class | Peer |
Represents a peer connection in the overlay. More... | |
struct | peer_in_cluster |
Select all peers (except optional excluded) that are in our cluster. More... | |
struct | peer_in_set |
Select all peers that are in the specified set. More... | |
class | PeerImp |
struct | PeerReservation |
class | PeerReservationTable |
class | Peers_test |
class | PeerSet |
Supports data retrieval by managing a set of peers. More... | |
class | PeerSetBuilder |
class | PeerSetBuilderImpl |
class | PeerSetImpl |
class | PendingSaves |
Keeps track of which ledgers haven't been fully saved. More... | |
class | PerfLog_test |
class | PlainHTTPPeer |
class | PlainWSPeer |
struct | Port |
Configuration information for a Server listening port. More... | |
class | PostgresDatabase |
class | PostgresDatabaseImp |
struct | PreclaimContext |
State information when determining if a tx is likely to claim a fee. More... | |
struct | PreclaimResult |
Describes the results of the preclaim check. More... | |
struct | PreflightContext |
State information when preflighting a tx. More... | |
struct | PreflightResult |
Describes the results of the preflight check. More... | |
class | Processor |
class | ProtocolVersion_test |
class | PublicKey |
A public key. More... | |
class | PublicKey_test |
class | Quality_test |
class | RangeSet_test |
struct | Rate |
Represents a transfer rate. More... | |
class | RawStream |
class | RawView |
Interface for ledger entry changes. More... | |
class | RCLCensorshipDetector |
class | RCLConsensus |
Manages the generic consensus algorithm for use by the RCL. More... | |
class | RCLCxLedger |
Represents a ledger in RCLConsensus. More... | |
class | RCLCxPeerPos |
A peer's signed, proposed position for use in RCLConsensus. More... | |
class | RCLCxTx |
Represents a transaction in RCLConsensus. More... | |
class | RCLTxSet |
Represents a set of transactions in RCLConsensus. More... | |
class | RCLValidatedLedger |
Wraps a ledger instance for use in generic Validations LedgerTrie. More... | |
class | RCLValidation |
Wrapper over STValidation for generic Validation code. More... | |
class | RCLValidationsAdaptor |
Generic validations adaptor class for RCL. More... | |
class | ReadView |
A view into a ledger. More... | |
class | RelationalDatabase |
class | ReportingETL |
This class is responsible for continuously extracting data from a p2p node, and writing that data to the databases. More... | |
class | ReportingShouldProxy |
class | Resolver |
class | ResolverAsio |
class | ResolverAsioImpl |
class | RFC1751 |
struct | ripesha_hasher |
Returns the RIPEMD-160 digest of the SHA256 hash of the message. More... | |
class | RippleLineCache |
struct | RPCCallImp |
class | RPCParser |
class | RPCSub |
Subscription object for JSON RPC. More... | |
class | RPCSubImp |
class | RPCTrustLine |
class | Rules |
Rules controlling protocol behavior. More... | |
class | Sandbox |
Discardable, editable view to a ledger. More... | |
struct | SavedState |
class | saveNumberRoundMode |
class | scope_exit |
class | scope_fail |
class | scope_success |
class | SecretKey |
A secret key. More... | |
class | SecretKey_test |
class | Section |
Holds a collection of configuration values. More... | |
class | Seed |
Seeds are used to generate deterministic secret keys. More... | |
class | Seed_test |
struct | send_always |
Sends a message to all peers. More... | |
struct | send_if_not_pred |
Sends a message to non-matching peers. More... | |
struct | send_if_pred |
Sends a message to match peers. More... | |
class | SeqEnforcer |
Enforce validation increasing sequence requirement. More... | |
class | SeqProxy |
A type that represents either a sequence value or a ticket value. More... | |
struct | SeqProxy_test |
class | SerialIter |
class | Serializer |
class | Server |
A multi-protocol server. More... | |
class | ServerHandlerImp |
class | ServerImpl |
class | Session |
Persistent state information for a connection session. More... | |
class | SetAccount |
class | SetRegularKey |
class | SetRegularKey_test |
class | SetSignerList |
See the README.md for an overview of the SetSignerList transaction that this class implements. More... | |
class | SetTrust |
class | SField |
Identifies fields. More... | |
class | SHAMap |
A SHAMap is both a radix tree with a fan-out of 16 and a Merkle tree. More... | |
class | SHAMapAccountStateLeafNode |
A leaf node for a state object. More... | |
class | SHAMapAddNode |
class | SHAMapHash |
class | SHAMapInnerNode |
class | SHAMapItem |
class | SHAMapLeafNode |
class | SHAMapMissingNode |
class | SHAMapNodeID |
Identifies a node inside a SHAMap. More... | |
class | SHAMapStore |
class to create database, launch online delete thread, and related SQLite database More... | |
class | SHAMapStoreImp |
class | SHAMapSyncFilter |
class | SHAMapTreeNode |
class | SHAMapTxLeafNode |
A leaf node for a transaction. More... | |
class | SHAMapTxPlusMetaLeafNode |
A leaf node for a transaction and its associated metadata. More... | |
class | ShardFamily |
class | short_read_test |
class | SignerEntries |
class | SimpleWriter |
Deprecated: Writer that serializes a HTTP/1 message. More... | |
class | SkipListAcquire |
Manage the retrieval of a skip list in a ledger from the network. More... | |
class | SlabAllocator |
class | SlabAllocatorSet |
A collection of slab allocators of various sizes for a given type. More... | |
class | Slice |
An immutable linear range of bytes. More... | |
class | SNTPClientImp |
class | SNTPClock |
A clock based on system_clock and adjusted for SNTP. More... | |
class | SociDB_test |
class | SOElement |
An element in a SOTemplate. More... | |
class | SOTemplate |
Defines the fields and their attributes within a STObject. More... | |
class | SpanTip |
The tip of a span of ledger ancestry. More... | |
class | spinlock |
A spinlock implemented on top of an atomic integer. More... | |
class | SQLiteDatabase |
class | SQLiteDatabaseImp |
class | SSLHTTPPeer |
class | SSLStream |
class | SSLWSPeer |
class | STAccount |
struct | STAccount_test |
class | STAmount |
class | STAmount_test |
class | STAmountSO |
RAII class to set and restore the STAmount canonicalize switchover. More... | |
class | STArray |
class | STBase |
A type which can be exported to a well known binary format. More... | |
class | STBitString |
class | STBlob |
class | Step |
A step in a payment path. More... | |
struct | STExchange |
Convert between serialized type U and C++ type T. More... | |
struct | STExchange< STBlob, Buffer > |
struct | STExchange< STBlob, PublicKey > |
struct | STExchange< STBlob, Slice > |
struct | STExchange< STInteger< U >, T > |
class | STInteger |
class | STLedgerEntry |
class | STObject |
class | STObject_test |
class | STParsedJSONArray |
Holds the serialized result of parsing an input JSON array. More... | |
class | STParsedJSONObject |
Holds the serialized result of parsing an input JSON object. More... | |
class | STPath |
class | STPathElement |
class | STPathSet |
struct | StrandContext |
Context needed to build Strand Steps and for error checking. More... | |
struct | StrandResult |
Result of flow() execution of a single Strand. More... | |
class | StreambufWSMsg |
class | StringUtilities_test |
class | STTx |
class | STTx_test |
class | STValidation |
class | STValidation_test |
class | STVector256 |
class | tagged_integer |
A type-safe wrap around standard integral types. More... | |
class | TaggedCache |
Map/cache combination. More... | |
class | TaggedCache_test |
class | TaggedPointer |
TaggedPointer is a combination of a pointer and a mask stored in the lowest two bits. More... | |
class | Taker |
class | Taker_test |
struct | TER_test |
class | TERSubset |
class | TestSuite |
class | ThreadSafeQueue |
Generic thread-safe queue with an optional maximum size Note, we can't use a lockfree queue here, since we need the ability to wait for an element to be added or removed from the queue. More... | |
class | Ticket_test |
class | TimeKeeper |
Manages various times used by the server. More... | |
class | TimeKeeperImpl |
class | TimeoutCounter |
This class is an "active" object. More... | |
class | TOffer |
class | TOfferBase |
class | TOfferBase< STAmount, STAmount > |
class | TOfferStreamBase |
class | TrafficCount |
class | Transaction |
class | Transaction_test |
class | TransactionAcquire |
class | TransactionEntry_test |
class | TransactionFeeCheck |
Invariant: We should never charge a transaction a negative fee or a fee that is larger than what the transaction itself specifies. More... | |
class | TransactionHistory_test |
class | TransactionMaster |
class | TransactionStateSF |
class | Transactor |
class | TrustAndBalance_test |
struct | TrustChanges |
Changes in trusted nodes after updating validator list. More... | |
class | TrustLineBase |
Wraps a trust line SLE for convenience. More... | |
struct | TxArgs |
class | TxConsequences |
Class describing the consequences to the account of applying a transaction if the transaction consumes the maximum XRP allowed. More... | |
class | TxFormats |
Manages the list of known transaction formats. More... | |
class | TxMeta |
class | TxQ |
Transaction Queue. More... | |
struct | TxResult |
class | TxsRawView |
Interface for changing ledger entries with transactions. More... | |
struct | TypedField |
A field with a type known at compile time. More... | |
struct | types_test |
class | Unexpected |
class | unsigned_integer |
class | UptimeClock |
Tracks program uptime to seconds precision. More... | |
struct | ValidationParms |
Timing parameters to control validation staleness and expiration. More... | |
class | Validations |
Maintains current and recent ledger validations. More... | |
struct | ValidatorBlobInfo |
Used to represent the information stored in the blobs_v2 Json array. More... | |
class | ValidatorKeys |
Validator keys and manifest as set in configuration file. More... | |
class | ValidatorList |
class | ValidatorSite |
struct | ValidatorToken |
class | ValidNewAccountRoot |
Invariant: a new account root must be the consequence of a payment, must have the right starting sequence, and the payment may not create more than one new account root. More... | |
class | ValidNFTokenPage |
class | Version_test |
class | Workers |
Workers is effectively a thread pool. More... | |
class | Workers_test |
class | Writer |
class | WSInfoSub |
class | WSMsg |
struct | WSSession |
class | XRPAmount |
class | XRPAmount_test |
class | XRPBalanceChecks |
Invariant: An account XRP balance must be in XRP and take a value between 0 and INITIAL_XRP drops, inclusive. More... | |
class | XRPEndpointOfferCrossingStep |
class | XRPEndpointPaymentStep |
class | XRPEndpointStep |
class | XRPNotCreated |
Invariant: A transaction must not create XRP and should only destroy the XRP fee. More... | |
class | ZeroCopyInputStream |
Implements ZeroCopyInputStream around a buffer sequence. More... | |
class | ZeroCopyOutputStream |
Implements ZeroCopyOutputStream around a Streambuf. More... | |
Typedefs | |
using | RCLValidations = Validations< RCLValidationsAdaptor > |
Alias for RCL-specific instantiation of generic Validations. More... | |
using | CachedLedger = CachedView< Ledger > |
A ledger wrapped in a CachedView. More... | |
using | OrderedTxs = CanonicalTXSet |
using | SLE = STLedgerEntry |
using | CachedSLEs = TaggedCache< uint256, SLE const > |
using | NodeCache = TaggedCache< SHAMapHash, Blob > |
using | AccountTxResult = RelationalDatabase::AccountTxResult |
using | TxnsData = RelationalDatabase::AccountTxs |
using | TxnsDataBinary = RelationalDatabase::MetaTxsList |
using | AccountTransactionsData = RelationalDatabase::AccountTransactionsData |
using | InvariantChecks = std::tuple< TransactionFeeCheck, AccountRootsNotDeleted, LedgerEntryTypesMatch, XRPBalanceChecks, XRPNotCreated, NoXRPTrustLines, NoBadOffers, NoZeroEscrow, ValidNewAccountRoot, ValidNFTokenPage, NFTokenCountTracking > |
using | Offer = TOffer<> |
using | uint128 = base_uint< 128 > |
using | uint160 = base_uint< 160 > |
using | uint256 = base_uint< 256 > |
using | IniFileSections = std::map< std::string, std::vector< std::string > > |
using | Blob = std::vector< unsigned char > |
Storage for linear binary data. More... | |
using | days = std::chrono::duration< int, std::ratio_multiply< std::chrono::hours::period, std::ratio< 24 > >> |
using | weeks = std::chrono::duration< int, std::ratio_multiply< days::period, std::ratio< 7 > >> |
using | Stopwatch = beast::abstract_clock< std::chrono::steady_clock > |
A clock for measuring elapsed time. More... | |
using | TestStopwatch = beast::manual_clock< std::chrono::steady_clock > |
A manual Stopwatch for unit tests. More... | |
template<class T > | |
using | FeeLevel = feeunit::TaggedFee< feeunit::feelevelTag, T > |
using | FeeLevel64 = FeeLevel< std::uint64_t > |
using | FeeLevelDouble = FeeLevel< double > |
using | KeyCache = TaggedCache< uint256, int, true > |
template<class T > | |
using | ClosedInterval = boost::icl::closed_interval< T > |
A closed interval over the domain T. More... | |
template<class T > | |
using | RangeSet = boost::icl::interval_set< T, std::less, ClosedInterval< T > > |
A set of closed intervals over the domain T. More... | |
template<class Key , class Value , class Hash = beast::uhash<>, class Pred = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, Value>>> | |
using | hash_map = std::unordered_map< Key, Value, Hash, Pred, Allocator > |
template<class Key , class Value , class Hash = beast::uhash<>, class Pred = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, Value>>> | |
using | hash_multimap = std::unordered_multimap< Key, Value, Hash, Pred, Allocator > |
template<class Value , class Hash = beast::uhash<>, class Pred = std::equal_to<Value>, class Allocator = std::allocator<Value>> | |
using | hash_set = std::unordered_set< Value, Hash, Pred, Allocator > |
template<class Value , class Hash = beast::uhash<>, class Pred = std::equal_to<Value>, class Allocator = std::allocator<Value>> | |
using | hash_multiset = std::unordered_multiset< Value, Hash, Pred, Allocator > |
using | strong_hash = beast::xxhasher |
template<class Key , class Value , class Hash = hardened_hash<strong_hash>, class Pred = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, Value>>> | |
using | hardened_hash_map = std::unordered_map< Key, Value, Hash, Pred, Allocator > |
template<class Key , class Value , class Hash = hardened_hash<strong_hash>, class Pred = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, Value>>> | |
using | hardened_partitioned_hash_map = partitioned_unordered_map< Key, Value, Hash, Pred, Allocator > |
template<class Key , class Value , class Hash = hardened_hash<strong_hash>, class Pred = std::equal_to<Key>, class Allocator = std::allocator<std::pair<Key const, Value>>> | |
using | hardened_hash_multimap = std::unordered_multimap< Key, Value, Hash, Pred, Allocator > |
template<class Value , class Hash = hardened_hash<strong_hash>, class Pred = std::equal_to<Value>, class Allocator = std::allocator<Value>> | |
using | hardened_hash_set = std::unordered_set< Value, Hash, Pred, Allocator > |
template<class Value , class Hash = hardened_hash<strong_hash>, class Pred = std::equal_to<Value>, class Allocator = std::allocator<Value>> | |
using | hardened_hash_multiset = std::unordered_multiset< Value, Hash, Pred, Allocator > |
using | semaphore = basic_semaphore< std::mutex, std::condition_variable > |
using | JobCounter = ClosureCounter< void > |
using | const_iterator = Dir::const_iterator |
using | majorityAmendments_t = std::map< uint256, NetClock::time_point > |
using | socket_type = boost::beast::tcp_stream |
using | stream_type = boost::beast::ssl_stream< socket_type > |
using | request_type = boost::beast::http::request< boost::beast::http::empty_body > |
using | http_request_type = boost::beast::http::request< boost::beast::http::dynamic_body > |
using | http_response_type = boost::beast::http::response< boost::beast::http::dynamic_body > |
using | ProtocolVersion = std::pair< std::uint16_t, std::uint16_t > |
Represents a particular version of the peer-to-peer protocol. More... | |
using | AccountID = base_uint< 160, detail::AccountIDTag > |
A 160-bit unsigned that uniquely identifies an account. More... | |
using | ripemd160_hasher = openssl_ripemd160_hasher |
using | sha256_hasher = openssl_sha256_hasher |
using | sha512_hasher = openssl_sha512_hasher |
using | sha512_half_hasher = detail::basic_sha512_half_hasher< false > |
using | sha512_half_hasher_s = detail::basic_sha512_half_hasher< true > |
using | LedgerIndex = std::uint32_t |
A ledger index. More... | |
using | TxID = uint256 |
A transaction identifier. More... | |
using | LedgerHash = uint256 |
using | SF_UINT8 = TypedField< STInteger< std::uint8_t > > |
using | SF_UINT16 = TypedField< STInteger< std::uint16_t > > |
using | SF_UINT32 = TypedField< STInteger< std::uint32_t > > |
using | SF_UINT64 = TypedField< STInteger< std::uint64_t > > |
using | SF_UINT96 = TypedField< STBitString< 96 > > |
using | SF_UINT128 = TypedField< STBitString< 128 > > |
using | SF_UINT160 = TypedField< STBitString< 160 > > |
using | SF_UINT192 = TypedField< STBitString< 192 > > |
using | SF_UINT256 = TypedField< STBitString< 256 > > |
using | SF_UINT384 = TypedField< STBitString< 384 > > |
using | SF_UINT512 = TypedField< STBitString< 512 > > |
using | SF_ACCOUNT = TypedField< STAccount > |
using | SF_AMOUNT = TypedField< STAmount > |
using | SF_VL = TypedField< STBlob > |
using | SF_VECTOR256 = TypedField< STVector256 > |
using | STUInt128 = STBitString< 128 > |
using | STUInt160 = STBitString< 160 > |
using | STUInt256 = STBitString< 256 > |
using | STUInt8 = STInteger< unsigned char > |
using | STUInt16 = STInteger< std::uint16_t > |
using | STUInt32 = STInteger< std::uint32_t > |
using | STUInt64 = STInteger< std::uint64_t > |
using | TERUnderlyingType = int |
using | NotTEC = TERSubset< CanCvtToNotTEC > |
using | TER = TERSubset< CanCvtToTER > |
using | Directory = base_uint< 256, detail::DirectoryTag > |
Directory is an index into the directory of offer books. More... | |
using | Currency = base_uint< 160, detail::CurrencyTag > |
Currency is a hash representing a specific currency. More... | |
using | NodeID = base_uint< 160, detail::NodeIDTag > |
NodeID is a 160-bit hash representing one node. More... | |
using | TxnDataBinary = RelationalDatabase::txnMetaLedgerType |
using | AccountTxArgs = RelationalDatabase::AccountTxArgs |
using | LedgerShortcut = RelationalDatabase::LedgerShortcut |
using | LedgerSpecifier = RelationalDatabase::LedgerSpecifier |
using | ServerHandler = ServerHandlerImp |
using | Endpoints = std::vector< boost::asio::ip::tcp::endpoint > |
using | FullBelowCache = detail::BasicFullBelowCache |
using | TreeNodeCache = TaggedCache< uint256, SHAMapTreeNode > |
using | sha256_t = unsigned_integer< 256, std::size_t > |
Functions | |
uint256 | proposalUniqueId (uint256 const &proposeHash, uint256 const &previousLedger, std::uint32_t proposeSeq, NetClock::time_point closeTime, Slice const &publicKey, Slice const &signature) |
Calculate a unique identifier for a signed proposal. More... | |
RCLValidatedLedger::Seq | mismatch (RCLValidatedLedger const &a, RCLValidatedLedger const &b) |
void | handleNewValidation (Application &app, std::shared_ptr< STValidation > const &val, std::string const &source) |
Handle a new validation. More... | |
std::shared_ptr< Ledger > | buildLedger (std::shared_ptr< Ledger const > const &parent, NetClock::time_point closeTime, const bool closeTimeCorrect, NetClock::duration closeResolution, Application &app, CanonicalTXSet &txns, std::set< TxID > &failedTxs, beast::Journal j) |
Build a new ledger by applying consensus transactions. More... | |
std::shared_ptr< Ledger > | buildLedger (LedgerReplay const &replayData, ApplyFlags applyFlags, Application &app, beast::Journal j) |
Build a new ledger by replaying transactions. More... | |
template<class ApplyTxs > | |
std::shared_ptr< Ledger > | buildLedgerImpl (std::shared_ptr< Ledger const > const &parent, NetClock::time_point closeTime, const bool closeTimeCorrect, NetClock::duration closeResolution, Application &app, beast::Journal j, ApplyTxs &&applyTxs) |
std::size_t | applyTransactions (Application &app, std::shared_ptr< Ledger const > const &built, CanonicalTXSet &txns, std::set< TxID > &failed, OpenView &view, beast::Journal j) |
Apply a set of consensus transactions to a ledger. More... | |
static std::vector< uint256 > | neededHashes (uint256 const &root, SHAMap &map, int max, SHAMapSyncFilter *filter) |
LedgerInfo | deserializeHeader (Slice data, bool hasHash=false) |
Deserialize a ledger header from a byte array. More... | |
LedgerInfo | deserializePrefixedHeader (Slice data, bool hasHash=false) |
Deserialize a ledger header (prefixed with 4 bytes) from a byte array. More... | |
std::unique_ptr< InboundLedgers > | make_InboundLedgers (Application &app, InboundLedgers::clock_type &clock, beast::insight::Collector::ptr const &collector) |
std::unique_ptr< InboundTransactions > | make_InboundTransactions (Application &app, beast::insight::Collector::ptr const &collector, std::function< void(std::shared_ptr< SHAMap > const &, bool)> gotSet) |
std::unique_ptr< LedgerCleaner > | make_LedgerCleaner (Application &app, beast::Journal journal) |
static bool | shouldAcquire (std::uint32_t const currentLedger, std::uint32_t const ledgerHistory, std::optional< LedgerIndex > const minimumOnline, std::uint32_t const candidateLedger, beast::Journal j) |
static void | populateFetchPack (SHAMap const &want, SHAMap const *have, std::uint32_t cnt, protocol::TMGetObjectByHash *into, std::uint32_t seq, bool withLeaves=true) |
Populate a fetch pack with data from the map the recipient wants. More... | |
void | addJson (Json::Value &, LedgerFill const &) |
Given a Ledger and options, fill a Json::Object or Json::Value with a description of the ledger. More... | |
Json::Value | getJson (LedgerFill const &) |
Return a new Json::Value representing the ledger with given options. More... | |
std::unique_ptr< LocalTxs > | make_LocalTxs () |
std::string | debugTxstr (std::shared_ptr< STTx const > const &tx) |
std::string | debugTostr (OrderedTxs const &set) |
std::string | debugTostr (SHAMap const &set) |
std::string | debugTostr (std::shared_ptr< ReadView const > const &view) |
uint256 | calculateLedgerHash (LedgerInfo const &info) |
std::shared_ptr< STTx const > | deserializeTx (SHAMapItem const &item) |
Deserialize a SHAMapItem containing a single STTx. More... | |
std::pair< std::shared_ptr< STTx const >, std::shared_ptr< STObject const > > | deserializeTxPlusMeta (SHAMapItem const &item) |
Deserialize a SHAMapItem containing STTx + STObject metadata. More... | |
bool | isFlagLedger (LedgerIndex seq) |
Returns true if the given ledgerIndex is a flag ledgerIndex. More... | |
static bool | saveValidatedLedger (Application &app, std::shared_ptr< Ledger const > const &ledger, bool current) |
bool | pendSaveValidated (Application &app, std::shared_ptr< Ledger const > const &ledger, bool isSynchronous, bool isCurrent) |
Save, or arrange to save, a fully-validated ledger Returns false on error. More... | |
std::shared_ptr< Ledger > | loadLedgerHelper (LedgerInfo const &info, Application &app, bool acquire) |
static void | finishLoadByIndexOrHash (std::shared_ptr< Ledger > const &ledger, Config const &config, beast::Journal j) |
std::tuple< std::shared_ptr< Ledger >, std::uint32_t, uint256 > | getLatestLedger (Application &app) |
std::shared_ptr< Ledger > | loadByIndex (std::uint32_t ledgerIndex, Application &app, bool acquire) |
std::shared_ptr< Ledger > | loadByHash (uint256 const &ledgerHash, Application &app, bool acquire) |
std::vector< std::pair< std::shared_ptr< STTx const >, std::shared_ptr< STObject const > > > | flatFetchTransactions (Application &app, std::vector< uint256 > &nodestoreHashes) |
std::vector< std::pair< std::shared_ptr< STTx const >, std::shared_ptr< STObject const > > > | flatFetchTransactions (ReadView const &ledger, Application &app) |
static void | log_one (ReadView const &ledger, uint256 const &tx, char const *msg, beast::Journal &j) |
static void | log_metadata_difference (ReadView const &builtLedger, ReadView const &validLedger, uint256 const &tx, beast::Journal j) |
static std::vector< SHAMapItem const * > | leaves (SHAMap const &sm) |
template<class Object > | |
Blob | serializeBlob (Object const &o) |
Serialize an object to a blob. More... | |
std::string | serializeHex (STObject const &o) |
Serialize an object to a hex string. More... | |
std::unique_ptr< Application > | make_Application (std::unique_ptr< Config > config, std::unique_ptr< Logs > logs, std::unique_ptr< TimeKeeper > timeKeeper) |
std::unique_ptr< CollectorManager > | make_CollectorManager (Section const ¶ms, beast::Journal journal) |
std::unique_ptr< LoadManager > | make_LoadManager (Application &app, beast::Journal journal) |
bool | adjustDescriptorLimit (int needed, beast::Journal j) |
void | printHelp (const po::options_description &desc) |
std::pair< PublicKey, SecretKey > | getNodeIdentity (Application &app, boost::program_options::variables_map const &cmdline) |
The cryptographic credentials identifying this server instance. More... | |
std::unique_ptr< AmendmentTable > | make_AmendmentTable (Application &app, std::chrono::seconds majorityTime, std::vector< AmendmentTable::FeatureInfo > const &supported, Section const &enabled, Section const &vetoed, beast::Journal journal) |
bool | operator< (CanonicalTXSet::Key const &lhs, CanonicalTXSet::Key const &rhs) |
std::unique_ptr< FeeVote > | make_FeeVote (FeeSetup const &setup, beast::Journal journal) |
Create an instance of the FeeVote logic. More... | |
void | convertBlobsToTxResult (RelationalDatabase::AccountTxs &to, std::uint32_t ledger_index, std::string const &status, Blob const &rawTxn, Blob const &rawMeta, Application &app) |
void | saveLedgerAsync (Application &app, std::uint32_t seq) |
static std::vector< std::pair< uint256, std::string > > | parseSection (Section const §ion) |
XRPAmount | scaleFeeLoad (XRPAmount fee, LoadFeeTrack const &feeTrack, Fees const &fees, bool bUnlimited) |
std::string | to_string (Manifest const &m) |
Format the specified manifest to a string for debugging purposes. More... | |
template<class Stream > | |
Stream & | logMftAct (Stream &s, std::string const &action, PublicKey const &pk, std::uint32_t seq) |
template<class Stream > | |
Stream & | logMftAct (Stream &s, std::string const &action, PublicKey const &pk, std::uint32_t seq, std::uint32_t oldSeq) |
std::optional< ValidatorToken > | loadValidatorToken (std::vector< std::string > const &blob, beast::Journal journal) |
static FeeLevel64 | getFeeLevelPaid (ReadView const &view, STTx const &tx) |
static std::optional< LedgerIndex > | getLastLedgerSequence (STTx const &tx) |
static FeeLevel64 | increase (FeeLevel64 level, std::uint32_t increasePercent) |
TxQ::Setup | setup_TxQ (Config const &) |
Build a TxQ::Setup object from application configuration. More... | |
std::string | to_string (ListDisposition disposition) |
std::size_t | splitMessageParts (std::vector< ValidatorList::MessageWithHash > &messages, protocol::TMValidatorListCollection const &largeMsg, std::size_t maxSize, std::size_t begin, std::size_t end) |
std::size_t | splitMessage (std::vector< ValidatorList::MessageWithHash > &messages, protocol::TMValidatorListCollection const &largeMsg, std::size_t maxSize, std::size_t begin=0, std::size_t end=0) |
std::size_t | buildValidatorListMessage (std::vector< ValidatorList::MessageWithHash > &messages, std::uint32_t rawVersion, std::string const &rawManifest, ValidatorBlobInfo const ¤tBlob, std::size_t maxSize) |
std::size_t | buildValidatorListMessage (std::vector< ValidatorList::MessageWithHash > &messages, std::uint64_t peerSequence, std::uint32_t rawVersion, std::string const &rawManifest, std::map< std::size_t, ValidatorBlobInfo > const &blobInfos, std::size_t maxSize) |
bool | operator== (Manifest const &lhs, Manifest const &rhs) |
bool | operator!= (Manifest const &lhs, Manifest const &rhs) |
std::string | to_string (ManifestDisposition m) |
static std::uint32_t | trunc32 (std::uint64_t v) |
static void | getAccounts (Json::Value const &jvObj, std::vector< AccountID > &accounts) |
std::unique_ptr< NetworkOPs > | make_NetworkOPs (Application &app, NetworkOPs::clock_type &clock, bool standalone, std::size_t minPeerCount, bool startvalid, JobQueue &job_queue, LedgerMaster &ledgerMaster, ValidatorKeys const &validatorKeys, boost::asio::io_service &io_svc, beast::Journal journal, beast::insight::Collector::ptr const &collector) |
std::unique_ptr< SHAMapStore > | make_SHAMapStore (Application &app, NodeStore::Scheduler &scheduler, beast::Journal journal) |
template<class T > | |
XRPAmount | toDrops (FeeLevel< T > const &level, XRPAmount baseFee) |
FeeLevel64 | toFeeLevel (XRPAmount const &drops, XRPAmount const &baseFee) |
template<class Hasher > | |
void | hash_append (Hasher &h, ValidatorBlobInfo const &blobInfo) |
template<class Hasher > | |
void | hash_append (Hasher &h, std::vector< ValidatorBlobInfo > const &blobs) |
template<class Hasher > | |
void | hash_append (Hasher &h, std::map< std::size_t, ValidatorBlobInfo > const &blobs) |
hash_set< Currency > | accountSourceCurrencies (AccountID const &account, std::shared_ptr< RippleLineCache > const &lrCache, bool includeXRP) |
hash_set< Currency > | accountDestCurrencies (AccountID const &account, std::shared_ptr< RippleLineCache > const &lrCache, bool includeXRP) |
path::RippleCalc::Output | flow (PaymentSandbox &view, STAmount const &deliver, AccountID const &src, AccountID const &dst, STPathSet const &paths, bool defaultPaths, bool partialPayment, bool ownerPaysTransferFee, bool offerCrossing, std::optional< Quality > const &limitQuality, std::optional< STAmount > const &sendMax, beast::Journal j, path::detail::FlowDebugInfo *flowDebugInfo=nullptr) |
Make a payment from the src account to the dst account. More... | |
template<class T > | |
T & | get (EitherAmount &amt) |
template<> | |
IOUAmount & | get< IOUAmount > (EitherAmount &amt) |
template<> | |
XRPAmount & | get< XRPAmount > (EitherAmount &amt) |
template<class T > | |
T const & | get (EitherAmount const &amt) |
template<> | |
IOUAmount const & | get< IOUAmount > (EitherAmount const &amt) |
template<> | |
XRPAmount const & | get< XRPAmount > (EitherAmount const &amt) |
AmountSpec | toAmountSpec (STAmount const &amt) |
EitherAmount | toEitherAmount (STAmount const &amt) |
AmountSpec | toAmountSpec (EitherAmount const &ea, std::optional< Currency > const &c) |
template<class TIn , class TOut > | |
static void | limitStepIn (Quality const &ofrQ, TAmounts< TIn, TOut > &ofrAmt, TAmounts< TIn, TOut > &stpAmt, TOut &ownerGives, std::uint32_t transferRateIn, std::uint32_t transferRateOut, TIn const &limit) |
template<class TIn , class TOut > | |
static void | limitStepOut (Quality const &ofrQ, TAmounts< TIn, TOut > &ofrAmt, TAmounts< TIn, TOut > &stpAmt, TOut &ownerGives, std::uint32_t transferRateIn, std::uint32_t transferRateOut, TOut const &limit) |
template<class TCollection > | |
static auto | sum (TCollection const &col) |
template<class TIn , class TOut > | |
static std::pair< TER, std::unique_ptr< Step > > | make_BookStepHelper (StrandContext const &ctx, Issue const &in, Issue const &out) |
std::pair< TER, std::unique_ptr< Step > > | make_BookStepII (StrandContext const &ctx, Issue const &in, Issue const &out) |
std::pair< TER, std::unique_ptr< Step > > | make_BookStepIX (StrandContext const &ctx, Issue const &in) |
std::pair< TER, std::unique_ptr< Step > > | make_BookStepXI (StrandContext const &ctx, Issue const &out) |
std::pair< TER, std::unique_ptr< Step > > | make_DirectStepI (StrandContext const &ctx, AccountID const &src, AccountID const &dst, Currency const &c) |
template<class T > | |
void | SetUnion (boost::container::flat_set< T > &dst, boost::container::flat_set< T > const &src) |
Given two flat sets dst and src, compute dst = dst union src. More... | |
STAmount | largestAmount (STAmount const &amt) |
STAmount | convertAmount (STAmount const &amt, bool all) |
bool | convertAllCheck (STAmount const &a) |
bool | checkNear (IOUAmount const &expected, IOUAmount const &actual) |
bool | checkNear (XRPAmount const &expected, XRPAmount const &actual) |
static bool | isXRPAccount (STPathElement const &pe) |
static std::pair< TER, std::unique_ptr< Step > > | toStep (StrandContext const &ctx, STPathElement const *e1, STPathElement const *e2, Issue const &curIssue) |
std::pair< TER, Strand > | toStrand (ReadView const &sb, AccountID const &src, AccountID const &dst, Issue const &deliver, std::optional< Quality > const &limitQuality, std::optional< Issue > const &sendMaxIssue, STPath const &path, bool ownerPaysTransferFee, bool offerCrossing, beast::Journal j) |
Create a Strand for the specified path. More... | |
std::pair< TER, std::vector< Strand > > | toStrands (ReadView const &sb, AccountID const &src, AccountID const &dst, Issue const &deliver, std::optional< Quality > const &limitQuality, std::optional< Issue > const &sendMax, STPathSet const &paths, bool addDefaultPath, bool ownerPaysTransferFee, bool offerCrossing, beast::Journal j) |
Create a Strand for each specified path (including the default path, if indicated) More... | |
template<class InAmt , class OutAmt > | |
bool | isDirectXrpToXrp (Strand const &strand) |
template<> | |
bool | isDirectXrpToXrp< XRPAmount, XRPAmount > (Strand const &strand) |
template bool | isDirectXrpToXrp< XRPAmount, IOUAmount > (Strand const &strand) |
template bool | isDirectXrpToXrp< IOUAmount, XRPAmount > (Strand const &strand) |
template bool | isDirectXrpToXrp< IOUAmount, IOUAmount > (Strand const &strand) |
TER | checkFreeze (ReadView const &view, AccountID const &src, AccountID const &dst, Currency const ¤cy) |
TER | checkNoRipple (ReadView const &view, AccountID const &prev, AccountID const &cur, AccountID const &next, Currency const ¤cy, beast::Journal j) |
bool | redeems (DebtDirection dir) |
bool | issues (DebtDirection dir) |
std::pair< TER, STPath > | normalizePath (AccountID const &src, AccountID const &dst, Issue const &deliver, std::optional< Issue > const &sendMaxIssue, STPath const &path) |
template<class TInAmt , class TOutAmt > | |
StrandResult< TInAmt, TOutAmt > | flow (PaymentSandbox const &baseView, Strand const &strand, std::optional< TInAmt > const &maxIn, TOutAmt const &out, beast::Journal j) |
Request out amount from a strand. More... | |
template<class TInAmt , class TOutAmt > | |
FlowResult< TInAmt, TOutAmt > | flow (PaymentSandbox const &baseView, std::vector< Strand > const &strands, TOutAmt const &outReq, bool partialPayment, bool offerCrossing, std::optional< Quality > const &limitQuality, std::optional< STAmount > const &sendMaxST, beast::Journal j, path::detail::FlowDebugInfo *flowDebugInfo=nullptr) |
Request out amount from a collection of strands. More... | |
template<class TDerived > | |
bool | operator== (XRPEndpointStep< TDerived > const &lhs, XRPEndpointStep< TDerived > const &rhs) |
std::pair< TER, std::unique_ptr< Step > > | make_XRPEndpointStep (StrandContext const &ctx, AccountID const &acc) |
static bool | isDefaultPath (STPath const &path) |
static STPath | removeIssuer (STPath const &path) |
void | addUniquePath (STPathSet &pathSet, STPath const &path) |
static std::vector< LedgerInfo > | loadLedgerInfos (std::shared_ptr< PgPool > const &pgPool, std::variant< std::monostate, uint256, uint32_t, std::pair< uint32_t, uint32_t >> const &whichLedger, Application &app) |
loadLedgerInfos Loads the ledger info for the specified ledger/s from the database More... | |
static std::optional< LedgerInfo > | loadLedgerHelper (std::shared_ptr< PgPool > const &pgPool, std::variant< std::monostate, uint256, uint32_t > const &whichLedger, Application &app) |
loadLedgerHelper Load a ledger info from Postgres More... | |
std::unique_ptr< RelationalDatabase > | getPostgresDatabase (Application &app, Config const &config, JobQueue &jobQueue) |
std::unique_ptr< RelationalDatabase > | getSQLiteDatabase (Application &app, Config const &config, JobQueue &jobQueue) |
std::pair< std::unique_ptr< DatabaseCon >, std::optional< std::uint64_t > > | openDatabaseBodyDb (DatabaseCon::Setup const &setup, boost::filesystem::path const &path) |
openDatabaseBodyDb Opens a database that will store the contents of a file being downloaded, returns its descriptor, and starts a new download process or continues an existing one. More... | |
std::uint64_t | databaseBodyDoPut (soci::session &session, std::string const &data, std::string const &path, std::uint64_t fileSize, std::uint64_t part, std::uint16_t maxRowSizePad) |
databaseBodyDoPut Saves a new fragment of a downloaded file. More... | |
void | databaseBodyFinish (soci::session &session, std::ofstream &fout) |
databaseBodyFinish Finishes the download process and writes the file to disk. More... | |
void | initPeerFinderDB (soci::session &session, BasicConfig const &config, beast::Journal j) |
initPeerFinderDB Opens a session with the peer finder database. More... | |
void | updatePeerFinderDB (soci::session &session, int currentSchemaVersion, beast::Journal j) |
updatePeerFinderDB Updates the peer finder database to a new version. More... | |
void | readPeerFinderDB (soci::session &session, std::function< void(std::string const &, int)> const &func) |
readPeerFinderDB Reads all entries from the peer finder database and invokes the given callback for each entry. More... | |
void | savePeerFinderDB (soci::session &session, std::vector< PeerFinder::Store::Entry > const &v) |
savePeerFinderDB Saves a new entry to the peer finder database. More... | |
std::unique_ptr< DatabaseCon > | makeArchiveDB (boost::filesystem::path const &dir, std::string const &dbName) |
makeArchiveDB Opens the shard archive database and returns its descriptor. More... | |
void | readArchiveDB (DatabaseCon &db, std::function< void(std::string const &, int)> const &func) |
readArchiveDB Reads entries from the shard archive database and invokes the given callback for each entry. More... | |
void | insertArchiveDB (DatabaseCon &db, std::uint32_t shardIndex, std::string const &url) |
insertArchiveDB Adds an entry to the shard archive database. More... | |
void | deleteFromArchiveDB (DatabaseCon &db, std::uint32_t shardIndex) |
deleteFromArchiveDB Deletes an entry from the shard archive database. More... | |
void | dropArchiveDB (DatabaseCon &db) |
dropArchiveDB Removes a table in the shard archive database. More... | |
void | initStateDB (soci::session &session, BasicConfig const &config, std::string const &dbName) |
initStateDB Opens a session with the State database. More... | |
LedgerIndex | getCanDelete (soci::session &session) |
getCanDelete Returns the ledger sequence which can be deleted. More... | |
LedgerIndex | setCanDelete (soci::session &session, LedgerIndex canDelete) |
setCanDelete Updates the ledger sequence which can be deleted. More... | |
SavedState | getSavedState (soci::session &session) |
getSavedState Returns the saved state. More... | |
void | setSavedState (soci::session &session, SavedState const &state) |
setSavedState Saves the given state. More... | |
void | setLastRotated (soci::session &session, LedgerIndex seq) |
setLastRotated Updates the last rotated ledger sequence. More... | |
DatabasePair | makeShardCompleteLedgerDBs (Config const &config, DatabaseCon::Setup const &setup) |
makeShardCompleteLedgerDBs Opens shard databases for verified shards and returns their descriptors. More... | |
DatabasePair | makeShardIncompleteLedgerDBs (Config const &config, DatabaseCon::Setup const &setup, DatabaseCon::CheckpointerSetup const &checkpointerSetup) |
makeShardIncompleteLedgerDBs Opens shard databases for partially downloaded or unverified shards and returns their descriptors. More... | |
bool | updateLedgerDBs (soci::session &txdb, soci::session &lgrdb, std::shared_ptr< Ledger const > const &ledger, std::uint32_t index, std::atomic< bool > &stop, beast::Journal j) |
updateLedgerDBs Saves the given ledger to shard databases. More... | |
std::unique_ptr< DatabaseCon > | makeAcquireDB (DatabaseCon::Setup const &setup, DatabaseCon::CheckpointerSetup const &checkpointerSetup) |
makeAcquireDB Opens the shard acquire database and returns its descriptor. More... | |
void | insertAcquireDBIndex (soci::session &session, std::uint32_t index) |
insertAcquireDBIndex Adds a new shard index to the shard acquire database. More... | |
std::pair< bool, std::optional< std::string > > | selectAcquireDBLedgerSeqs (soci::session &session, std::uint32_t index) |
selectAcquireDBLedgerSeqs Returns the set of acquired ledgers for the given shard. More... | |
std::pair< bool, AcquireShardSeqsHash > | selectAcquireDBLedgerSeqsHash (soci::session &session, std::uint32_t index) |
selectAcquireDBLedgerSeqsHash Returns the set of acquired ledger sequences and the last ledger hash for the shard with the provided index. More... | |
void | updateAcquireDB (soci::session &session, std::shared_ptr< Ledger const > const &ledger, std::uint32_t index, std::uint32_t lastSeq, std::optional< std::string > const &seqs) |
updateAcquireDB Updates information in the acquire DB. More... | |
bool | doVacuumDB (DatabaseCon::Setup const &setup) |
doVacuumDB Creates, initialises, and performs cleanup on a database. More... | |
std::unique_ptr< DatabaseCon > | makeWalletDB (DatabaseCon::Setup const &setup) |
makeWalletDB Opens the wallet database and returns it. More... | |
std::unique_ptr< DatabaseCon > | makeTestWalletDB (DatabaseCon::Setup const &setup, std::string const &dbname) |
makeTestWalletDB Opens a test wallet database with an arbitrary name. More... | |
void | getManifests (soci::session &session, std::string const &dbTable, ManifestCache &mCache, beast::Journal j) |
getManifests Loads a manifest from the wallet database and stores it in the cache. More... | |
static void | saveManifest (soci::session &session, std::string const &dbTable, std::string const &serialized) |
void | saveManifests (soci::session &session, std::string const &dbTable, std::function< bool(PublicKey const &)> const &isTrusted, hash_map< PublicKey, Manifest > const &map, beast::Journal j) |
saveManifests Saves all given manifests to the database. More... | |
void | addValidatorManifest (soci::session &session, std::string const &serialized) |
addValidatorManifest Saves the manifest of a validator to the database. More... | |
void | clearNodeIdentity (soci::session &session) |
Delete any saved public/private key associated with this node. More... | |
std::pair< PublicKey, SecretKey > | getNodeIdentity (soci::session &session) |
Returns a stable public and private key for this node. More... | |
std::unordered_set< PeerReservation, beast::uhash<>, KeyEqual > | getPeerReservationTable (soci::session &session, beast::Journal j) |
getPeerReservationTable Returns the peer reservation table. More... | |
void | insertPeerReservation (soci::session &session, PublicKey const &nodeId, std::string const &description) |
insertPeerReservation Adds an entry to the peer reservation table. More... | |
void | deletePeerReservation (soci::session &session, PublicKey const &nodeId) |
deletePeerReservation Deletes an entry from the peer reservation table. More... | |
bool | createFeatureVotes (soci::session &session) |
createFeatureVotes Creates the FeatureVote table if it does not exist. More... | |
void | readAmendments (soci::session &session, std::function< void( boost::optional< std::string > amendment_hash, boost::optional< std::string > amendment_name, boost::optional< AmendmentVote > vote)> const &callback) |
readAmendments Reads all amendments from the FeatureVotes table. More... | |
void | voteAmendment (soci::session &session, uint256 const &amendment, std::string const &name, AmendmentVote vote) |
voteAmendment Set the veto value for a particular amendment. More... | |
template<class T , class C > | |
T | rangeCheckedCast (C c) |
std::vector< uint256 > | getMarkers (size_t numMarkers) |
Parititions the uint256 keyspace into numMarkers partitions, each of equal size. More... | |
Json::Value | forwardToP2p (RPC::JsonContext &context) |
Forward a JSON request to a p2p node and return the response. More... | |
std::unique_ptr< org::xrpl::rpc::v1::XRPLedgerAPIService::Stub > | getP2pForwardingStub (RPC::Context &context) |
Get stub used to forward gRPC requests to a p2p node. More... | |
bool | shouldForwardToP2p (RPC::JsonContext &context) |
Whether a request should be forwarded, based on request parameters. More... | |
template<class Request > | |
bool | needCurrentOrClosed (Request &request) |
template<class Request > | |
bool | shouldForwardToP2p (RPC::GRPCContext< Request > &context, RPC::Condition condition) |
Whether a request should be forwarded, based on request parameters. More... | |
std::pair< Validity, std::string > | checkValidity (HashRouter &router, STTx const &tx, Rules const &rules, Config const &config) |
Checks transaction signature and local checks. More... | |
void | forceValidity (HashRouter &router, uint256 const &txid, Validity validity) |
Sets the validity of a given transaction in the cache. More... | |
std::pair< TER, bool > | apply (Application &app, OpenView &view, STTx const &tx, ApplyFlags flags, beast::Journal journal) |
Apply a transaction to an OpenView . More... | |
ApplyResult | applyTransaction (Application &app, OpenView &view, STTx const &tx, bool retryAssured, ApplyFlags flags, beast::Journal journal) |
Transaction application helper. More... | |
bool | isTecClaimHardFail (TER ter, ApplyFlags flags) |
Return true if the transaction can claim a fee (tec), and the ApplyFlags do not allow soft failures. More... | |
PreflightResult | preflight (Application &app, Rules const &rules, STTx const &tx, ApplyFlags flags, beast::Journal j) |
Gate a transaction based on static information. More... | |
PreclaimResult | preclaim (PreflightResult const &preflightResult, Application &app, OpenView const &view) |
Gate a transaction based on static ledger information. More... | |
XRPAmount | calculateBaseFee (ReadView const &view, STTx const &tx) |
Compute only the expected base fee for a transaction. More... | |
XRPAmount | calculateDefaultBaseFee (ReadView const &view, STTx const &tx) |
Return the minimum fee that an "ordinary" transaction would pay. More... | |
std::pair< TER, bool > | doApply (PreclaimResult const &preclaimResult, Application &app, OpenView &view) |
Apply a prechecked transaction to an OpenView. More... | |
template<class T , std::enable_if_t< T::ConsequencesFactory==Transactor::Normal, int > = 0> | |
TxConsequences | consequences_helper (PreflightContext const &ctx) |
template<class T > | |
std::pair< NotTEC, TxConsequences > | invoke_preflight_helper (PreflightContext const &ctx) |
static std::pair< NotTEC, TxConsequences > | invoke_preflight (PreflightContext const &ctx) |
template<class T > | |
static TER | invoke_preclaim (PreclaimContext const &ctx) |
static XRPAmount | invoke_calculateBaseFee (ReadView const &view, STTx const &tx) |
static std::pair< TER, bool > | invoke_apply (ApplyContext &ctx) |
static bool | after (NetClock::time_point now, std::uint32_t mark) |
Has the specified time passed? More... | |
static bool | checkCondition (Slice f, Slice c) |
InvariantChecks | getInvariantChecks () |
get a tuple of all invariant checks More... | |
template<class TIn , class TOut > | |
std::ostream & | operator<< (std::ostream &os, TOffer< TIn, TOut > const &offer) |
static STAmount | accountFundsHelper (ReadView const &view, AccountID const &id, STAmount const &saDefault, Issue const &, FreezeHandling freezeHandling, beast::Journal j) |
static IOUAmount | accountFundsHelper (ReadView const &view, AccountID const &id, IOUAmount const &amtDefault, Issue const &issue, FreezeHandling freezeHandling, beast::Journal j) |
static XRPAmount | accountFundsHelper (ReadView const &view, AccountID const &id, XRPAmount const &amtDefault, Issue const &issue, FreezeHandling freezeHandling, beast::Journal j) |
static TER | closeChannel (std::shared_ptr< SLE > const &slep, ApplyView &view, uint256 const &key, beast::Journal j) |
static int | signerCountBasedOwnerCountDelta (std::size_t entryCount, Rules const &rules) |
static TER | removeSignersFromLedger (Application &app, ApplyView &view, Keylet const &accountKeylet, Keylet const &ownerDirKeylet, Keylet const &signerListKeylet, beast::Journal j) |
static std::string | format_amount (STAmount const &amount) |
static STAmount | qual_div (STAmount const &amount, Quality const &quality, STAmount const &output) |
static STAmount | qual_mul (STAmount const &amount, Quality const &quality, STAmount const &output) |
NotTEC | preflight0 (PreflightContext const &ctx) |
Performs early sanity checks on the txid. More... | |
NotTEC | preflight1 (PreflightContext const &ctx) |
Performs early sanity checks on the account and fee fields. More... | |
NotTEC | preflight2 (PreflightContext const &ctx) |
Checks whether the signature appears valid. More... | |
static void | removeUnfundedOffers (ApplyView &view, std::vector< uint256 > const &offers, beast::Journal viewJ) |
static void | removeExpiredNFTokenOffers (ApplyView &view, std::vector< uint256 > const &offers, beast::Journal viewJ) |
template<class InputIter1 , class InputIter2 , class Action , class Comp > | |
void | generalized_set_intersection (InputIter1 first1, InputIter1 last1, InputIter2 first2, InputIter2 last2, Action action, Comp comp) |
template<class FwdIter1 , class InputIter2 , class Pred , class Comp > | |
FwdIter1 | remove_if_intersect_or_match (FwdIter1 first1, FwdIter1 last1, InputIter2 first2, InputIter2 last2, Pred pred, Comp comp) |
void | extractTarLz4 (boost::filesystem::path const &src, boost::filesystem::path const &dst) |
Extract a tar archive compressed with lz4. More... | |
std::string | base64_encode (std::uint8_t const *data, std::size_t len) |
std::string | base64_encode (std::string const &s) |
std::string | base64_decode (std::string const &data) |
template<std::size_t Bits, class Tag > | |
constexpr std::strong_ordering | operator<=> (base_uint< Bits, Tag > const &lhs, base_uint< Bits, Tag > const &rhs) |
template<std::size_t Bits, typename Tag > | |
constexpr bool | operator== (base_uint< Bits, Tag > const &lhs, base_uint< Bits, Tag > const &rhs) |
template<std::size_t Bits, class Tag > | |
constexpr bool | operator== (base_uint< Bits, Tag > const &a, std::uint64_t b) |
template<std::size_t Bits, class Tag > | |
constexpr base_uint< Bits, Tag > | operator^ (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
template<std::size_t Bits, class Tag > | |
constexpr base_uint< Bits, Tag > | operator& (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
template<std::size_t Bits, class Tag > | |
constexpr base_uint< Bits, Tag > | operator| (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
template<std::size_t Bits, class Tag > | |
constexpr base_uint< Bits, Tag > | operator+ (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
template<std::size_t Bits, class Tag > | |
std::string | to_string (base_uint< Bits, Tag > const &a) |
template<std::size_t Bits, class Tag > | |
std::ostream & | operator<< (std::ostream &out, base_uint< Bits, Tag > const &u) |
template<class T > | |
bool | set (T &target, std::string const &name, Section const §ion) |
Set a value from a configuration Section If the named value is not found or doesn't parse as a T, the variable is unchanged. More... | |
template<class T > | |
bool | set (T &target, T const &defaultValue, std::string const &name, Section const §ion) |
Set a value from a configuration Section If the named value is not found or doesn't cast to T, the variable is assigned the default. More... | |
template<class T = std::string> | |
T | get (Section const §ion, std::string const &name, T const &defaultValue=T{}) |
Retrieve a key/value pair from a section. More... | |
std::string | get (Section const §ion, std::string const &name, const char *defaultValue) |
template<class T > | |
bool | get_if_exists (Section const §ion, std::string const &name, T &v) |
template<> | |
bool | get_if_exists< bool > (Section const §ion, std::string const &name, bool &v) |
bool | operator== (Buffer const &lhs, Buffer const &rhs) noexcept |
bool | operator!= (Buffer const &lhs, Buffer const &rhs) noexcept |
template<class T > | |
constexpr auto | kilobytes (T value) noexcept |
template<class T > | |
constexpr auto | megabytes (T value) noexcept |
template<class Duration > | |
std::string | to_string (date::sys_time< Duration > tp) |
std::string | to_string (NetClock::time_point tp) |
Stopwatch & | stopwatch () |
Returns an instance of a wall clock. More... | |
void | LogThrow (std::string const &title) |
Generates and logs a call stack. More... | |
void | Rethrow () |
Rethrow the exception currently being handled. More... | |
template<class E , class... Args> | |
void | Throw (Args &&... args) |
void | LogicError (std::string const &how) noexcept |
Called when faulty logic causes a broken invariant. More... | |
template<typename E , std::size_t N> | |
Unexpected (E(&)[N]) -> Unexpected< E const * > | |
template<class Source1 , class Source2 , class Dest , class = feeunit::enable_muldiv_t<Source1, Source2, Dest>> | |
std::pair< bool, Dest > | mulDiv (Source1 value, Dest mul, Source2 div) |
template<class Source1 , class Source2 , class Dest , class = feeunit::enable_muldiv_commute_t<Source1, Source2, Dest>> | |
std::pair< bool, Dest > | mulDiv (Dest value, Source1 mul, Source2 div) |
template<class Dest , class = feeunit::enable_muldiv_dest_t<Dest>> | |
std::pair< bool, Dest > | mulDiv (std::uint64_t value, Dest mul, std::uint64_t div) |
template<class Dest , class = feeunit::enable_muldiv_dest_t<Dest>> | |
std::pair< bool, Dest > | mulDiv (Dest value, std::uint64_t mul, std::uint64_t div) |
template<class Source1 , class Source2 , class = feeunit::enable_muldiv_sources_t<Source1, Source2>> | |
std::pair< bool, std::uint64_t > | mulDiv (Source1 value, std::uint64_t mul, Source2 div) |
template<class Source1 , class Source2 , class = feeunit::enable_muldiv_sources_t<Source1, Source2>> | |
std::pair< bool, std::uint64_t > | mulDiv (std::uint64_t value, Source1 mul, Source2 div) |
template<class Dest , class Src > | |
constexpr std::enable_if_t< std::is_same_v< typename Dest::unit_type, typename Src::unit_type > &&std::is_integral_v< typename Dest::value_type > &&std::is_integral_v< typename Src::value_type >, Dest > | safe_cast (Src s) noexcept |
template<class Dest , class Src > | |
constexpr std::enable_if_t< std::is_same_v< typename Dest::unit_type, typename Src::unit_type > &&std::is_integral_v< typename Dest::value_type > &&std::is_integral_v< typename Src::value_type >, Dest > | unsafe_cast (Src s) noexcept |
std::string | getFileContents (boost::system::error_code &ec, boost::filesystem::path const &sourcePath, std::optional< std::size_t > maxSize=std::nullopt) |
void | writeFileContents (boost::system::error_code &ec, boost::filesystem::path const &destPath, std::string const &contents) |
std::ostream & | operator<< (std::ostream &os, Section const §ion) |
std::ostream & | operator<< (std::ostream &ss, BasicConfig const &c) |
bool | getSTNumberSwitchover () |
void | setSTNumberSwitchover (bool v) |
std::string | to_string (IOUAmount const &amount) |
IOUAmount | mulRatio (IOUAmount const &amt, std::uint32_t num, std::uint32_t den, bool roundUp) |
static DebugSink & | debugSink () |
std::unique_ptr< beast::Journal::Sink > | setDebugLogSink (std::unique_ptr< beast::Journal::Sink > sink) |
Set the sink for the debug journal. More... | |
beast::Journal | debugLog () |
Returns a debug journal. More... | |
std::shared_ptr< boost::asio::ssl::context > | make_SSLContext (std::string const &cipherList) |
Create a self-signed SSL context that allows anonymous Diffie Hellman. More... | |
std::shared_ptr< boost::asio::ssl::context > | make_SSLContextAuthed (std::string const &keyFile, std::string const &certFile, std::string const &chainFile, std::string const &cipherList) |
Create an authenticated SSL context using the specified files. More... | |
std::pair< bool, std::uint64_t > | mulDiv (std::uint64_t value, std::uint64_t mul, std::uint64_t div) |
Return value*mul/div accurately. More... | |
static unsigned | divu10 (uint128_t &u) |
std::string | to_string (Number const &amount) |
Number | power (Number const &f, unsigned n) |
Number | root (Number f, unsigned d) |
Number | root2 (Number f) |
Number | power (Number const &f, unsigned n, unsigned d) |
static std::size_t | extract (uint256 const &key) |
static std::size_t | extract (SHAMapHash const &key) |
static std::size_t | extract (LedgerIndex key) |
static std::size_t | extract (std::string const &key) |
template<typename Key > | |
std::size_t | partitioner (Key const &key, std::size_t const numPartitions) |
template std::size_t | partitioner< LedgerIndex > (LedgerIndex const &key, std::size_t const numPartitions) |
template std::size_t | partitioner< uint256 > (uint256 const &key, std::size_t const numPartitions) |
template std::size_t | partitioner< SHAMapHash > (SHAMapHash const &key, std::size_t const numPartitions) |
template std::size_t | partitioner< std::string > (std::string const &key, std::size_t const numPartitions) |
std::string | sqlBlobLiteral (Blob const &blob) |
Format arbitrary binary data as an SQLite "blob literal". More... | |
bool | parseUrl (parsedURL &pUrl, std::string const &strUrl) |
template<class Stream , class Iter > | |
Stream & | join (Stream &s, Iter iter, Iter end, std::string const &delimiter) |
constexpr std::size_t | calculatePercent (std::size_t count, std::size_t total) |
Calculate one number divided by another number in percentage. More... | |
Number | operator+ (Number const &x, Number const &y) |
Number | operator- (Number const &x, Number const &y) |
Number | operator* (Number const &x, Number const &y) |
Number | operator/ (Number const &x, Number const &y) |
constexpr Number | abs (Number x) noexcept |
constexpr Number | squelch (Number const &x, Number const &limit) noexcept |
beast::xor_shift_engine & | default_prng () |
Return the default random engine. More... | |
template<class T > | |
ClosedInterval< T > | range (T low, T high) |
Create a closed range interval. More... | |
template<class T > | |
std::string | to_string (ClosedInterval< T > const &ci) |
Convert a ClosedInterval to a styled string. More... | |
template<class T > | |
std::string | to_string (RangeSet< T > const &rs) |
Convert the given RangeSet to a styled string. More... | |
template<class T > | |
bool | from_string (RangeSet< T > &rs, std::string const &s) |
Convert the given styled string to a RangeSet. More... | |
template<class T > | |
std::optional< T > | prevMissing (RangeSet< T > const &rs, T t, T minVal=0) |
Find the largest value not in the set that is less than a given value. More... | |
template<class Dest , class Src > | |
constexpr std::enable_if_t< std::is_integral_v< Dest > &&std::is_integral_v< Src >, Dest > | safe_cast (Src s) noexcept |
template<class Dest , class Src > | |
constexpr std::enable_if_t< std::is_enum_v< Dest > &&std::is_integral_v< Src >, Dest > | safe_cast (Src s) noexcept |
template<class Dest , class Src > | |
constexpr std::enable_if_t< std::is_integral_v< Dest > &&std::is_enum_v< Src >, Dest > | safe_cast (Src s) noexcept |
template<class Dest , class Src > | |
constexpr std::enable_if_t< std::is_integral_v< Dest > &&std::is_integral_v< Src >, Dest > | unsafe_cast (Src s) noexcept |
template<class Dest , class Src > | |
constexpr std::enable_if_t< std::is_enum_v< Dest > &&std::is_integral_v< Src >, Dest > | unsafe_cast (Src s) noexcept |
template<class Dest , class Src > | |
constexpr std::enable_if_t< std::is_integral_v< Dest > &&std::is_enum_v< Src >, Dest > | unsafe_cast (Src s) noexcept |
template<class EF > | |
scope_exit (EF) -> scope_exit< EF > | |
template<class EF > | |
scope_fail (EF) -> scope_fail< EF > | |
template<class EF > | |
scope_success (EF) -> scope_success< EF > | |
bool | operator!= (SHAMapHash const &x, SHAMapHash const &y) |
template<class Hasher > | |
void | hash_append (Hasher &h, Slice const &v) |
bool | operator== (Slice const &lhs, Slice const &rhs) noexcept |
bool | operator!= (Slice const &lhs, Slice const &rhs) noexcept |
bool | operator< (Slice const &lhs, Slice const &rhs) noexcept |
template<class Stream > | |
Stream & | operator<< (Stream &s, Slice const &v) |
template<class T , std::size_t N> | |
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) |
template<class T , class Alloc > | |
std::enable_if_t< std::is_same< T, char >::value||std::is_same< T, unsigned char >::value, Slice > | makeSlice (std::vector< T, Alloc > const &v) |
template<class Traits , class Alloc > | |
Slice | makeSlice (std::basic_string< char, Traits, Alloc > const &s) |
template<class FwdIt > | |
std::string | strHex (FwdIt begin, FwdIt end) |
template<class T , class = decltype(std::declval<T>().begin())> | |
std::string | strHex (T const &from) |
template<class Iterator > | |
std::optional< Blob > | strUnHex (std::size_t strSize, Iterator begin, Iterator end) |
std::optional< Blob > | strUnHex (std::string const &strSrc) |
std::optional< Blob > | strViewUnHex (boost::string_view const &strSrc) |
std::string | trim_whitespace (std::string str) |
std::optional< std::uint64_t > | to_uint64 (std::string const &s) |
bool | isProperlyFormedTomlDomain (std::string const &domain) |
Determines if the given string looks like a TOML-file hosting domain. More... | |
template<class T > | |
std::enable_if< std::is_arithmetic< T >::value, std::string >::type | to_string (T t) |
to_string() generalizes std::to_string to handle bools, chars, and strings. More... | |
std::string | to_string (bool b) |
std::string | to_string (char c) |
std::string | to_string (std::string s) |
std::string | to_string (char const *s) |
template<class Char , class Traits > | |
std::basic_ostream< Char, Traits > & | operator<< (std::basic_ostream< Char, Traits > &os, const XRPAmount &q) |
std::string | to_string (XRPAmount const &amount) |
XRPAmount | mulRatio (XRPAmount const &amt, std::uint32_t num, std::uint32_t den, bool roundUp) |
bool | shouldCloseLedger (bool anyTransactions, std::size_t prevProposers, std::size_t proposersClosed, std::size_t proposersValidated, std::chrono::milliseconds prevRoundTime, std::chrono::milliseconds timeSincePrevClose, std::chrono::milliseconds openTime, std::chrono::milliseconds idleInterval, ConsensusParms const &parms, beast::Journal j) |
Determines whether the current ledger should close at this time. More... | |
bool | checkConsensusReached (std::size_t agreeing, std::size_t total, bool count_self, std::size_t minConsensusPct) |
ConsensusState | checkConsensus (std::size_t prevProposers, std::size_t currentProposers, std::size_t currentAgree, std::size_t currentFinished, std::chrono::milliseconds previousAgreeTime, std::chrono::milliseconds currentAgreeTime, ConsensusParms const &parms, bool proposing, beast::Journal j) |
Determine whether the network reached consensus and whether we joined. More... | |
int | participantsNeeded (int participants, int percent) |
How many of the participants must agree to reach a given threshold? More... | |
template<class NodeID_t , class LedgerID_t , class Position_t > | |
bool | operator== (ConsensusProposal< NodeID_t, LedgerID_t, Position_t > const &a, ConsensusProposal< NodeID_t, LedgerID_t, Position_t > const &b) |
std::string | to_string (ConsensusMode m) |
std::string | to_string (ConsensusPhase p) |
template<class Rep , class Period , class Seq > | |
std::chrono::duration< Rep, Period > | getNextLedgerTimeResolution (std::chrono::duration< Rep, Period > previousResolution, bool previousAgree, Seq ledgerSeq) |
Calculates the close time resolution for the specified ledger. More... | |
template<class Clock , class Duration , class Rep , class Period > | |
std::chrono::time_point< Clock, Duration > | roundCloseTime (std::chrono::time_point< Clock, Duration > closeTime, std::chrono::duration< Rep, Period > closeResolution) |
Calculates the close time for a ledger, given a close time resolution. More... | |
template<class Clock , class Duration , class Rep , class Period > | |
std::chrono::time_point< Clock, Duration > | effCloseTime (std::chrono::time_point< Clock, Duration > closeTime, std::chrono::duration< Rep, Period > resolution, std::chrono::time_point< Clock, Duration > priorCloseTime) |
Calculate the effective ledger close time. More... | |
bool | isCurrent (ValidationParms const &p, NetClock::time_point now, NetClock::time_point signTime, NetClock::time_point seenTime) |
Whether a validation is still current. More... | |
std::string | to_string (ValStatus m) |
FeeSetup | setup_FeeVote (Section const §ion) |
std::shared_ptr< Checkpointer > | checkpointerFromId (std::uintptr_t id) |
DatabaseCon::Setup | setup_DatabaseCon (Config const &c, std::optional< beast::Journal > j=std::nullopt) |
IniFileSections | parseIniFile (std::string const &strInput, const bool bTrim) |
IniFileSections::mapped_type * | getIniFileSection (IniFileSections &secSource, std::string const &strSection) |
bool | getSingleSection (IniFileSections &secSource, std::string const &strSection, std::string &strValue, beast::Journal j) |
static std::string | getEnvVar (char const *name) |
std::unique_ptr< SNTPClock > | make_SNTPClock (beast::Journal j) |
void | open (soci::session &s, BasicConfig const &config, std::string const &dbName) |
Open a soci session. More... | |
void | open (soci::session &s, std::string const &beName, std::string const &connectionString) |
Open a soci session. More... | |
static sqlite_api::sqlite3 * | getConnection (soci::session &s) |
std::uint32_t | getKBUsedAll (soci::session &s) |
std::uint32_t | getKBUsedDB (soci::session &s) |
void | convert (soci::blob &from, std::vector< std::uint8_t > &to) |
void | convert (soci::blob &from, std::string &to) |
void | convert (std::vector< std::uint8_t > const &from, soci::blob &to) |
void | convert (std::string const &from, soci::blob &to) |
std::shared_ptr< Checkpointer > | makeCheckpointer (std::uintptr_t id, std::weak_ptr< soci::session >, JobQueue &, Logs &) |
Returns a new checkpointer which makes checkpoints of a soci database every checkpointPageCount pages, using a job on the job queue. More... | |
std::unique_ptr< TimeKeeper > | make_TimeKeeper (beast::Journal j) |
csprng_engine & | crypto_prng () |
The default cryptographically secure PRNG. More... | |
void | secure_erase (void *dest, std::size_t bytes) |
Attempts to clear the given blob of memory. More... | |
constexpr ApplyFlags | operator| (ApplyFlags const &lhs, ApplyFlags const &rhs) |
constexpr ApplyFlags | operator& (ApplyFlags const &lhs, ApplyFlags const &rhs) |
constexpr ApplyFlags | operator~ (ApplyFlags const &flags) |
ApplyFlags | operator|= (ApplyFlags &lhs, ApplyFlags const &rhs) |
ApplyFlags | operator&= (ApplyFlags &lhs, ApplyFlags const &rhs) |
Rules | makeRulesGivenLedger (DigestAwareReadView const &ledger, Rules const ¤t) |
Rules | makeRulesGivenLedger (DigestAwareReadView const &ledger, std::unordered_set< uint256, beast::uhash<>> const &presets) |
void | addRaw (LedgerInfo const &info, Serializer &s, bool includeHash) |
bool | hasExpired (ReadView const &view, std::optional< std::uint32_t > const &exp) |
Determines whether the given expiration time has passed. More... | |
bool | isGlobalFrozen (ReadView const &view, AccountID const &issuer) |
bool | isFrozen (ReadView const &view, AccountID const &account, Currency const ¤cy, AccountID const &issuer) |
STAmount | accountHolds (ReadView const &view, AccountID const &account, Currency const ¤cy, AccountID const &issuer, FreezeHandling zeroIfFrozen, beast::Journal j) |
STAmount | accountFunds (ReadView const &view, AccountID const &id, STAmount const &saDefault, FreezeHandling freezeHandling, beast::Journal j) |
static std::uint32_t | confineOwnerCount (std::uint32_t current, std::int32_t adjustment, std::optional< AccountID > const &id=std::nullopt, beast::Journal j=beast::Journal{beast::Journal::getNullSink()}) |
XRPAmount | xrpLiquid (ReadView const &view, AccountID const &id, std::int32_t ownerCountAdj, beast::Journal j) |
void | forEachItem (ReadView const &view, Keylet const &root, std::function< void(std::shared_ptr< SLE const > const &)> const &f) |
Iterate all items in the given directory. More... | |
bool | forEachItemAfter (ReadView const &view, Keylet const &root, uint256 const &after, std::uint64_t const hint, unsigned int limit, std::function< bool(std::shared_ptr< SLE const > const &)> const &f) |
Iterate all items after an item in the given directory. More... | |
Rate | transferRate (ReadView const &view, AccountID const &issuer) |
bool | areCompatible (ReadView const &validLedger, ReadView const &testLedger, beast::Journal::Stream &s, const char *reason) |
Return false if the test ledger is provably incompatible with the valid ledger, that is, they could not possibly both be valid. More... | |
bool | areCompatible (uint256 const &validHash, LedgerIndex validIndex, ReadView const &testLedger, beast::Journal::Stream &s, const char *reason) |
bool | dirIsEmpty (ReadView const &view, Keylet const &k) |
Returns true if the directory is empty. More... | |
std::set< uint256 > | getEnabledAmendments (ReadView const &view) |
majorityAmendments_t | getMajorityAmendments (ReadView const &view) |
std::optional< uint256 > | hashOfSeq (ReadView const &ledger, LedgerIndex seq, beast::Journal journal) |
Return the hash of a ledger by sequence. More... | |
void | adjustOwnerCount (ApplyView &view, std::shared_ptr< SLE > const &sle, std::int32_t amount, beast::Journal j) |
Adjust the owner count up or down. More... | |
std::function< void(SLE::ref)> | describeOwnerDir (AccountID const &account) |
TER | trustCreate (ApplyView &view, const bool bSrcHigh, AccountID const &uSrcAccountID, AccountID const &uDstAccountID, uint256 const &uIndex, SLE::ref sleAccount, const bool bAuth, const bool bNoRipple, const bool bFreeze, STAmount const &saBalance, STAmount const &saLimit, std::uint32_t uSrcQualityIn, std::uint32_t uSrcQualityOut, beast::Journal j) |
Create a trust line. More... | |
TER | trustDelete (ApplyView &view, std::shared_ptr< SLE > const &sleRippleState, AccountID const &uLowAccountID, AccountID const &uHighAccountID, beast::Journal j) |
TER | offerDelete (ApplyView &view, std::shared_ptr< SLE > const &sle, beast::Journal j) |
Delete an offer. More... | |
TER | rippleCredit (ApplyView &view, AccountID const &uSenderID, AccountID const &uReceiverID, STAmount const &saAmount, bool bCheckIssuer, beast::Journal j) |
static TER | rippleSend (ApplyView &view, AccountID const &uSenderID, AccountID const &uReceiverID, STAmount const &saAmount, STAmount &saActual, beast::Journal j) |
TER | accountSend (ApplyView &view, AccountID const &uSenderID, AccountID const &uReceiverID, STAmount const &saAmount, beast::Journal j) |
static bool | updateTrustLine (ApplyView &view, SLE::pointer state, bool bSenderHigh, AccountID const &sender, STAmount const &before, STAmount const &after, beast::Journal j) |
TER | issueIOU (ApplyView &view, AccountID const &account, STAmount const &amount, Issue const &issue, beast::Journal j) |
TER | redeemIOU (ApplyView &view, AccountID const &account, STAmount const &amount, Issue const &issue, beast::Journal j) |
TER | transferXRP (ApplyView &view, AccountID const &from, AccountID const &to, STAmount const &amount, beast::Journal j) |
bool | getCloseAgree (LedgerInfo const &info) |
void | forEachItem (ReadView const &view, AccountID const &id, std::function< void(std::shared_ptr< SLE const > const &)> const &f) |
Iterate all items in an account's owner directory. More... | |
bool | forEachItemAfter (ReadView const &view, AccountID const &id, uint256 const &after, std::uint64_t const hint, unsigned int limit, std::function< bool(std::shared_ptr< SLE const > const &)> const &f) |
Iterate all items after an item in an owner directory. More... | |
LedgerIndex | getCandidateLedger (LedgerIndex requested) |
Find a ledger index from which we could easily get the requested ledger. More... | |
std::shared_ptr< DatabaseDownloader > | make_DatabaseDownloader (boost::asio::io_service &io_service, Config const &config, beast::Journal j) |
void | registerSSLCerts (boost::asio::ssl::context &, boost::system::error_code &, beast::Journal j) |
Register default SSL certificates. More... | |
std::string | createHTTPPost (std::string const &strHost, std::string const &strPath, std::string const &strMsg, std::unordered_map< std::string, std::string > const &mapRequestHeaders) |
std::string | JSONRPCRequest (std::string const &strMethod, Json::Value const ¶ms, Json::Value const &id) |
static Json::Value | rpcCmdLineToJson (std::vector< std::string > const &args, Json::Value &retParams, beast::Journal j) |
Json::Value | cmdLineToJSONRPC (std::vector< std::string > const &args, beast::Journal j) |
Given a rippled command line, return the corresponding JSON. More... | |
std::pair< int, Json::Value > | rpcClient (std::vector< std::string > const &args, Config const &config, Logs &logs, std::unordered_map< std::string, std::string > const &headers={}) |
Internal invocation of RPC client. More... | |
Json::Value | rpcError (int iError) |
bool | isRpcError (Json::Value jvResult) |
std::shared_ptr< RPCSub > | make_RPCSub (InfoSub::Source &source, boost::asio::io_service &io_service, JobQueue &jobQueue, std::string const &strUrl, std::string const &strUsername, std::string const &strPassword, Logs &logs) |
std::optional< std::string > | getFeatureValue (boost::beast::http::fields const &headers, std::string const &feature) |
Get feature's header value. More... | |
bool | isFeatureValue (boost::beast::http::fields const &headers, std::string const &feature, std::string const &value) |
Check if a feature's value is equal to the specified value. More... | |
bool | featureEnabled (boost::beast::http::fields const &headers, std::string const &feature) |
Check if a feature is enabled. More... | |
std::string | makeFeaturesRequestHeader (bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) |
Make request header X-Protocol-Ctl value with supported features. More... | |
std::string | makeFeaturesResponseHeader (http_request_type const &headers, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) |
Make response header X-Protocol-Ctl value with supported features. More... | |
static std::optional< base_uint< 512 > > | hashLastMessage (SSL const *ssl, size_t(*get)(const SSL *, void *, size_t)) |
Hashes the latest finished message from an SSL stream. More... | |
std::optional< uint256 > | makeSharedValue (stream_type &ssl, beast::Journal journal) |
Computes a shared value based on the SSL connection state. More... | |
void | buildHandshake (boost::beast::http::fields &h, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, beast::IP::Address public_ip, beast::IP::Address remote_ip, Application &app) |
Insert fields headers necessary for upgrading the link to the peer protocol. More... | |
PublicKey | verifyHandshake (boost::beast::http::fields const &headers, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, beast::IP::Address public_ip, beast::IP::Address remote, Application &app) |
Validate header fields necessary for upgrading the link to the peer protocol. More... | |
auto | makeRequest (bool crawlPublic, bool comprEnabled, bool ledgerReplayEnabled, bool txReduceRelayEnabled, bool vpReduceRelayEnabled) |
Make outbound http request. More... | |
http_response_type | makeResponse (bool crawlPublic, http_request_type const &req, beast::IP::Address public_ip, beast::IP::Address remote_ip, uint256 const &sharedValue, std::optional< std::uint32_t > networkID, ProtocolVersion version, Application &app) |
Make http response. More... | |
template<typename headers > | |
bool | peerFeatureEnabled (headers const &request, std::string const &feature, std::string value, bool config) |
Check if a feature should be enabled for a peer. More... | |
template<typename headers > | |
bool | peerFeatureEnabled (headers const &request, std::string const &feature, bool config) |
Wrapper for enable(1)/disable type(0) of feature. More... | |
std::shared_ptr< Message > | makeSquelchMessage (PublicKey const &validator, bool squelch, uint32_t squelchDuration) |
Overlay::Setup | setup_Overlay (BasicConfig const &config) |
std::unique_ptr< Overlay > | make_Overlay (Application &app, Overlay::Setup const &setup, ServerHandler &serverHandler, Resource::Manager &resourceManager, Resolver &resolver, boost::asio::io_service &io_service, BasicConfig const &config, beast::insight::Collector::ptr const &collector) |
Creates the implementation of Overlay. More... | |
static bool | stringIsUint256Sized (std::string const &pBuffStr) |
static std::shared_ptr< PeerImp > | getPeerWithTree (OverlayImpl &ov, uint256 const &rootHash, PeerImp const *skip) |
static std::shared_ptr< PeerImp > | getPeerWithLedger (OverlayImpl &ov, uint256 const &ledgerHash, LedgerIndex ledger, PeerImp const *skip) |
std::unique_ptr< PeerSetBuilder > | make_PeerSetBuilder (Application &app) |
std::unique_ptr< PeerSet > | make_DummyPeerSet (Application &app) |
Make a dummy PeerSet that does not do anything. More... | |
protocol::MessageType | protocolMessageType (protocol::TMGetLedger const &) |
protocol::MessageType | protocolMessageType (protocol::TMReplayDeltaRequest const &) |
protocol::MessageType | protocolMessageType (protocol::TMProofPathRequest const &) |
template<class = void> | |
std::string | protocolMessageName (int type) |
Returns the name of a protocol message given its type. More... | |
template<class Buffers , class Handler > | |
std::pair< std::size_t, boost::system::error_code > | invokeProtocolMessage (Buffers const &buffers, Handler &handler, std::size_t &hint) |
Calls the handler for up to one protocol message in the passed buffers. More... | |
std::string | to_string (ProtocolVersion const &p) |
Print a protocol version a human-readable string. More... | |
std::vector< ProtocolVersion > | parseProtocolVersions (boost::beast::string_view const &s) |
Parse a set of protocol versions. More... | |
std::optional< ProtocolVersion > | negotiateProtocolVersion (std::vector< ProtocolVersion > const &versions) |
Given a list of supported protocol versions, choose the one we prefer. More... | |
std::optional< ProtocolVersion > | negotiateProtocolVersion (boost::beast::string_view const &versions) |
Given a list of supported protocol versions, choose the one we prefer. More... | |
std::string const & | supportedProtocolVersions () |
The list of all the protocol versions we support. More... | |
bool | isProtocolSupported (ProtocolVersion const &v) |
Determine whether we support a specific protocol version. More... | |
constexpr ProtocolVersion | make_protocol (std::uint16_t major, std::uint16_t minor) |
template<typename Predicate > | |
send_if_pred< Predicate > | send_if (std::shared_ptr< Message > const &m, Predicate const &f) |
Helper function to aid in type deduction. More... | |
template<typename Predicate > | |
send_if_not_pred< Predicate > | send_if_not (std::shared_ptr< Message > const &m, Predicate const &f) |
Helper function to aid in type deduction. More... | |
std::string | toBase58 (AccountID const &v) |
Convert AccountID to base58 checked string. More... | |
template<> | |
std::optional< AccountID > | parseBase58 (std::string const &s) |
Parse AccountID from checked, base58 string. More... | |
AccountID const & | xrpAccount () |
Compute AccountID from public key. More... | |
AccountID const & | noAccount () |
A placeholder for empty accounts. More... | |
bool | to_issuer (AccountID &, std::string const &) |
Convert hex or base58 string to AccountID. More... | |
bool | isXRP (AccountID const &c) |
std::string | to_string (Currency const &c) |
Returns "", "XRP", or three letter ISO code. More... | |
std::ostream & | operator<< (std::ostream &os, AccountID const &x) |
void | initAccountIdCache (std::size_t count) |
Initialize the global cache used to map AccountID to base58 conversions. More... | |
STAmount | toSTAmount (IOUAmount const &iou, Issue const &iss) |
STAmount | toSTAmount (IOUAmount const &iou) |
STAmount | toSTAmount (XRPAmount const &xrp) |
STAmount | toSTAmount (XRPAmount const &xrp, Issue const &iss) |
template<class T > | |
T | toAmount (STAmount const &amt)=delete |
template<> | |
STAmount | toAmount< STAmount > (STAmount const &amt) |
template<> | |
IOUAmount | toAmount< IOUAmount > (STAmount const &amt) |
template<> | |
XRPAmount | toAmount< XRPAmount > (STAmount const &amt) |
template<class T > | |
T | toAmount (IOUAmount const &amt)=delete |
template<> | |
IOUAmount | toAmount< IOUAmount > (IOUAmount const &amt) |
template<class T > | |
T | toAmount (XRPAmount const &amt)=delete |
template<> | |
XRPAmount | toAmount< XRPAmount > (XRPAmount const &amt) |
bool | isConsistent (Book const &book) |
std::string | to_string (Book const &book) |
std::ostream & | operator<< (std::ostream &os, Book const &x) |
template<class Hasher > | |
void | hash_append (Hasher &h, Book const &b) |
Book | reversed (Book const &book) |
template<class... Args> | |
sha512_half_hasher::result_type | sha512Half (Args const &... args) |
Returns the SHA512-Half of a series of objects. More... | |
template<class... Args> | |
sha512_half_hasher_s::result_type | sha512Half_s (Args const &... args) |
Returns the SHA512-Half of a series of objects. More... | |
std::string | rpcErrorString (Json::Value const &jv) |
Returns a single string with the contents of an RPC error. More... | |
std::optional< uint256 > | getRegisteredFeature (std::string const &name) |
size_t | featureToBitsetIndex (uint256 const &f) |
uint256 | bitsetIndexToFeature (size_t i) |
std::string | featureToName (uint256 const &f) |
template<class F > | |
void | foreachFeature (FeatureBitset bs, F &&f) |
template<class Hasher > | |
void | hash_append (Hasher &h, HashPrefix const &hp) noexcept |
AccountID | calcAccountID (PublicKey const &pk) |
std::size_t | hash_value (ripple::uint256 const &feature) |
uint256 | registerFeature (std::string const &name, Supported support, VoteBehavior vote) |
uint256 | retireFeature (std::string const &name) |
bool | registrationIsDone () |
Tell FeatureCollections when registration is complete. More... | |
REGISTER_FEATURE (OwnerPaysFee, Supported::no, VoteBehavior::DefaultNo) | |
REGISTER_FEATURE (Flow, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FEATURE (FlowCross, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fix1513, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FEATURE (DepositAuth, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FEATURE (Checks, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fix1571, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fix1543, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fix1623, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FEATURE (DepositPreauth, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fix1515, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fix1578, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FEATURE (MultiSignReserve, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fixTakerDryOfferRemoval, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fixMasterKeyAsRegularKey, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fixCheckThreading, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fixPayChanRecipientOwnerDir, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FEATURE (DeletableAccounts, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fixQualityUpperBound, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FEATURE (RequireFullyCanonicalSig, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fix1781, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FEATURE (HardenedValidations, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fixAmendmentMajorityCalc, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FEATURE (NegativeUNL, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FEATURE (TicketBatch, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FEATURE (FlowSortStrands, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fixSTAmountCanonicalize, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FIX (fixRmSmallIncreasedQOffers, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FEATURE (CheckCashMakesTrustLine, Supported::yes, VoteBehavior::DefaultNo) | |
REGISTER_FEATURE (ExpandedSignerList, Supported::yes, VoteBehavior::DefaultNo) | |
REGISTER_FEATURE (NonFungibleTokensV1_1, Supported::yes, VoteBehavior::DefaultNo) | |
REGISTER_FIX (fixTrustLinesToSelf, Supported::yes, VoteBehavior::DefaultNo) | |
REGISTER_FIX (fixRemoveNFTokenAutoTrustLine, Supported::yes, VoteBehavior::DefaultYes) | |
REGISTER_FEATURE (ImmediateOfferKilled, Supported::yes, VoteBehavior::DefaultNo) | |
REGISTER_FEATURE (DisallowIncoming, Supported::yes, VoteBehavior::DefaultNo) | |
REGISTER_FEATURE (XRPFees, Supported::yes, VoteBehavior::DefaultNo) | |
REGISTER_FIX (fixUniversalNumber, Supported::yes, VoteBehavior::DefaultNo) | |
REGISTER_FIX (fixNonFungibleTokensV1_2, Supported::yes, VoteBehavior::DefaultNo) | |
REGISTER_FIX (fixNFTokenRemint, Supported::yes, VoteBehavior::DefaultNo) | |
REGISTER_FEATURE (CryptoConditionsSuite, Supported::yes, VoteBehavior::Obsolete) | |
REGISTER_FEATURE (NonFungibleTokensV1, Supported::yes, VoteBehavior::Obsolete) | |
REGISTER_FIX (fixNFTokenDirV1, Supported::yes, VoteBehavior::Obsolete) | |
REGISTER_FIX (fixNFTokenNegOffer, Supported::yes, VoteBehavior::Obsolete) | |
template<class... Args> | |
static uint256 | indexHash (LedgerNameSpace space, Args const &... args) |
uint256 | getBookBase (Book const &book) |
uint256 | getQualityNext (uint256 const &uBase) |
std::uint64_t | getQuality (uint256 const &uBase) |
uint256 | getTicketIndex (AccountID const &account, std::uint32_t ticketSeq) |
uint256 | getTicketIndex (AccountID const &account, SeqProxy ticketSeq) |
bool | isConsistent (Issue const &ac) |
std::string | to_string (Issue const &ac) |
std::ostream & | operator<< (std::ostream &os, Issue const &x) |
std::ostream & | operator<< (std::ostream &os, PublicKey const &pk) |
Print the public key to a stream. More... | |
template<> | |
std::optional< PublicKey > | parseBase58 (TokenType type, std::string const &s) |
Parse a secret key. More... | |
static std::optional< Slice > | sigPart (Slice &buf) |
static std::string | sliceToHex (Slice const &slice) |
std::optional< ECDSACanonicality > | ecdsaCanonicality (Slice const &sig) |
Determine whether a signature is canonical. More... | |
static bool | ed25519Canonical (Slice const &sig) |
bool | verifyDigest (PublicKey const &publicKey, uint256 const &digest, Slice const &sig, bool mustBeFullyCanonical=true) noexcept |
Verify a secp256k1 signature on the digest of a message. More... | |
bool | verify (PublicKey const &publicKey, Slice const &m, Slice const &sig, bool mustBeFullyCanonical=true) noexcept |
Verify a signature on a message. More... | |
NodeID | calcNodeID (PublicKey const &) |
Calculate the 160-bit node ID from a node public key. More... | |
Quality | composed_quality (Quality const &lhs, Quality const &rhs) |
STAmount | multiply (STAmount const &amount, Rate const &rate) |
STAmount | multiplyRound (STAmount const &amount, Rate const &rate, bool roundUp) |
STAmount | multiplyRound (STAmount const &amount, Rate const &rate, Issue const &issue, bool roundUp) |
STAmount | divide (STAmount const &amount, Rate const &rate) |
STAmount | divideRound (STAmount const &amount, Rate const &rate, bool roundUp) |
STAmount | divideRound (STAmount const &amount, Rate const &rate, Issue const &issue, bool roundUp) |
template<class = void> | |
secp256k1_context const * | secp256k1Context () |
SecretKey | randomSecretKey () |
Create a secret key using secure random numbers. More... | |
SecretKey | generateSecretKey (KeyType type, Seed const &seed) |
Generate a new secret key deterministically. More... | |
PublicKey | derivePublicKey (KeyType type, SecretKey const &sk) |
Derive the public key from a secret key. More... | |
std::pair< PublicKey, SecretKey > | generateKeyPair (KeyType type, Seed const &seed) |
Generate a key pair deterministically. More... | |
std::pair< PublicKey, SecretKey > | randomKeyPair (KeyType type) |
Create a key pair using secure random numbers. More... | |
Seed | randomSeed () |
Create a seed using secure random numbers. More... | |
Seed | generateSeed (std::string const &passPhrase) |
Generate a seed deterministically. More... | |
std::optional< Seed > | parseGenericSeed (std::string const &str, bool rfc1751=true) |
Attempt to parse a string as a seed. More... | |
std::string | seedAs1751 (Seed const &seed) |
Encode a Seed in RFC1751 format. More... | |
CONSTRUCT_UNTYPED_SFIELD (sfLedgerEntry, "LedgerEntry", LEDGERENTRY, 257) | |
CONSTRUCT_UNTYPED_SFIELD (sfTransaction, "Transaction", TRANSACTION, 257) | |
CONSTRUCT_UNTYPED_SFIELD (sfValidation, "Validation", VALIDATION, 257) | |
CONSTRUCT_UNTYPED_SFIELD (sfMetadata, "Metadata", METADATA, 257) | |
CONSTRUCT_TYPED_SFIELD (sfCloseResolution, "CloseResolution", UINT8, 1) | |
CONSTRUCT_TYPED_SFIELD (sfMethod, "Method", UINT8, 2) | |
CONSTRUCT_TYPED_SFIELD (sfTransactionResult, "TransactionResult", UINT8, 3) | |
CONSTRUCT_TYPED_SFIELD (sfTickSize, "TickSize", UINT8, 16) | |
CONSTRUCT_TYPED_SFIELD (sfUNLModifyDisabling, "UNLModifyDisabling", UINT8, 17) | |
CONSTRUCT_TYPED_SFIELD (sfHookResult, "HookResult", UINT8, 18) | |
CONSTRUCT_TYPED_SFIELD (sfLedgerEntryType, "LedgerEntryType", UINT16, 1, SField::sMD_Never) | |
CONSTRUCT_TYPED_SFIELD (sfTransactionType, "TransactionType", UINT16, 2) | |
CONSTRUCT_TYPED_SFIELD (sfSignerWeight, "SignerWeight", UINT16, 3) | |
CONSTRUCT_TYPED_SFIELD (sfTransferFee, "TransferFee", UINT16, 4) | |
CONSTRUCT_TYPED_SFIELD (sfVersion, "Version", UINT16, 16) | |
CONSTRUCT_TYPED_SFIELD (sfHookStateChangeCount, "HookStateChangeCount", UINT16, 17) | |
CONSTRUCT_TYPED_SFIELD (sfHookEmitCount, "HookEmitCount", UINT16, 18) | |
CONSTRUCT_TYPED_SFIELD (sfHookExecutionIndex, "HookExecutionIndex", UINT16, 19) | |
CONSTRUCT_TYPED_SFIELD (sfHookApiVersion, "HookApiVersion", UINT16, 20) | |
CONSTRUCT_TYPED_SFIELD (sfNetworkID, "NetworkID", UINT32, 1) | |
CONSTRUCT_TYPED_SFIELD (sfFlags, "Flags", UINT32, 2) | |
CONSTRUCT_TYPED_SFIELD (sfSourceTag, "SourceTag", UINT32, 3) | |
CONSTRUCT_TYPED_SFIELD (sfSequence, "Sequence", UINT32, 4) | |
CONSTRUCT_TYPED_SFIELD (sfPreviousTxnLgrSeq, "PreviousTxnLgrSeq", UINT32, 5, SField::sMD_DeleteFinal) | |
CONSTRUCT_TYPED_SFIELD (sfLedgerSequence, "LedgerSequence", UINT32, 6) | |
CONSTRUCT_TYPED_SFIELD (sfCloseTime, "CloseTime", UINT32, 7) | |
CONSTRUCT_TYPED_SFIELD (sfParentCloseTime, "ParentCloseTime", UINT32, 8) | |
CONSTRUCT_TYPED_SFIELD (sfSigningTime, "SigningTime", UINT32, 9) | |
CONSTRUCT_TYPED_SFIELD (sfExpiration, "Expiration", UINT32, 10) | |
CONSTRUCT_TYPED_SFIELD (sfTransferRate, "TransferRate", UINT32, 11) | |
CONSTRUCT_TYPED_SFIELD (sfWalletSize, "WalletSize", UINT32, 12) | |
CONSTRUCT_TYPED_SFIELD (sfOwnerCount, "OwnerCount", UINT32, 13) | |
CONSTRUCT_TYPED_SFIELD (sfDestinationTag, "DestinationTag", UINT32, 14) | |
CONSTRUCT_TYPED_SFIELD (sfHighQualityIn, "HighQualityIn", UINT32, 16) | |
CONSTRUCT_TYPED_SFIELD (sfHighQualityOut, "HighQualityOut", UINT32, 17) | |
CONSTRUCT_TYPED_SFIELD (sfLowQualityIn, "LowQualityIn", UINT32, 18) | |
CONSTRUCT_TYPED_SFIELD (sfLowQualityOut, "LowQualityOut", UINT32, 19) | |
CONSTRUCT_TYPED_SFIELD (sfQualityIn, "QualityIn", UINT32, 20) | |
CONSTRUCT_TYPED_SFIELD (sfQualityOut, "QualityOut", UINT32, 21) | |
CONSTRUCT_TYPED_SFIELD (sfStampEscrow, "StampEscrow", UINT32, 22) | |
CONSTRUCT_TYPED_SFIELD (sfBondAmount, "BondAmount", UINT32, 23) | |
CONSTRUCT_TYPED_SFIELD (sfLoadFee, "LoadFee", UINT32, 24) | |
CONSTRUCT_TYPED_SFIELD (sfOfferSequence, "OfferSequence", UINT32, 25) | |
CONSTRUCT_TYPED_SFIELD (sfFirstLedgerSequence, "FirstLedgerSequence", UINT32, 26) | |
CONSTRUCT_TYPED_SFIELD (sfLastLedgerSequence, "LastLedgerSequence", UINT32, 27) | |
CONSTRUCT_TYPED_SFIELD (sfTransactionIndex, "TransactionIndex", UINT32, 28) | |
CONSTRUCT_TYPED_SFIELD (sfOperationLimit, "OperationLimit", UINT32, 29) | |
CONSTRUCT_TYPED_SFIELD (sfReferenceFeeUnits, "ReferenceFeeUnits", UINT32, 30) | |
CONSTRUCT_TYPED_SFIELD (sfReserveBase, "ReserveBase", UINT32, 31) | |
CONSTRUCT_TYPED_SFIELD (sfReserveIncrement, "ReserveIncrement", UINT32, 32) | |
CONSTRUCT_TYPED_SFIELD (sfSetFlag, "SetFlag", UINT32, 33) | |
CONSTRUCT_TYPED_SFIELD (sfClearFlag, "ClearFlag", UINT32, 34) | |
CONSTRUCT_TYPED_SFIELD (sfSignerQuorum, "SignerQuorum", UINT32, 35) | |
CONSTRUCT_TYPED_SFIELD (sfCancelAfter, "CancelAfter", UINT32, 36) | |
CONSTRUCT_TYPED_SFIELD (sfFinishAfter, "FinishAfter", UINT32, 37) | |
CONSTRUCT_TYPED_SFIELD (sfSignerListID, "SignerListID", UINT32, 38) | |
CONSTRUCT_TYPED_SFIELD (sfSettleDelay, "SettleDelay", UINT32, 39) | |
CONSTRUCT_TYPED_SFIELD (sfTicketCount, "TicketCount", UINT32, 40) | |
CONSTRUCT_TYPED_SFIELD (sfTicketSequence, "TicketSequence", UINT32, 41) | |
CONSTRUCT_TYPED_SFIELD (sfNFTokenTaxon, "NFTokenTaxon", UINT32, 42) | |
CONSTRUCT_TYPED_SFIELD (sfMintedNFTokens, "MintedNFTokens", UINT32, 43) | |
CONSTRUCT_TYPED_SFIELD (sfBurnedNFTokens, "BurnedNFTokens", UINT32, 44) | |
CONSTRUCT_TYPED_SFIELD (sfHookStateCount, "HookStateCount", UINT32, 45) | |
CONSTRUCT_TYPED_SFIELD (sfEmitGeneration, "EmitGeneration", UINT32, 46) | |
CONSTRUCT_TYPED_SFIELD (sfFirstNFTokenSequence, "FirstNFTokenSequence", UINT32, 50) | |
CONSTRUCT_TYPED_SFIELD (sfIndexNext, "IndexNext", UINT64, 1) | |
CONSTRUCT_TYPED_SFIELD (sfIndexPrevious, "IndexPrevious", UINT64, 2) | |
CONSTRUCT_TYPED_SFIELD (sfBookNode, "BookNode", UINT64, 3) | |
CONSTRUCT_TYPED_SFIELD (sfOwnerNode, "OwnerNode", UINT64, 4) | |
CONSTRUCT_TYPED_SFIELD (sfBaseFee, "BaseFee", UINT64, 5) | |
CONSTRUCT_TYPED_SFIELD (sfExchangeRate, "ExchangeRate", UINT64, 6) | |
CONSTRUCT_TYPED_SFIELD (sfLowNode, "LowNode", UINT64, 7) | |
CONSTRUCT_TYPED_SFIELD (sfHighNode, "HighNode", UINT64, 8) | |
CONSTRUCT_TYPED_SFIELD (sfDestinationNode, "DestinationNode", UINT64, 9) | |
CONSTRUCT_TYPED_SFIELD (sfCookie, "Cookie", UINT64, 10) | |
CONSTRUCT_TYPED_SFIELD (sfServerVersion, "ServerVersion", UINT64, 11) | |
CONSTRUCT_TYPED_SFIELD (sfNFTokenOfferNode, "NFTokenOfferNode", UINT64, 12) | |
CONSTRUCT_TYPED_SFIELD (sfEmitBurden, "EmitBurden", UINT64, 13) | |
CONSTRUCT_TYPED_SFIELD (sfHookOn, "HookOn", UINT64, 16) | |
CONSTRUCT_TYPED_SFIELD (sfHookInstructionCount, "HookInstructionCount", UINT64, 17) | |
CONSTRUCT_TYPED_SFIELD (sfHookReturnCode, "HookReturnCode", UINT64, 18) | |
CONSTRUCT_TYPED_SFIELD (sfReferenceCount, "ReferenceCount", UINT64, 19) | |
CONSTRUCT_TYPED_SFIELD (sfEmailHash, "EmailHash", UINT128, 1) | |
CONSTRUCT_TYPED_SFIELD (sfTakerPaysCurrency, "TakerPaysCurrency", UINT160, 1) | |
CONSTRUCT_TYPED_SFIELD (sfTakerPaysIssuer, "TakerPaysIssuer", UINT160, 2) | |
CONSTRUCT_TYPED_SFIELD (sfTakerGetsCurrency, "TakerGetsCurrency", UINT160, 3) | |
CONSTRUCT_TYPED_SFIELD (sfTakerGetsIssuer, "TakerGetsIssuer", UINT160, 4) | |
CONSTRUCT_TYPED_SFIELD (sfLedgerHash, "LedgerHash", UINT256, 1) | |
CONSTRUCT_TYPED_SFIELD (sfParentHash, "ParentHash", UINT256, 2) | |
CONSTRUCT_TYPED_SFIELD (sfTransactionHash, "TransactionHash", UINT256, 3) | |
CONSTRUCT_TYPED_SFIELD (sfAccountHash, "AccountHash", UINT256, 4) | |
CONSTRUCT_TYPED_SFIELD (sfPreviousTxnID, "PreviousTxnID", UINT256, 5, SField::sMD_DeleteFinal) | |
CONSTRUCT_TYPED_SFIELD (sfLedgerIndex, "LedgerIndex", UINT256, 6) | |
CONSTRUCT_TYPED_SFIELD (sfWalletLocator, "WalletLocator", UINT256, 7) | |
CONSTRUCT_TYPED_SFIELD (sfRootIndex, "RootIndex", UINT256, 8, SField::sMD_Always) | |
CONSTRUCT_TYPED_SFIELD (sfAccountTxnID, "AccountTxnID", UINT256, 9) | |
CONSTRUCT_TYPED_SFIELD (sfNFTokenID, "NFTokenID", UINT256, 10) | |
CONSTRUCT_TYPED_SFIELD (sfEmitParentTxnID, "EmitParentTxnID", UINT256, 11) | |
CONSTRUCT_TYPED_SFIELD (sfEmitNonce, "EmitNonce", UINT256, 12) | |
CONSTRUCT_TYPED_SFIELD (sfEmitHookHash, "EmitHookHash", UINT256, 13) | |
CONSTRUCT_TYPED_SFIELD (sfBookDirectory, "BookDirectory", UINT256, 16) | |
CONSTRUCT_TYPED_SFIELD (sfInvoiceID, "InvoiceID", UINT256, 17) | |
CONSTRUCT_TYPED_SFIELD (sfNickname, "Nickname", UINT256, 18) | |
CONSTRUCT_TYPED_SFIELD (sfAmendment, "Amendment", UINT256, 19) | |
CONSTRUCT_TYPED_SFIELD (sfDigest, "Digest", UINT256, 21) | |
CONSTRUCT_TYPED_SFIELD (sfChannel, "Channel", UINT256, 22) | |
CONSTRUCT_TYPED_SFIELD (sfConsensusHash, "ConsensusHash", UINT256, 23) | |
CONSTRUCT_TYPED_SFIELD (sfCheckID, "CheckID", UINT256, 24) | |
CONSTRUCT_TYPED_SFIELD (sfValidatedHash, "ValidatedHash", UINT256, 25) | |
CONSTRUCT_TYPED_SFIELD (sfPreviousPageMin, "PreviousPageMin", UINT256, 26) | |
CONSTRUCT_TYPED_SFIELD (sfNextPageMin, "NextPageMin", UINT256, 27) | |
CONSTRUCT_TYPED_SFIELD (sfNFTokenBuyOffer, "NFTokenBuyOffer", UINT256, 28) | |
CONSTRUCT_TYPED_SFIELD (sfNFTokenSellOffer, "NFTokenSellOffer", UINT256, 29) | |
CONSTRUCT_TYPED_SFIELD (sfHookStateKey, "HookStateKey", UINT256, 30) | |
CONSTRUCT_TYPED_SFIELD (sfHookHash, "HookHash", UINT256, 31) | |
CONSTRUCT_TYPED_SFIELD (sfHookNamespace, "HookNamespace", UINT256, 32) | |
CONSTRUCT_TYPED_SFIELD (sfHookSetTxnID, "HookSetTxnID", UINT256, 33) | |
CONSTRUCT_TYPED_SFIELD (sfAmount, "Amount", AMOUNT, 1) | |
CONSTRUCT_TYPED_SFIELD (sfBalance, "Balance", AMOUNT, 2) | |
CONSTRUCT_TYPED_SFIELD (sfLimitAmount, "LimitAmount", AMOUNT, 3) | |
CONSTRUCT_TYPED_SFIELD (sfTakerPays, "TakerPays", AMOUNT, 4) | |
CONSTRUCT_TYPED_SFIELD (sfTakerGets, "TakerGets", AMOUNT, 5) | |
CONSTRUCT_TYPED_SFIELD (sfLowLimit, "LowLimit", AMOUNT, 6) | |
CONSTRUCT_TYPED_SFIELD (sfHighLimit, "HighLimit", AMOUNT, 7) | |
CONSTRUCT_TYPED_SFIELD (sfFee, "Fee", AMOUNT, 8) | |
CONSTRUCT_TYPED_SFIELD (sfSendMax, "SendMax", AMOUNT, 9) | |
CONSTRUCT_TYPED_SFIELD (sfDeliverMin, "DeliverMin", AMOUNT, 10) | |
CONSTRUCT_TYPED_SFIELD (sfMinimumOffer, "MinimumOffer", AMOUNT, 16) | |
CONSTRUCT_TYPED_SFIELD (sfRippleEscrow, "RippleEscrow", AMOUNT, 17) | |
CONSTRUCT_TYPED_SFIELD (sfDeliveredAmount, "DeliveredAmount", AMOUNT, 18) | |
CONSTRUCT_TYPED_SFIELD (sfNFTokenBrokerFee, "NFTokenBrokerFee", AMOUNT, 19) | |
CONSTRUCT_TYPED_SFIELD (sfBaseFeeDrops, "BaseFeeDrops", AMOUNT, 22) | |
CONSTRUCT_TYPED_SFIELD (sfReserveBaseDrops, "ReserveBaseDrops", AMOUNT, 23) | |
CONSTRUCT_TYPED_SFIELD (sfReserveIncrementDrops, "ReserveIncrementDrops", AMOUNT, 24) | |
CONSTRUCT_TYPED_SFIELD (sfPublicKey, "PublicKey", VL, 1) | |
CONSTRUCT_TYPED_SFIELD (sfMessageKey, "MessageKey", VL, 2) | |
CONSTRUCT_TYPED_SFIELD (sfSigningPubKey, "SigningPubKey", VL, 3) | |
CONSTRUCT_TYPED_SFIELD (sfTxnSignature, "TxnSignature", VL, 4, SField::sMD_Default, SField::notSigning) | |
CONSTRUCT_TYPED_SFIELD (sfURI, "URI", VL, 5) | |
CONSTRUCT_TYPED_SFIELD (sfSignature, "Signature", VL, 6, SField::sMD_Default, SField::notSigning) | |
CONSTRUCT_TYPED_SFIELD (sfDomain, "Domain", VL, 7) | |
CONSTRUCT_TYPED_SFIELD (sfFundCode, "FundCode", VL, 8) | |
CONSTRUCT_TYPED_SFIELD (sfRemoveCode, "RemoveCode", VL, 9) | |
CONSTRUCT_TYPED_SFIELD (sfExpireCode, "ExpireCode", VL, 10) | |
CONSTRUCT_TYPED_SFIELD (sfCreateCode, "CreateCode", VL, 11) | |
CONSTRUCT_TYPED_SFIELD (sfMemoType, "MemoType", VL, 12) | |
CONSTRUCT_TYPED_SFIELD (sfMemoData, "MemoData", VL, 13) | |
CONSTRUCT_TYPED_SFIELD (sfMemoFormat, "MemoFormat", VL, 14) | |
CONSTRUCT_TYPED_SFIELD (sfFulfillment, "Fulfillment", VL, 16) | |
CONSTRUCT_TYPED_SFIELD (sfCondition, "Condition", VL, 17) | |
CONSTRUCT_TYPED_SFIELD (sfMasterSignature, "MasterSignature", VL, 18, SField::sMD_Default, SField::notSigning) | |
CONSTRUCT_TYPED_SFIELD (sfUNLModifyValidator, "UNLModifyValidator", VL, 19) | |
CONSTRUCT_TYPED_SFIELD (sfValidatorToDisable, "ValidatorToDisable", VL, 20) | |
CONSTRUCT_TYPED_SFIELD (sfValidatorToReEnable, "ValidatorToReEnable", VL, 21) | |
CONSTRUCT_TYPED_SFIELD (sfHookStateData, "HookStateData", VL, 22) | |
CONSTRUCT_TYPED_SFIELD (sfHookReturnString, "HookReturnString", VL, 23) | |
CONSTRUCT_TYPED_SFIELD (sfHookParameterName, "HookParameterName", VL, 24) | |
CONSTRUCT_TYPED_SFIELD (sfHookParameterValue, "HookParameterValue", VL, 25) | |
CONSTRUCT_TYPED_SFIELD (sfAccount, "Account", ACCOUNT, 1) | |
CONSTRUCT_TYPED_SFIELD (sfOwner, "Owner", ACCOUNT, 2) | |
CONSTRUCT_TYPED_SFIELD (sfDestination, "Destination", ACCOUNT, 3) | |
CONSTRUCT_TYPED_SFIELD (sfIssuer, "Issuer", ACCOUNT, 4) | |
CONSTRUCT_TYPED_SFIELD (sfAuthorize, "Authorize", ACCOUNT, 5) | |
CONSTRUCT_TYPED_SFIELD (sfUnauthorize, "Unauthorize", ACCOUNT, 6) | |
CONSTRUCT_TYPED_SFIELD (sfRegularKey, "RegularKey", ACCOUNT, 8) | |
CONSTRUCT_TYPED_SFIELD (sfNFTokenMinter, "NFTokenMinter", ACCOUNT, 9) | |
CONSTRUCT_TYPED_SFIELD (sfEmitCallback, "EmitCallback", ACCOUNT, 10) | |
CONSTRUCT_TYPED_SFIELD (sfHookAccount, "HookAccount", ACCOUNT, 16) | |
CONSTRUCT_TYPED_SFIELD (sfIndexes, "Indexes", VECTOR256, 1, SField::sMD_Never) | |
CONSTRUCT_TYPED_SFIELD (sfHashes, "Hashes", VECTOR256, 2) | |
CONSTRUCT_TYPED_SFIELD (sfAmendments, "Amendments", VECTOR256, 3) | |
CONSTRUCT_TYPED_SFIELD (sfNFTokenOffers, "NFTokenOffers", VECTOR256, 4) | |
CONSTRUCT_UNTYPED_SFIELD (sfPaths, "Paths", PATHSET, 1) | |
CONSTRUCT_UNTYPED_SFIELD (sfTransactionMetaData, "TransactionMetaData", OBJECT, 2) | |
CONSTRUCT_UNTYPED_SFIELD (sfCreatedNode, "CreatedNode", OBJECT, 3) | |
CONSTRUCT_UNTYPED_SFIELD (sfDeletedNode, "DeletedNode", OBJECT, 4) | |
CONSTRUCT_UNTYPED_SFIELD (sfModifiedNode, "ModifiedNode", OBJECT, 5) | |
CONSTRUCT_UNTYPED_SFIELD (sfPreviousFields, "PreviousFields", OBJECT, 6) | |
CONSTRUCT_UNTYPED_SFIELD (sfFinalFields, "FinalFields", OBJECT, 7) | |
CONSTRUCT_UNTYPED_SFIELD (sfNewFields, "NewFields", OBJECT, 8) | |
CONSTRUCT_UNTYPED_SFIELD (sfTemplateEntry, "TemplateEntry", OBJECT, 9) | |
CONSTRUCT_UNTYPED_SFIELD (sfMemo, "Memo", OBJECT, 10) | |
CONSTRUCT_UNTYPED_SFIELD (sfSignerEntry, "SignerEntry", OBJECT, 11) | |
CONSTRUCT_UNTYPED_SFIELD (sfNFToken, "NFToken", OBJECT, 12) | |
CONSTRUCT_UNTYPED_SFIELD (sfEmitDetails, "EmitDetails", OBJECT, 13) | |
CONSTRUCT_UNTYPED_SFIELD (sfHook, "Hook", OBJECT, 14) | |
CONSTRUCT_UNTYPED_SFIELD (sfSigner, "Signer", OBJECT, 16) | |
CONSTRUCT_UNTYPED_SFIELD (sfMajority, "Majority", OBJECT, 18) | |
CONSTRUCT_UNTYPED_SFIELD (sfDisabledValidator, "DisabledValidator", OBJECT, 19) | |
CONSTRUCT_UNTYPED_SFIELD (sfEmittedTxn, "EmittedTxn", OBJECT, 20) | |
CONSTRUCT_UNTYPED_SFIELD (sfHookExecution, "HookExecution", OBJECT, 21) | |
CONSTRUCT_UNTYPED_SFIELD (sfHookDefinition, "HookDefinition", OBJECT, 22) | |
CONSTRUCT_UNTYPED_SFIELD (sfHookParameter, "HookParameter", OBJECT, 23) | |
CONSTRUCT_UNTYPED_SFIELD (sfHookGrant, "HookGrant", OBJECT, 24) | |
CONSTRUCT_UNTYPED_SFIELD (sfSigners, "Signers", ARRAY, 3, SField::sMD_Default, SField::notSigning) | |
CONSTRUCT_UNTYPED_SFIELD (sfSignerEntries, "SignerEntries", ARRAY, 4) | |
CONSTRUCT_UNTYPED_SFIELD (sfTemplate, "Template", ARRAY, 5) | |
CONSTRUCT_UNTYPED_SFIELD (sfNecessary, "Necessary", ARRAY, 6) | |
CONSTRUCT_UNTYPED_SFIELD (sfSufficient, "Sufficient", ARRAY, 7) | |
CONSTRUCT_UNTYPED_SFIELD (sfAffectedNodes, "AffectedNodes", ARRAY, 8) | |
CONSTRUCT_UNTYPED_SFIELD (sfMemos, "Memos", ARRAY, 9) | |
CONSTRUCT_UNTYPED_SFIELD (sfNFTokens, "NFTokens", ARRAY, 10) | |
CONSTRUCT_UNTYPED_SFIELD (sfHooks, "Hooks", ARRAY, 11) | |
CONSTRUCT_UNTYPED_SFIELD (sfMajorities, "Majorities", ARRAY, 16) | |
CONSTRUCT_UNTYPED_SFIELD (sfDisabledValidators, "DisabledValidators", ARRAY, 17) | |
CONSTRUCT_UNTYPED_SFIELD (sfHookExecutions, "HookExecutions", ARRAY, 18) | |
CONSTRUCT_UNTYPED_SFIELD (sfHookParameters, "HookParameters", ARRAY, 19) | |
CONSTRUCT_UNTYPED_SFIELD (sfHookGrants, "HookGrants", ARRAY, 20) | |
void | sign (STObject &st, HashPrefix const &prefix, KeyType type, SecretKey const &sk, SF_VL const &sigField=sfSignature) |
Sign an STObject. More... | |
bool | verify (STObject const &st, HashPrefix const &prefix, PublicKey const &pk, SF_VL const &sigField=sfSignature) |
Returns true if STObject contains valid signature. More... | |
Serializer | buildMultiSigningData (STObject const &obj, AccountID const &signingID) |
Return a Serializer suitable for computing a multisigning TxnSignature. More... | |
Serializer | startMultiSigningData (STObject const &obj) |
Break the multi-signing hash computation into 2 parts for optimization. More... | |
bool | getSTAmountCanonicalizeSwitchover () |
void | setSTAmountCanonicalizeSwitchover (bool v) |
static std::int64_t | getSNValue (STAmount const &amount) |
static bool | areComparable (STAmount const &v1, STAmount const &v2) |
STAmount | operator+ (STAmount const &v1, STAmount const &v2) |
STAmount | operator- (STAmount const &v1, STAmount const &v2) |
std::uint64_t | getRate (STAmount const &offerOut, STAmount const &offerIn) |
STAmount | amountFromQuality (std::uint64_t rate) |
STAmount | amountFromString (Issue const &issue, std::string const &amount) |
STAmount | amountFromJson (SField const &name, Json::Value const &v) |
bool | amountFromJsonNoThrow (STAmount &result, Json::Value const &jvSource) |
bool | operator== (STAmount const &lhs, STAmount const &rhs) |
bool | operator< (STAmount const &lhs, STAmount const &rhs) |
STAmount | operator- (STAmount const &value) |
static std::uint64_t | muldiv (std::uint64_t multiplier, std::uint64_t multiplicand, std::uint64_t divisor) |
static std::uint64_t | muldiv_round (std::uint64_t multiplier, std::uint64_t multiplicand, std::uint64_t divisor, std::uint64_t rounding) |
STAmount | divide (STAmount const &num, STAmount const &den, Issue const &issue) |
STAmount | multiply (STAmount const &v1, STAmount const &v2, Issue const &issue) |
static void | canonicalizeRound (bool native, std::uint64_t &value, int &offset) |
STAmount | mulRound (STAmount const &v1, STAmount const &v2, Issue const &issue, bool roundUp) |
STAmount | divRound (STAmount const &num, STAmount const &den, Issue const &issue, bool roundUp) |
std::ostream & | operator<< (std::ostream &out, const STBase &t) |
static auto | getTxFormat (TxType type) |
static Blob | getSigningData (STTx const &that) |
static bool | isMemoOkay (STObject const &st, std::string &reason) |
static bool | isAccountFieldOkay (STObject const &st) |
bool | passesLocalChecks (STObject const &st, std::string &reason) |
std::shared_ptr< STTx const > | sterilize (STTx const &stx) |
Sterilize a transaction. More... | |
bool | isPseudoTx (STObject const &tx) |
Check whether a transaction is a pseudo-transaction. More... | |
bool | transResultInfo (TER code, std::string &token, std::string &text) |
std::string | transToken (TER code) |
std::string | transHuman (TER code) |
std::optional< TER > | transCode (std::string const &token) |
template<class Hasher > | |
static Hasher::result_type | digest (void const *data, std::size_t size) noexcept |
template<class Hasher , class T , std::size_t N, class = std::enable_if_t<sizeof(T) == 1>> | |
static Hasher::result_type | digest (std::array< T, N > const &v) |
template<class Hasher , class... Args> | |
static Hasher::result_type | digest2 (Args const &... args) |
static void | checksum (void *out, void const *message, std::size_t size) |
Calculate a 4-byte checksum of the data. More... | |
std::string | encodeBase58Token (TokenType type, void const *token, std::size_t size) |
Encode data in Base58Check format using XRPL alphabet. More... | |
std::string | decodeBase58Token (std::string const &s, TokenType type) |
Decode a token of given type encoded using Base58Check and the XRPL alphabet. More... | |
bool | to_currency (Currency &, std::string const &) |
Tries to convert a string to a Currency, returns true on success. More... | |
Currency | to_currency (std::string const &) |
Tries to convert a string to a Currency, returns noCurrency() on failure. More... | |
Currency const & | xrpCurrency () |
XRP currency. More... | |
Currency const & | noCurrency () |
A placeholder for empty currencies. More... | |
Currency const & | badCurrency () |
We deliberately disallow the currency that looks like "XRP" because too many people were using it instead of the correct XRP currency. More... | |
template<class Hasher > | |
void | hash_append (Hasher &h, Issue const &r) |
Issue const & | xrpIssue () |
Returns an asset specifier that represents XRP. More... | |
Issue const & | noIssue () |
Returns an asset specifier that represents no account and currency. More... | |
std::optional< KeyType > | keyTypeFromString (std::string const &s) |
char const * | to_string (KeyType type) |
template<class Stream > | |
Stream & | operator<< (Stream &s, KeyType type) |
void | serializePayChanAuthorization (Serializer &msg, uint256 const &key, XRPAmount const &amt) |
bool | operator== (PublicKey const &lhs, PublicKey const &rhs) |
bool | operator< (PublicKey const &lhs, PublicKey const &rhs) |
template<class Hasher > | |
void | hash_append (Hasher &h, PublicKey const &pk) |
std::string | toBase58 (TokenType type, PublicKey const &pk) |
bool | operator== (Rate const &lhs, Rate const &rhs) noexcept |
bool | operator< (Rate const &lhs, Rate const &rhs) noexcept |
std::ostream & | operator<< (std::ostream &os, Rate const &rate) |
bool | operator== (SecretKey const &lhs, SecretKey const &rhs) |
bool | operator!= (SecretKey const &lhs, SecretKey const &rhs) |
std::string | toBase58 (TokenType type, SecretKey const &sk) |
std::string | toBase58 (Seed const &seed) |
Format a seed as a Base58 string. More... | |
int | field_code (SerializedTypeID id, int index) |
int | field_code (int id, int index) |
template<class T > | |
OptionaledField< T > | operator~ (TypedField< T > const &f) |
void | finishMultiSigningData (AccountID const &signingID, Serializer &s) |
STAmount const & | toSTAmount (STAmount const &a) |
bool | isLegalNet (STAmount const &value) |
bool | operator!= (STAmount const &lhs, STAmount const &rhs) |
bool | operator> (STAmount const &lhs, STAmount const &rhs) |
bool | operator<= (STAmount const &lhs, STAmount const &rhs) |
bool | operator>= (STAmount const &lhs, STAmount const &rhs) |
bool | isXRP (STAmount const &amount) |
template<class U , class T > | |
void | set (STObject &st, TypedField< U > const &f, T &&t) |
Set a field value in an STObject. More... | |
template<class Init > | |
void | set (STObject &st, TypedField< STBlob > const &f, std::size_t size, Init &&init) |
Set a blob field using an init function. More... | |
template<class = void> | |
void | set (STObject &st, TypedField< STBlob > const &f, void const *data, std::size_t size) |
Set a blob field from data. More... | |
template<class U > | |
void | erase (STObject &st, TypedField< U > const &f) |
Remove a field in an STObject. More... | |
void | throwFieldNotFound (SField const &field) |
static std::string const & | systemName () |
bool | isLegalAmount (XRPAmount const &amount) |
Returns true if the amount does not exceed the initial XRP in existence. More... | |
bool | isLegalAmountSigned (XRPAmount const &amount) |
Returns true if the absolute value of the amount does not exceed the initial XRP in existence. More... | |
static std::string const & | systemCurrencyCode () |
constexpr TERUnderlyingType | TERtoInt (TELcodes v) |
constexpr TERUnderlyingType | TERtoInt (TEMcodes v) |
constexpr TERUnderlyingType | TERtoInt (TEFcodes v) |
constexpr TERUnderlyingType | TERtoInt (TERcodes v) |
constexpr TERUnderlyingType | TERtoInt (TEScodes v) |
constexpr TERUnderlyingType | TERtoInt (TECcodes v) |
template<typename L , typename R > | |
constexpr auto | operator== (L const &lhs, R const &rhs) -> std::enable_if_t< std::is_same< decltype(TERtoInt(lhs)), int >::value &&std::is_same< decltype(TERtoInt(rhs)), int >::value, bool > |
template<typename L , typename R > | |
constexpr auto | operator!= (L const &lhs, R const &rhs) -> std::enable_if_t< std::is_same< decltype(TERtoInt(lhs)), int >::value &&std::is_same< decltype(TERtoInt(rhs)), int >::value, bool > |
template<typename L , typename R > | |
constexpr auto | operator< (L const &lhs, R const &rhs) -> std::enable_if_t< std::is_same< decltype(TERtoInt(lhs)), int >::value &&std::is_same< decltype(TERtoInt(rhs)), int >::value, bool > |
template<typename L , typename R > | |
constexpr auto | operator<= (L const &lhs, R const &rhs) -> std::enable_if_t< std::is_same< decltype(TERtoInt(lhs)), int >::value &&std::is_same< decltype(TERtoInt(rhs)), int >::value, bool > |
template<typename L , typename R > | |
constexpr auto | operator> (L const &lhs, R const &rhs) -> std::enable_if_t< std::is_same< decltype(TERtoInt(lhs)), int >::value &&std::is_same< decltype(TERtoInt(rhs)), int >::value, bool > |
template<typename L , typename R > | |
constexpr auto | operator>= (L const &lhs, R const &rhs) -> std::enable_if_t< std::is_same< decltype(TERtoInt(lhs)), int >::value &&std::is_same< decltype(TERtoInt(rhs)), int >::value, bool > |
bool | isTelLocal (TER x) |
bool | isTemMalformed (TER x) |
bool | isTefFailure (TER x) |
bool | isTerRetry (TER x) |
bool | isTesSuccess (TER x) |
bool | isTecClaim (TER x) |
std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > | doLedgerGrpc (RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > &context) |
std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > | doLedgerEntryGrpc (RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > &context) |
std::pair< org::xrpl::rpc::v1::GetLedgerDataResponse, grpc::Status > | doLedgerDataGrpc (RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDataRequest > &context) |
std::pair< org::xrpl::rpc::v1::GetLedgerDiffResponse, grpc::Status > | doLedgerDiffGrpc (RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDiffRequest > &context) |
void | addChannel (Json::Value &jsonLines, SLE const &line) |
Json::Value | doAccountChannels (RPC::JsonContext &context) |
Json::Value | doAccountCurrencies (RPC::JsonContext &context) |
Json::Value | doAccountInfo (RPC::JsonContext &context) |
void | addLine (Json::Value &jsonLines, RPCTrustLine const &line) |
Json::Value | doAccountLines (RPC::JsonContext &context) |
Json::Value | doAccountNFTs (RPC::JsonContext &context) |
General RPC command that can retrieve objects in the account root. More... | |
Json::Value | doAccountObjects (RPC::JsonContext &context) |
void | appendOfferJson (std::shared_ptr< SLE const > const &offer, Json::Value &offers) |
Json::Value | doAccountOffers (RPC::JsonContext &context) |
std::variant< std::optional< LedgerSpecifier >, Json::Value > | parseLedgerArgs (Json::Value const ¶ms) |
std::variant< LedgerRange, RPC::Status > | getLedgerRange (RPC::Context &context, std::optional< LedgerSpecifier > const &ledgerSpecifier) |
std::pair< AccountTxResult, RPC::Status > | doAccountTxHelp (RPC::Context &context, AccountTxArgs const &args) |
Json::Value | populateJsonResponse (std::pair< AccountTxResult, RPC::Status > const &res, AccountTxArgs const &args, RPC::JsonContext const &context) |
Json::Value | doAccountTxJson (RPC::JsonContext &context) |
Json::Value | doBlackList (RPC::JsonContext &context) |
Json::Value | doBookOffers (RPC::JsonContext &context) |
Json::Value | doBookChanges (RPC::JsonContext &context) |
Json::Value | doCanDelete (RPC::JsonContext &context) |
Json::Value | doConnect (RPC::JsonContext &context) |
Json::Value | doConsensusInfo (RPC::JsonContext &context) |
Json::Value | doCrawlShards (RPC::JsonContext &context) |
RPC command that reports stored shards by nodes. More... | |
Json::Value | doDepositAuthorized (RPC::JsonContext &context) |
Json::Value | doDownloadShard (RPC::JsonContext &context) |
RPC command that downloads and import shard archives. More... | |
Json::Value | doFeature (RPC::JsonContext &context) |
Json::Value | doFee (RPC::JsonContext &context) |
Json::Value | doFetchInfo (RPC::JsonContext &context) |
Json::Value | doGatewayBalances (RPC::JsonContext &context) |
static void | textTime (std::string &text, UptimeClock::time_point &seconds, const char *unitName, std::chrono::seconds unitVal) |
Json::Value | getCountsJson (Application &app, int minObjectCount) |
Json::Value | doGetCounts (RPC::JsonContext &context) |
Json::Value | doChannelAuthorize (RPC::JsonContext &) |
Json::Value | doChannelVerify (RPC::JsonContext &) |
Json::Value | doLedgerAccept (RPC::JsonContext &) |
Json::Value | doLedgerCleaner (RPC::JsonContext &) |
Json::Value | doLedgerClosed (RPC::JsonContext &) |
Json::Value | doLedgerCurrent (RPC::JsonContext &) |
Json::Value | doLedgerData (RPC::JsonContext &) |
Json::Value | doLedgerEntry (RPC::JsonContext &) |
Json::Value | doLedgerHeader (RPC::JsonContext &) |
Json::Value | doLedgerRequest (RPC::JsonContext &) |
Json::Value | doLogLevel (RPC::JsonContext &) |
Json::Value | doLogRotate (RPC::JsonContext &) |
Json::Value | doManifest (RPC::JsonContext &) |
Json::Value | doNFTBuyOffers (RPC::JsonContext &) |
Json::Value | doNFTSellOffers (RPC::JsonContext &) |
Json::Value | doNodeToShard (RPC::JsonContext &) |
Json::Value | doNoRippleCheck (RPC::JsonContext &) |
Json::Value | doOwnerInfo (RPC::JsonContext &) |
Json::Value | doPathFind (RPC::JsonContext &) |
Json::Value | doPause (RPC::JsonContext &) |
Json::Value | doPeers (RPC::JsonContext &) |
Json::Value | doPing (RPC::JsonContext &) |
Json::Value | doPrint (RPC::JsonContext &) |
Json::Value | doRandom (RPC::JsonContext &) |
Json::Value | doResume (RPC::JsonContext &) |
Json::Value | doPeerReservationsAdd (RPC::JsonContext &) |
Json::Value | doPeerReservationsDel (RPC::JsonContext &) |
Json::Value | doPeerReservationsList (RPC::JsonContext &) |
Json::Value | doRipplePathFind (RPC::JsonContext &) |
Json::Value | doServerInfo (RPC::JsonContext &) |
Json::Value | doServerState (RPC::JsonContext &) |
Json::Value | doSign (RPC::JsonContext &) |
Json::Value | doSignFor (RPC::JsonContext &) |
Json::Value | doStop (RPC::JsonContext &) |
Json::Value | doSubmit (RPC::JsonContext &) |
Json::Value | doSubmitMultiSigned (RPC::JsonContext &) |
Json::Value | doSubscribe (RPC::JsonContext &) |
Json::Value | doTransactionEntry (RPC::JsonContext &) |
Json::Value | doTxJson (RPC::JsonContext &) |
Json::Value | doTxHistory (RPC::JsonContext &) |
Json::Value | doTxReduceRelay (RPC::JsonContext &) |
Json::Value | doUnlList (RPC::JsonContext &) |
Json::Value | doUnsubscribe (RPC::JsonContext &) |
Json::Value | doValidationCreate (RPC::JsonContext &) |
Json::Value | doWalletPropose (RPC::JsonContext &) |
Json::Value | doValidators (RPC::JsonContext &) |
Json::Value | doValidatorListSites (RPC::JsonContext &) |
Json::Value | doValidatorInfo (RPC::JsonContext &) |
static void | appendNftOfferJson (Application const &app, std::shared_ptr< SLE const > const &offer, Json::Value &offers) |
static Json::Value | enumerateNFTOffers (RPC::JsonContext &context, uint256 const &nftId, Keylet const &directory) |
static void | fillTransaction (RPC::JsonContext &context, Json::Value &txArray, AccountID const &accountID, std::uint32_t &sequence, ReadView const &ledger) |
static NetworkOPs::FailHard | getFailHard (RPC::JsonContext const &context) |
static bool | isValidated (LedgerMaster &ledgerMaster, std::uint32_t seq, uint256 const &hash) |
std::pair< TxResult, RPC::Status > | doTxPostgres (RPC::Context &context, TxArgs const &args) |
std::pair< TxResult, RPC::Status > | doTxHelp (RPC::Context &context, TxArgs const &args) |
Json::Value | populateJsonResponse (std::pair< TxResult, RPC::Status > const &res, TxArgs const &args, RPC::JsonContext const &context) |
static std::optional< Seed > | validationSeed (Json::Value const ¶ms) |
double | estimate_entropy (std::string const &input) |
Json::Value | walletPropose (Json::Value const ¶ms) |
bool | passwordUnrequiredOrSentCorrect (Port const &port, Json::Value const ¶ms) |
bool | ipAllowed (beast::IP::Address const &remoteIp, std::vector< boost::asio::ip::network_v4 > const &nets4, std::vector< boost::asio::ip::network_v6 > const &nets6) |
True if remoteIp is in any of adminIp. More... | |
bool | isAdmin (Port const &port, Json::Value const ¶ms, beast::IP::Address const &remoteIp) |
Role | requestRole (Role const &required, Port const &port, Json::Value const ¶ms, beast::IP::Endpoint const &remoteIp, boost::string_view const &user) |
Return the allowed privilege role. More... | |
bool | isUnlimited (Role const &role) |
ADMIN and IDENTIFIED roles shall have unlimited resources. More... | |
bool | isUnlimited (Role const &required, Port const &port, Json::Value const ¶ms, beast::IP::Endpoint const &remoteIp, std::string const &user) |
Resource::Consumer | requestInboundEndpoint (Resource::Manager &manager, beast::IP::Endpoint const &remoteAddress, Role const &role, boost::string_view const &user, boost::string_view const &forwardedFor) |
static boost::string_view | extractIpAddrFromField (boost::string_view field) |
boost::string_view | forwardedFor (http_request_type const &request) |
static bool | isStatusRequest (http_request_type const &request) |
static Handoff | statusRequestResponse (http_request_type const &request, boost::beast::http::status status) |
static bool | authorized (Port const &port, std::map< std::string, std::string > const &h) |
static Json::Output | makeOutput (Session &session) |
static std::map< std::string, std::string > | build_map (boost::beast::http::fields const &h) |
template<class ConstBufferSequence > | |
static std::string | buffers_to_string (ConstBufferSequence const &bs) |
template<class T > | |
void | logDuration (Json::Value const &request, T const &duration, beast::Journal &journal) |
static Json::Value | make_json_error (Json::Int code, Json::Value &&message) |
static Port | to_Port (ParsedPort const &parsed, std::ostream &log) |
static std::vector< Port > | parse_Ports (Config const &config, std::ostream &log) |
static void | setup_Client (ServerHandler::Setup &setup) |
static void | setup_Overlay (ServerHandler::Setup &setup) |
ServerHandler::Setup | setup_ServerHandler (Config const &config, std::ostream &&log) |
std::unique_ptr< ServerHandler > | make_ServerHandler (Application &app, boost::asio::io_service &io_service, JobQueue &jobQueue, NetworkOPs &networkOPs, Resource::Manager &resourceManager, CollectorManager &cm) |
bool | operator< (Port const &lhs, Port const &rhs) |
std::string | getHTTPHeaderTimestamp () |
void | HTTPReply (int nStatus, std::string const &content, Json::Output const &output, beast::Journal j) |
template<class T > | |
decltype(auto) | get_lowest_layer (T &t) noexcept |
std::ostream & | operator<< (std::ostream &os, Port const &p) |
static void | populate (Section const §ion, std::string const &field, std::ostream &log, std::vector< boost::asio::ip::network_v4 > &nets4, std::vector< boost::asio::ip::network_v6 > &nets6) |
void | parse_Port (ParsedPort &port, Section const §ion, std::ostream &log) |
template<class Handler > | |
std::unique_ptr< Server > | make_Server (Handler &handler, boost::asio::io_service &io_service, beast::Journal journal) |
Create the HTTP server using the specified handler. More... | |
std::shared_ptr< SHAMapLeafNode > | makeTypedLeaf (SHAMapNodeType type, boost::intrusive_ptr< SHAMapItem const > item, std::uint32_t owner) |
static uint256 const & | depthMask (unsigned int depth) |
unsigned int | selectBranch (SHAMapNodeID const &id, uint256 const &hash) |
Returns the branch that would contain the given hash. More... | |
static NodeStore::Database & | getShardStore (Application &app) |
bool | operator== (SHAMap::const_iterator const &x, SHAMap::const_iterator const &y) |
bool | operator!= (SHAMap::const_iterator const &x, SHAMap::const_iterator const &y) |
void | intrusive_ptr_add_ref (SHAMapItem const *x) |
void | intrusive_ptr_release (SHAMapItem const *x) |
boost::intrusive_ptr< SHAMapItem > | make_shamapitem (uint256 const &tag, Slice data) |
boost::intrusive_ptr< SHAMapItem > | make_shamapitem (SHAMapItem const &other) |
std::string | to_string (SHAMapType t) |
std::string | to_string (SHAMapNodeID const &node) |
std::ostream & | operator<< (std::ostream &out, SHAMapNodeID const &node) |
BEAST_DEFINE_TESTSUITE (AccountTxPaging, app, ripple) | |
BEAST_DEFINE_TESTSUITE (AmendmentTable, app, ripple) | |
BEAST_DEFINE_TESTSUITE (Check, tx, ripple) | |
BEAST_DEFINE_TESTSUITE (Discrepancy, app, ripple) | |
BEAST_DEFINE_TESTSUITE (Freeze, app, ripple) | |
BEAST_DEFINE_TESTSUITE (LedgerLoad, app, ripple) | |
BEAST_DEFINE_TESTSUITE (LoadFeeTrack, ripple_core, ripple) | |
BEAST_DEFINE_TESTSUITE_PRIO (NFToken, tx, ripple, 2) | |
BEAST_DEFINE_TESTSUITE_PRIO (NFTokenBurn, tx, ripple, 3) | |
BEAST_DEFINE_TESTSUITE_PRIO (NFTokenDir, tx, ripple, 1) | |
BEAST_DEFINE_TESTSUITE (OfferStream, tx, ripple) | |
BEAST_DEFINE_TESTSUITE (SetRegularKey, app, ripple) | |
BEAST_DEFINE_TESTSUITE (Taker, tx, ripple) | |
BEAST_DEFINE_TESTSUITE (Ticket, tx, ripple) | |
BEAST_DEFINE_TESTSUITE (TrustAndBalance, app, ripple) | |
BEAST_DEFINE_TESTSUITE (Apply, app, ripple) | |
BEAST_DEFINE_TESTSUITE (base64, ripple_basics, ripple) | |
BEAST_DEFINE_TESTSUITE (contract, basics, ripple) | |
BEAST_DEFINE_TESTSUITE (FileUtilities, ripple_basics, ripple) | |
BEAST_DEFINE_TESTSUITE (hardened_hash, basics, ripple) | |
BEAST_DEFINE_TESTSUITE (IOUAmount, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (KeyCache, common, ripple) | |
BEAST_DEFINE_TESTSUITE (Number, ripple_basics, ripple) | |
BEAST_DEFINE_TESTSUITE (PerfLog, basics, ripple) | |
BEAST_DEFINE_TESTSUITE (RangeSet, ripple_basics, ripple) | |
BEAST_DEFINE_TESTSUITE (StringUtilities, ripple_basics, ripple) | |
BEAST_DEFINE_TESTSUITE (TaggedCache, common, ripple) | |
BEAST_DEFINE_TESTSUITE (XRPAmount, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (Config, core, ripple) | |
BEAST_DEFINE_TESTSUITE (CryptoPRNG, core, ripple) | |
BEAST_DEFINE_TESTSUITE (SociDB, core, ripple) | |
BEAST_DEFINE_TESTSUITE (Workers, core, ripple) | |
BEAST_DEFINE_TESTSUITE (json_value, json, ripple) | |
BEAST_DEFINE_TESTSUITE (Invariants, ledger, ripple) | |
BEAST_DEFINE_TESTSUITE (ProtocolVersion, overlay, ripple) | |
BEAST_DEFINE_TESTSUITE (short_read, overlay, ripple) | |
BEAST_DEFINE_TESTSUITE (BuildInfo, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (Hooks, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (InnerObjectFormatsParsedJSON, ripple_app, ripple) | |
BEAST_DEFINE_TESTSUITE (Issue, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (Memo, ripple_data, ripple) | |
BEAST_DEFINE_TESTSUITE (PublicKey, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (Quality, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (SecretKey, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (Seed, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (SeqProxy, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (STAccount, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (STAmount, ripple_data, ripple) | |
BEAST_DEFINE_TESTSUITE (STObject, protocol, ripple) | |
bool | matches (char const *string, char const *regex) |
Return true if the string loosely matches the regex. More... | |
BEAST_DEFINE_TESTSUITE (STTx, ripple_app, ripple) | |
BEAST_DEFINE_TESTSUITE (InnerObjectFormatsSerializer, ripple_app, ripple) | |
BEAST_DEFINE_TESTSUITE (STValidation, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (TER, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (types, protocol, ripple) | |
BEAST_DEFINE_TESTSUITE (AccountCurrencies, app, ripple) | |
BEAST_DEFINE_TESTSUITE_PRIO (AccountSet, app, ripple, 1) | |
BEAST_DEFINE_TESTSUITE (AmendmentBlocked, app, ripple) | |
BEAST_DEFINE_TESTSUITE (Feature, rpc, ripple) | |
BEAST_DEFINE_TESTSUITE (GetCounts, rpc, ripple) | |
BEAST_DEFINE_TESTSUITE (LedgerClosed, app, ripple) | |
BEAST_DEFINE_TESTSUITE_PRIO (LedgerData, app, ripple, 1) | |
BEAST_DEFINE_TESTSUITE (LedgerRPC, app, ripple) | |
BEAST_DEFINE_TESTSUITE (NoRippleCheck, app, ripple) | |
BEAST_DEFINE_TESTSUITE_MANUAL_PRIO (NoRippleCheckLimits, app, ripple, 1) | |
BEAST_DEFINE_TESTSUITE (OwnerInfo, app, ripple) | |
BEAST_DEFINE_TESTSUITE (Peers, rpc, ripple) | |
BEAST_DEFINE_TESTSUITE (Transaction, rpc, ripple) | |
BEAST_DEFINE_TESTSUITE (TransactionEntry, rpc, ripple) | |
BEAST_DEFINE_TESTSUITE (TransactionHistory, rpc, ripple) | |
BEAST_DEFINE_TESTSUITE (Version, rpc, ripple) | |
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Callback for filtering SHAMap during sync.
Use hardened_hash_* containers for keys that do need a secure hashing algorithm.
The cryptographic security of containers where a hash function is used as a template parameter depends entirely on that hash function and not at all on what container it is.
Alias for RCL-specific instantiation of generic Validations.
Definition at line 236 of file RCLValidations.h.
using ripple::CachedLedger = typedef CachedView<Ledger> |
A ledger wrapped in a CachedView.
using ripple::OrderedTxs = typedef CanonicalTXSet |
Definition at line 44 of file OpenLedger.h.
typedef STLedgerEntry ripple::SLE |
Definition at line 66 of file Application.h.
typedef TaggedCache< uint256, SLE const > ripple::CachedSLEs |
Definition at line 67 of file Application.h.
using ripple::NodeCache = typedef TaggedCache<SHAMapHash, Blob> |
Definition at line 108 of file Application.h.
Definition at line 45 of file PostgresDatabase.cpp.
Definition at line 46 of file PostgresDatabase.cpp.
Definition at line 47 of file PostgresDatabase.cpp.
Definition at line 53 of file ReportingETL.h.
Definition at line 381 of file InvariantCheck.h.
using ripple::Offer = typedef TOffer<> |
using ripple::uint128 = typedef base_uint<128> |
Definition at line 548 of file base_uint.h.
using ripple::uint160 = typedef base_uint<160> |
Definition at line 549 of file base_uint.h.
using ripple::uint256 = typedef base_uint<256> |
Definition at line 550 of file base_uint.h.
using ripple::IniFileSections = typedef std::map<std::string, std::vector<std::string> > |
Definition at line 35 of file BasicConfig.h.
using ripple::Blob = typedef std::vector<unsigned char> |
using ripple::days = typedef std::chrono::duration< int, std::ratio_multiply<std::chrono::hours::period, std::ratio<24> >> |
using ripple::weeks = typedef std::chrono:: duration<int, std::ratio_multiply<days::period, std::ratio<7> >> |
using ripple::Stopwatch = typedef beast::abstract_clock<std::chrono::steady_clock> |
using ripple::TestStopwatch = typedef beast::manual_clock<std::chrono::steady_clock> |
using ripple::FeeLevel = typedef feeunit::TaggedFee<feeunit::feelevelTag, T> |
Definition at line 458 of file FeeUnits.h.
using ripple::FeeLevel64 = typedef FeeLevel<std::uint64_t> |
Definition at line 459 of file FeeUnits.h.
using ripple::FeeLevelDouble = typedef FeeLevel<double> |
Definition at line 460 of file FeeUnits.h.
using ripple::KeyCache = typedef TaggedCache<uint256, int, true> |
Definition at line 28 of file KeyCache.h.
using ripple::ClosedInterval = typedef boost::icl::closed_interval<T> |
A closed interval over the domain T.
For an instance ClosedInterval c, this represents the closed interval (c.first(), c.last()). A single element interval has c.first() == c.last().
This is simply a type-alias for boost interval container library interval set, so users should consult that documentation for available supporting member and free functions.
Definition at line 44 of file RangeSet.h.
using ripple::RangeSet = typedef boost::icl::interval_set<T, std::less, ClosedInterval<T> > |
A set of closed intervals over the domain T.
Represents a set of values of the domain T using the minimum number of disjoint ClosedInterval<T>. This is useful to represent ranges of T where a few instances are missing, e.g. the set 1-5,8-9,11-14.
This is simply a type-alias for boost interval container library interval set, so users should consult that documentation for available supporting member and free functions.
Definition at line 69 of file RangeSet.h.
using ripple::hash_map = typedef std::unordered_map<Key, Value, Hash, Pred, Allocator> |
Definition at line 53 of file UnorderedContainers.h.
using ripple::hash_multimap = typedef std::unordered_multimap<Key, Value, Hash, Pred, Allocator> |
Definition at line 62 of file UnorderedContainers.h.
using ripple::hash_set = typedef std::unordered_set<Value, Hash, Pred, Allocator> |
Definition at line 69 of file UnorderedContainers.h.
using ripple::hash_multiset = typedef std::unordered_multiset<Value, Hash, Pred, Allocator> |
Definition at line 76 of file UnorderedContainers.h.
using ripple::strong_hash = typedef beast::xxhasher |
Definition at line 80 of file UnorderedContainers.h.
using ripple::hardened_hash_map = typedef std::unordered_map<Key, Value, Hash, Pred, Allocator> |
Definition at line 88 of file UnorderedContainers.h.
using ripple::hardened_partitioned_hash_map = typedef partitioned_unordered_map<Key, Value, Hash, Pred, Allocator> |
Definition at line 97 of file UnorderedContainers.h.
using ripple::hardened_hash_multimap = typedef std::unordered_multimap<Key, Value, Hash, Pred, Allocator> |
Definition at line 106 of file UnorderedContainers.h.
using ripple::hardened_hash_set = typedef std::unordered_set<Value, Hash, Pred, Allocator> |
Definition at line 113 of file UnorderedContainers.h.
using ripple::hardened_hash_multiset = typedef std::unordered_multiset<Value, Hash, Pred, Allocator> |
Definition at line 121 of file UnorderedContainers.h.
using ripple::semaphore = typedef basic_semaphore<std::mutex, std::condition_variable> |
Definition at line 79 of file semaphore.h.
using ripple::JobCounter = typedef ClosureCounter<void> |
using ripple::const_iterator = typedef Dir::const_iterator |
Definition at line 24 of file Directory.cpp.
using ripple::majorityAmendments_t = typedef std::map<uint256, NetClock::time_point> |
using ripple::socket_type = typedef boost::beast::tcp_stream |
Definition at line 42 of file Handshake.h.
using ripple::stream_type = typedef boost::beast::ssl_stream<socket_type> |
Definition at line 43 of file Handshake.h.
using ripple::request_type = typedef boost::beast::http::request<boost::beast::http::empty_body> |
Definition at line 45 of file Handshake.h.
typedef boost::beast::http::request< boost::beast::http::dynamic_body > ripple::http_request_type |
Definition at line 47 of file Handshake.h.
typedef boost::beast::http::response< boost::beast::http::dynamic_body > ripple::http_response_type |
Definition at line 49 of file Handshake.h.
using ripple::ProtocolVersion = typedef std::pair<std::uint16_t, std::uint16_t> |
Represents a particular version of the peer-to-peer protocol.
The protocol is represented as two pairs of 16-bit integers; a major and a minor.
Definition at line 37 of file ProtocolVersion.h.
using ripple::AccountID = typedef base_uint<160, detail::AccountIDTag> |
A 160-bit unsigned that uniquely identifies an account.
Definition at line 47 of file AccountID.h.
using ripple::ripemd160_hasher = typedef openssl_ripemd160_hasher |
using ripple::sha256_hasher = typedef openssl_sha256_hasher |
using ripple::sha512_hasher = typedef openssl_sha512_hasher |
using ripple::sha512_half_hasher = typedef detail::basic_sha512_half_hasher<false> |
using ripple::sha512_half_hasher_s = typedef detail::basic_sha512_half_hasher<true> |
using ripple::LedgerIndex = typedef std::uint32_t |
A ledger index.
Definition at line 90 of file Protocol.h.
using ripple::TxID = typedef uint256 |
A transaction identifier.
The value is computed as the hash of the canonicalized, serialized transaction object.
Definition at line 96 of file Protocol.h.
using ripple::LedgerHash = typedef uint256 |
Definition at line 27 of file RippleLedgerHash.h.
using ripple::SF_UINT8 = typedef TypedField<STInteger<std::uint8_t> > |
using ripple::SF_UINT16 = typedef TypedField<STInteger<std::uint16_t> > |
using ripple::SF_UINT32 = typedef TypedField<STInteger<std::uint32_t> > |
using ripple::SF_UINT64 = typedef TypedField<STInteger<std::uint64_t> > |
using ripple::SF_UINT96 = typedef TypedField<STBitString<96> > |
using ripple::SF_UINT128 = typedef TypedField<STBitString<128> > |
using ripple::SF_UINT160 = typedef TypedField<STBitString<160> > |
using ripple::SF_UINT192 = typedef TypedField<STBitString<192> > |
using ripple::SF_UINT256 = typedef TypedField<STBitString<256> > |
using ripple::SF_UINT384 = typedef TypedField<STBitString<384> > |
using ripple::SF_UINT512 = typedef TypedField<STBitString<512> > |
using ripple::SF_ACCOUNT = typedef TypedField<STAccount> |
using ripple::SF_AMOUNT = typedef TypedField<STAmount> |
using ripple::SF_VL = typedef TypedField<STBlob> |
using ripple::SF_VECTOR256 = typedef TypedField<STVector256> |
using ripple::STUInt128 = typedef STBitString<128> |
Definition at line 84 of file STBitString.h.
using ripple::STUInt160 = typedef STBitString<160> |
Definition at line 85 of file STBitString.h.
using ripple::STUInt256 = typedef STBitString<256> |
Definition at line 86 of file STBitString.h.
using ripple::STUInt8 = typedef STInteger<unsigned char> |
Definition at line 78 of file STInteger.h.
using ripple::STUInt16 = typedef STInteger<std::uint16_t> |
Definition at line 79 of file STInteger.h.
using ripple::STUInt32 = typedef STInteger<std::uint32_t> |
Definition at line 80 of file STInteger.h.
using ripple::STUInt64 = typedef STInteger<std::uint64_t> |
Definition at line 81 of file STInteger.h.
using ripple::TERUnderlyingType = typedef int |
using ripple::NotTEC = typedef TERSubset<CanCvtToNotTEC> |
using ripple::TER = typedef TERSubset<CanCvtToTER> |
using ripple::Directory = typedef base_uint<256, detail::DirectoryTag> |
Directory is an index into the directory of offer books.
The last 64 bits of this are the quality.
Definition at line 53 of file UintTypes.h.
using ripple::Currency = typedef base_uint<160, detail::CurrencyTag> |
Currency is a hash representing a specific currency.
Definition at line 56 of file UintTypes.h.
using ripple::NodeID = typedef base_uint<160, detail::NodeIDTag> |
NodeID is a 160-bit hash representing one node.
Definition at line 59 of file UintTypes.h.
using ripple::TxnDataBinary = typedef RelationalDatabase::txnMetaLedgerType |
Definition at line 47 of file AccountTx.cpp.
using ripple::AccountTxArgs = typedef RelationalDatabase::AccountTxArgs |
Definition at line 48 of file AccountTx.cpp.
using ripple::LedgerShortcut = typedef RelationalDatabase::LedgerShortcut |
Definition at line 51 of file AccountTx.cpp.
using ripple::LedgerSpecifier = typedef RelationalDatabase::LedgerSpecifier |
Definition at line 52 of file AccountTx.cpp.
using ripple::ServerHandler = typedef ServerHandlerImp |
Definition at line 37 of file ServerHandler.h.
using ripple::Endpoints = typedef std::vector<boost::asio::ip::tcp::endpoint> |
Definition at line 36 of file ServerImpl.h.
using ripple::FullBelowCache = typedef detail::BasicFullBelowCache |
Definition at line 148 of file FullBelowCache.h.
using ripple::TreeNodeCache = typedef TaggedCache<uint256, SHAMapTreeNode> |
Definition at line 27 of file TreeNodeCache.h.
using ripple::sha256_t = typedef unsigned_integer<256, std::size_t> |
Definition at line 165 of file hardened_hash_test.cpp.
anonymous enum |
Enumerator | |
---|---|
peerCountStart | |
peerCountAdd | |
ledgerTimeoutRetriesMax | |
ledgerBecomeAggressiveThreshold | |
missingNodesFind | |
reqNodesReply | |
reqNodes |
Definition at line 45 of file InboundLedger.cpp.
anonymous enum |
Enumerator | |
---|---|
startPeers | |
setKeepRounds |
Definition at line 34 of file InboundTransactions.cpp.
anonymous enum |
Enumerator | |
---|---|
NORM_TIMEOUTS | |
MAX_TIMEOUTS |
Definition at line 38 of file TransactionAcquire.cpp.
|
strong |
Enumerator | |
---|---|
accepted | Manifest is valid. |
stale | Sequence is too old. |
badMasterKey | The master key is not acceptable to us. |
badEphemeralKey | The ephemeral key is not acceptable to us. |
invalid | Timely, but invalid signature. |
Definition at line 191 of file Manifest.h.
|
strong |
Specifies the mode under which the server believes it's operating.
This has implications about how the server processes transactions and how it responds to requests (e.g. account balance request).
Definition at line 66 of file NetworkOPs.h.
enum ripple::TransStatus |
Enumerator | |
---|---|
NEW | |
INVALID | |
INCLUDED | |
CONFLICTED | |
COMMITTED | |
HELD | |
REMOVED | |
OBSOLETE | |
INCOMPLETE |
Definition at line 45 of file Transaction.h.
|
strong |
Enumerator | |
---|---|
all | |
some | |
unknown |
Definition at line 57 of file Transaction.h.
|
strong |
Definition at line 55 of file ValidatorList.h.
|
strong |
Enumerator | |
---|---|
available | |
expired | |
unavailable | |
revoked |
Definition at line 87 of file ValidatorList.h.
|
strong |
|
strong |
|
strong |
|
strong |
Describes how an account was found in a path, and how to find the next set of paths.
"Outgoing" is defined as the source account, or an account found via a trustline that has rippling enabled on the account's side. "Incoming" is defined as an account found via a trustline that has rippling disabled on the account's side. Any trust lines for an incoming account that have rippling disabled are unusable in paths.
Enumerator | |
---|---|
incoming | |
outgoing |
Definition at line 41 of file TrustLine.h.
|
strong |
|
strong |
Describes the pre-processing validity of a transaction.
Enumerator | |
---|---|
SigBad | Signature is bad. Didn't do local checks. |
SigGoodOnly | Signature is good, but local checks fail. |
Valid | Signature and local checks are good / passed. |
|
strong |
Enum class for return value from applyTransaction
Enumerator | |
---|---|
Success | Applied to this ledger. |
Fail | Should not be retried in this ledger. |
Retry | Should be retried in this ledger. |
|
strong |
enum ripple::LogSeverity |
|
strong |
Represents how a node currently participates in Consensus.
A node participates in consensus in varying modes, depending on how the node was configured by its operator and how well it stays in sync with the network during consensus.
We enter the round proposing or observing. If we detect we are working on the wrong prior ledger, we go to wrongLedger and attempt to acquire the right one. Once we acquire the right one, we go to the switchedLedger mode. It is possible we fall behind again and find there is a new better ledger, moving back and forth between wrongLedger and switchLedger as we attempt to catch up.
Definition at line 55 of file ConsensusTypes.h.
|
strong |
Phases of consensus for a single ledger round.
The typical transition goes from open to establish to accepted and then a call to startRound begins the process anew. However, if a wrong prior ledger is detected and recovered during the establish or accept phase, consensus will internally go back to open (see Consensus::handleWrongLedger).
Definition at line 103 of file ConsensusTypes.h.
|
strong |
Whether we have or don't have a consensus.
Enumerator | |
---|---|
No | We do not have consensus. |
MovedOn | The network has consensus without us. |
Yes | We have consensus along with the network. |
Definition at line 186 of file ConsensusTypes.h.
|
strong |
Status of validation we received.
Definition at line 168 of file Validations.h.
|
strong |
enum ripple::JobType |
enum ripple::ApplyFlags : std::uint32_t |
Enumerator | |
---|---|
tapNONE | |
tapFAIL_HARD | |
tapRETRY | |
tapUNLIMITED |
Definition at line 29 of file ApplyView.h.
The types of node objects.
Enumerator | |
---|---|
hotUNKNOWN | |
hotLEDGER | |
hotACCOUNT_NODE | |
hotTRANSACTION_NODE | |
hotDUMMY |
Definition at line 32 of file NodeObject.h.
|
strong |
Shard states.
Enumerator | |
---|---|
acquire | |
complete | |
finalizing | |
finalized | |
queued |
Definition at line 60 of file nodestore/Types.h.
|
strong |
Enumerator | |
---|---|
ValidatorListPropagation | |
ValidatorList2Propagation | |
LedgerReplay |
Definition at line 38 of file ripple/overlay/Peer.h.
enum ripple::error_code_i |
Definition at line 40 of file ErrorCodes.h.
Codes returned in the warnings
array of certain RPC commands.
These values need to remain stable.
Enumerator | |
---|---|
warnRPC_UNSUPPORTED_MAJORITY | |
warnRPC_AMENDMENT_BLOCKED | |
warnRPC_EXPIRED_VALIDATOR_LIST | |
warnRPC_REPORTING |
Definition at line 153 of file ErrorCodes.h.
|
strong |
|
strong |
Prefix for hashing functions.
These prefixes are inserted before the source material used to generate various hashes. This is done to put each hash in its own "space." This way, two different types of objects with the same binary data will produce different hashes.
Each prefix is a 4-byte value with the last byte set to zero and the first three bytes formed from the ASCII equivalent of some arbitrary string. For example "TXN".
Enumerator | |
---|---|
transactionID | transaction plus signature to give transaction ID |
txNode | transaction plus metadata |
leafNode | account state |
innerNode | inner node in V1 tree |
ledgerMaster | ledger master data for signing |
txSign | inner transaction to sign |
txMultiSign | inner transaction to multi-sign |
validation | validation for signing |
proposal | proposal for signing |
manifest | |
paymentChannelClaim | Payment Channel Claim. |
shardInfo | shard info for signing |
Definition at line 54 of file HashPrefix.h.
|
strong |
Type-specific prefix for calculating ledger indices.
The identifier for a given object within the ledger is calculated based on some object-specific parameters. To ensure that different types of objects have different indices, even if they happen to use the same set of parameters, we use "tagged hashing" by adding a type-specific prefix.
Additions to this list are OK, but changing existing entries to assign them a different values should never be needed.
Entries that are removed should be moved to the bottom of the enum and marked as [[deprecated]] to prevent accidental reuse.
Definition at line 46 of file Indexes.cpp.
|
strong |
Identifiers for on-ledger objects.
Each ledger object requires a unique type identifier, which is stored within the object itself; this makes it possible to iterate the entire ledger and determine each object's type and verify that the object you retrieved from a given hash matches the expected type.
Definition at line 53 of file LedgerFormats.h.
Definition at line 221 of file LedgerFormats.h.
|
strong |
Enumerator | |
---|---|
canonical | |
fullyCanonical |
Definition at line 195 of file PublicKey.h.
enum ripple::SOEStyle |
Kind of element in each entry of an SOTemplate.
Enumerator | |
---|---|
soeINVALID | |
soeREQUIRED | |
soeOPTIONAL | |
soeDEFAULT |
Definition at line 33 of file SOTemplate.h.
|
strong |
enum ripple::TxnSql : char |
|
strong |
enum ripple::TxType : std::uint16_t |
Transaction type identifiers.
These are part of the binary message format. Transaction type identifieers
Each ledger object requires a unique type identifier, which is stored within the object itself; this makes it possible to iterate the entire ledger and determine each object's type and verify that the object you retrieved from a given hash matches the expected type.
Definition at line 56 of file TxFormats.h.
|
strong |
|
strong |
Describes the current state of a given SHAMap.
|
strong |
Enumerator | |
---|---|
TRANSACTION | |
STATE | |
FREE |
Definition at line 32 of file SHAMapMissingNode.h.
|
strong |
Enumerator | |
---|---|
tnINNER | |
tnTRANSACTION_NM | |
tnTRANSACTION_MD | |
tnACCOUNT_STATE |
Definition at line 46 of file SHAMapTreeNode.h.
uint256 ripple::proposalUniqueId | ( | uint256 const & | proposeHash, |
uint256 const & | previousLedger, | ||
std::uint32_t | proposeSeq, | ||
NetClock::time_point | closeTime, | ||
Slice const & | publicKey, | ||
Slice const & | signature | ||
) |
Calculate a unique identifier for a signed proposal.
The identifier is based on all the fields that contribute to the signature, as well as the signature itself. The "last closed ledger" field may be omitted, but the signer will compute the signature as if this field was present. Recipients of the proposal will inject the last closed ledger in order to validate the signature. If the last closed ledger is left out, then it is considered as all zeroes for the purposes of signing.
proposeHash | The hash of the proposed position |
previousLedger | The hash of the ledger the proposal is based upon |
proposeSeq | Sequence number of the proposal |
closeTime | Close time of the proposal |
publicKey | Signer's public key |
signature | Proposal signature |
Definition at line 66 of file RCLCxPeerPos.cpp.
RCLValidatedLedger::Seq ripple::mismatch | ( | RCLValidatedLedger const & | a, |
RCLValidatedLedger const & | b | ||
) |
Definition at line 98 of file RCLValidations.cpp.
void ripple::handleNewValidation | ( | Application & | app, |
std::shared_ptr< STValidation > const & | val, | ||
std::string const & | source | ||
) |
Handle a new validation.
Also sets the trust status of a validation based on the validating node's public key and this node's current UNL.
app | Application object containing validations and ledgerMaster |
val | The validation to add |
source | Name associated with validation used in logging |
Definition at line 152 of file RCLValidations.cpp.
std::shared_ptr< Ledger > ripple::buildLedger | ( | std::shared_ptr< Ledger const > const & | parent, |
NetClock::time_point | closeTime, | ||
const bool | closeTimeCorrect, | ||
NetClock::duration | closeResolution, | ||
Application & | app, | ||
CanonicalTXSet & | txns, | ||
std::set< TxID > & | failedTxs, | ||
beast::Journal | j | ||
) |
Build a new ledger by applying consensus transactions.
Build a new ledger by applying a set of transactions accepted as part of consensus.
parent | The ledger to apply transactions to |
closeTime | The time the ledger closed |
closeTimeCorrect | Whether consensus agreed on close time |
closeResolution | Resolution used to determine consensus close time |
app | Handle to application instance |
txs | On entry, transactions to apply; on exit, transactions that must be retried in next round. |
failedTxs | Populated with transactions that failed in this round |
j | Journal to use for logging |
Definition at line 178 of file BuildLedger.cpp.
std::shared_ptr< Ledger > ripple::buildLedger | ( | LedgerReplay const & | replayData, |
ApplyFlags | applyFlags, | ||
Application & | app, | ||
beast::Journal | j | ||
) |
Build a new ledger by replaying transactions.
Build a new ledger by replaying transactions accepted into a prior ledger.
replayData | Data of the ledger to replay |
applyFlags | Flags to use when applying transactions |
app | Handle to application instance |
j | Journal to use for logging |
Definition at line 217 of file BuildLedger.cpp.
std::shared_ptr<Ledger> ripple::buildLedgerImpl | ( | std::shared_ptr< Ledger const > const & | parent, |
NetClock::time_point | closeTime, | ||
const bool | closeTimeCorrect, | ||
NetClock::duration | closeResolution, | ||
Application & | app, | ||
beast::Journal | j, | ||
ApplyTxs && | applyTxs | ||
) |
Definition at line 39 of file BuildLedger.cpp.
std::size_t ripple::applyTransactions | ( | Application & | app, |
std::shared_ptr< Ledger const > const & | built, | ||
CanonicalTXSet & | txns, | ||
std::set< TxID > & | failed, | ||
OpenView & | view, | ||
beast::Journal | j | ||
) |
Apply a set of consensus transactions to a ledger.
app | Handle to application |
txns | the set of transactions to apply, |
failed | set of transactions that failed to apply |
view | ledger to apply to |
j | Journal for logging |
Definition at line 97 of file BuildLedger.cpp.
|
static |
Definition at line 237 of file InboundLedger.cpp.
LedgerInfo ripple::deserializeHeader | ( | Slice | data, |
bool | hasHash | ||
) |
Deserialize a ledger header from a byte array.
Definition at line 275 of file InboundLedger.cpp.
LedgerInfo ripple::deserializePrefixedHeader | ( | Slice | data, |
bool | hasHash | ||
) |
Deserialize a ledger header (prefixed with 4 bytes) from a byte array.
Definition at line 299 of file InboundLedger.cpp.
std::unique_ptr< InboundLedgers > ripple::make_InboundLedgers | ( | Application & | app, |
InboundLedgers::clock_type & | clock, | ||
beast::insight::Collector::ptr const & | collector | ||
) |
Definition at line 434 of file InboundLedgers.cpp.
std::unique_ptr< InboundTransactions > ripple::make_InboundTransactions | ( | Application & | app, |
beast::insight::Collector::ptr const & | collector, | ||
std::function< void(std::shared_ptr< SHAMap > const &, bool)> | gotSet | ||
) |
Definition at line 269 of file InboundTransactions.cpp.
std::unique_ptr< LedgerCleaner > ripple::make_LedgerCleaner | ( | Application & | app, |
beast::Journal | journal | ||
) |
Definition at line 455 of file LedgerCleaner.cpp.
|
static |
Definition at line 157 of file LedgerMaster.cpp.
|
static |
Populate a fetch pack with data from the map the recipient wants.
A recipient may or may not have the map that they are asking for. If they do, we can optimize the transfer by not including parts of the map that they are already have.
have | The map that the recipient already has (if any). |
cnt | The maximum number of nodes to return. |
into | The protocol object into which we add information. |
seq | The sequence number of the ledger the map is a part of. |
withLeaves | True if leaf nodes should be included. |
The rationale is that for transaction trees, it may make sense to not include the leaves if the fetch pack is being constructed for someone attempting to get a recent ledger for which they already have the transactions.
However, for historical ledgers, which is the only use we have for fetch packs right now, it makes sense to include the transactions because the caller is unlikely to have them.
Definition at line 2196 of file LedgerMaster.cpp.
void ripple::addJson | ( | Json::Value & | json, |
LedgerFill const & | fill | ||
) |
Given a Ledger and options, fill a Json::Object or Json::Value with a description of the ledger.
Definition at line 286 of file LedgerToJson.cpp.
Json::Value ripple::getJson | ( | LedgerFill const & | fill | ) |
Return a new Json::Value representing the ledger with given options.
Definition at line 296 of file LedgerToJson.cpp.
std::unique_ptr< LocalTxs > ripple::make_LocalTxs | ( | ) |
Definition at line 197 of file LocalTxs.cpp.
std::string ripple::debugTxstr | ( | std::shared_ptr< STTx const > const & | tx | ) |
Definition at line 181 of file OpenLedger.cpp.
std::string ripple::debugTostr | ( | OrderedTxs const & | set | ) |
Definition at line 189 of file OpenLedger.cpp.
std::string ripple::debugTostr | ( | SHAMap const & | set | ) |
Definition at line 198 of file OpenLedger.cpp.
std::string ripple::debugTostr | ( | std::shared_ptr< ReadView const > const & | view | ) |
Definition at line 218 of file OpenLedger.cpp.
uint256 ripple::calculateLedgerHash | ( | LedgerInfo const & | info | ) |
Definition at line 65 of file Ledger.cpp.
std::shared_ptr< STTx const > ripple::deserializeTx | ( | SHAMapItem const & | item | ) |
Deserialize a SHAMapItem containing a single STTx.
Throw:
May throw on deserializaton error
Definition at line 403 of file Ledger.cpp.
std::pair< std::shared_ptr< STTx const >, std::shared_ptr< STObject const > > ripple::deserializeTxPlusMeta | ( | SHAMapItem const & | item | ) |
Deserialize a SHAMapItem containing STTx + STObject metadata.
The SHAMap must contain two variable length serialization objects.
Throw:
May throw on deserializaton error
Definition at line 410 of file Ledger.cpp.
bool ripple::isFlagLedger | ( | LedgerIndex | seq | ) |
Returns true if the given ledgerIndex is a flag ledgerIndex.
Definition at line 969 of file Ledger.cpp.
|
static |
Definition at line 975 of file Ledger.cpp.
bool ripple::pendSaveValidated | ( | Application & | app, |
std::shared_ptr< Ledger const > const & | ledger, | ||
bool | isSynchronous, | ||
bool | isCurrent | ||
) |
Save, or arrange to save, a fully-validated ledger Returns false on error.
Definition at line 1005 of file Ledger.cpp.
std::shared_ptr< Ledger > ripple::loadLedgerHelper | ( | LedgerInfo const & | info, |
Application & | app, | ||
bool | acquire | ||
) |
Definition at line 1076 of file Ledger.cpp.
|
static |
Definition at line 1094 of file Ledger.cpp.
std::tuple< std::shared_ptr< Ledger >, std::uint32_t, uint256 > ripple::getLatestLedger | ( | Application & | app | ) |
Definition at line 1113 of file Ledger.cpp.
std::shared_ptr< Ledger > ripple::loadByIndex | ( | std::uint32_t | ledgerIndex, |
Application & | app, | ||
bool | acquire | ||
) |
Definition at line 1123 of file Ledger.cpp.
std::shared_ptr< Ledger > ripple::loadByHash | ( | uint256 const & | ledgerHash, |
Application & | app, | ||
bool | acquire | ||
) |
Definition at line 1136 of file Ledger.cpp.
std::vector< std::pair< std::shared_ptr< STTx const >, std::shared_ptr< STObject const > > > ripple::flatFetchTransactions | ( | Application & | app, |
std::vector< uint256 > & | nodestoreHashes | ||
) |
Definition at line 1151 of file Ledger.cpp.
std::vector< std::pair< std::shared_ptr< STTx const >, std::shared_ptr< STObject const > > > ripple::flatFetchTransactions | ( | ReadView const & | ledger, |
Application & | app | ||
) |
Definition at line 1220 of file Ledger.cpp.
|
static |
Definition at line 141 of file LedgerHistory.cpp.
|
static |
Definition at line 163 of file LedgerHistory.cpp.
|
static |
Definition at line 305 of file LedgerHistory.cpp.
Blob ripple::serializeBlob | ( | Object const & | o | ) |
Serialize an object to a blob.
Definition at line 76 of file LedgerToJson.h.
std::string ripple::serializeHex | ( | STObject const & | o | ) |
Serialize an object to a hex string.
Definition at line 85 of file LedgerToJson.h.
std::unique_ptr< Application > ripple::make_Application | ( | std::unique_ptr< Config > | config, |
std::unique_ptr< Logs > | logs, | ||
std::unique_ptr< TimeKeeper > | timeKeeper | ||
) |
Definition at line 2181 of file Application.cpp.
std::unique_ptr< CollectorManager > ripple::make_CollectorManager | ( | Section const & | params, |
beast::Journal | journal | ||
) |
Definition at line 72 of file CollectorManager.cpp.
std::unique_ptr< LoadManager > ripple::make_LoadManager | ( | Application & | app, |
beast::Journal | journal | ||
) |
Definition at line 197 of file LoadManager.cpp.
bool ripple::adjustDescriptorLimit | ( | int | needed, |
beast::Journal | j | ||
) |
void ripple::printHelp | ( | const po::options_description & | desc | ) |
std::pair< PublicKey, SecretKey > ripple::getNodeIdentity | ( | Application & | app, |
boost::program_options::variables_map const & | cmdline | ||
) |
The cryptographic credentials identifying this server instance.
app | The application object |
cmdline | The command line parameters passed into the application. |
Definition at line 30 of file NodeIdentity.cpp.
std::unique_ptr< AmendmentTable > ripple::make_AmendmentTable | ( | Application & | app, |
std::chrono::seconds | majorityTime, | ||
std::vector< AmendmentTable::FeatureInfo > const & | supported, | ||
Section const & | enabled, | ||
Section const & | vetoed, | ||
beast::Journal | journal | ||
) |
Definition at line 812 of file AmendmentTable.cpp.
bool ripple::operator< | ( | CanonicalTXSet::Key const & | lhs, |
CanonicalTXSet::Key const & | rhs | ||
) |
Definition at line 25 of file CanonicalTXSet.cpp.
std::unique_ptr< FeeVote > ripple::make_FeeVote | ( | FeeSetup const & | setup, |
beast::Journal | journal | ||
) |
Create an instance of the FeeVote logic.
setup | The fee schedule to vote for. |
journal | Where to log. |
Definition at line 339 of file FeeVoteImpl.cpp.
void ripple::convertBlobsToTxResult | ( | RelationalDatabase::AccountTxs & | to, |
std::uint32_t | ledger_index, | ||
std::string const & | status, | ||
Blob const & | rawTxn, | ||
Blob const & | rawMeta, | ||
Application & | app | ||
) |
Definition at line 33 of file AccountTxPaging.cpp.
void ripple::saveLedgerAsync | ( | Application & | app, |
std::uint32_t | seq | ||
) |
Definition at line 57 of file AccountTxPaging.cpp.
|
static |
Definition at line 36 of file AmendmentTable.cpp.
XRPAmount ripple::scaleFeeLoad | ( | XRPAmount | fee, |
LoadFeeTrack const & | feeTrack, | ||
Fees const & | fees, | ||
bool | bUnlimited | ||
) |
Definition at line 89 of file LoadFeeTrack.cpp.
std::string ripple::to_string | ( | Manifest const & | m | ) |
Format the specified manifest to a string for debugging purposes.
Definition at line 41 of file app/misc/impl/Manifest.cpp.
std::optional< Manifest > ripple::deserializeManifest | ( | Slice | s, |
beast::Journal | journal | ||
) |
Constructs Manifest from serialized string.
s | Serialized manifest string |
std::nullopt
if string is invalidManifest::verify
should be called after constructing manifest. Definition at line 53 of file app/misc/impl/Manifest.cpp.
Stream& ripple::logMftAct | ( | Stream & | s, |
std::string const & | action, | ||
PublicKey const & | pk, | ||
std::uint32_t | seq | ||
) |
Definition at line 161 of file app/misc/impl/Manifest.cpp.
Stream& ripple::logMftAct | ( | Stream & | s, |
std::string const & | action, | ||
PublicKey const & | pk, | ||
std::uint32_t | seq, | ||
std::uint32_t | oldSeq | ||
) |
Definition at line 175 of file app/misc/impl/Manifest.cpp.
std::optional< ValidatorToken > ripple::loadValidatorToken | ( | std::vector< std::string > const & | blob, |
beast::Journal | journal | ||
) |
Definition at line 244 of file app/misc/impl/Manifest.cpp.
|
static |
|
static |
|
static |
TxQ::Setup ripple::setup_TxQ | ( | Config const & | config | ) |
Build a TxQ::Setup object from application configuration.
std::string ripple::to_string | ( | ListDisposition | disposition | ) |
Definition at line 43 of file ValidatorList.cpp.
std::size_t ripple::splitMessageParts | ( | std::vector< ValidatorList::MessageWithHash > & | messages, |
protocol::TMValidatorListCollection const & | largeMsg, | ||
std::size_t | maxSize, | ||
std::size_t | begin, | ||
std::size_t | end | ||
) |
Definition at line 477 of file ValidatorList.cpp.
std::size_t ripple::splitMessage | ( | std::vector< ValidatorList::MessageWithHash > & | messages, |
protocol::TMValidatorListCollection const & | largeMsg, | ||
std::size_t | maxSize, | ||
std::size_t | begin = 0 , |
||
std::size_t | end = 0 |
||
) |
Definition at line 456 of file ValidatorList.cpp.
std::size_t ripple::buildValidatorListMessage | ( | std::vector< ValidatorList::MessageWithHash > & | messages, |
std::uint32_t | rawVersion, | ||
std::string const & | rawManifest, | ||
ValidatorBlobInfo const & | currentBlob, | ||
std::size_t | maxSize | ||
) |
Definition at line 540 of file ValidatorList.cpp.
std::size_t ripple::buildValidatorListMessage | ( | std::vector< ValidatorList::MessageWithHash > & | messages, |
std::uint64_t | peerSequence, | ||
std::uint32_t | rawVersion, | ||
std::string const & | rawManifest, | ||
std::map< std::size_t, ValidatorBlobInfo > const & | blobInfos, | ||
std::size_t | maxSize | ||
) |
Definition at line 569 of file ValidatorList.cpp.
std::optional<Manifest> ripple::deserializeManifest | ( | std::string const & | s, |
beast::Journal | journal = beast::Journal(beast::Journal::getNullSink()) |
||
) |
Definition at line 144 of file Manifest.h.
std::optional<Manifest> ripple::deserializeManifest | ( | std::vector< T > const & | v, |
beast::Journal | journal = beast::Journal(beast::Journal::getNullSink()) |
||
) |
Definition at line 156 of file Manifest.h.
Definition at line 165 of file Manifest.h.
Definition at line 175 of file Manifest.h.
std::string ripple::to_string | ( | ManifestDisposition | m | ) |
Definition at line 209 of file Manifest.h.
|
static |
Definition at line 2020 of file NetworkOPs.cpp.
|
static |
Definition at line 2782 of file NetworkOPs.cpp.
std::unique_ptr< NetworkOPs > ripple::make_NetworkOPs | ( | Application & | app, |
NetworkOPs::clock_type & | clock, | ||
bool | standalone, | ||
std::size_t | minPeerCount, | ||
bool | startvalid, | ||
JobQueue & | job_queue, | ||
LedgerMaster & | ledgerMaster, | ||
ValidatorKeys const & | validatorKeys, | ||
boost::asio::io_service & | io_svc, | ||
beast::Journal | journal, | ||
beast::insight::Collector::ptr const & | collector | ||
) |
Definition at line 4579 of file NetworkOPs.cpp.
std::unique_ptr< SHAMapStore > ripple::make_SHAMapStore | ( | Application & | app, |
NodeStore::Scheduler & | scheduler, | ||
beast::Journal | journal | ||
) |
Definition at line 728 of file SHAMapStoreImp.cpp.
FeeLevel64 ripple::toFeeLevel | ( | XRPAmount const & | drops, |
XRPAmount const & | baseFee | ||
) |
void ripple::hash_append | ( | Hasher & | h, |
ValidatorBlobInfo const & | blobInfo | ||
) |
Definition at line 897 of file ValidatorList.h.
void ripple::hash_append | ( | Hasher & | h, |
std::vector< ValidatorBlobInfo > const & | blobs | ||
) |
Definition at line 909 of file ValidatorList.h.
void ripple::hash_append | ( | Hasher & | h, |
std::map< std::size_t, ValidatorBlobInfo > const & | blobs | ||
) |
Definition at line 917 of file ValidatorList.h.
hash_set< Currency > ripple::accountSourceCurrencies | ( | AccountID const & | account, |
std::shared_ptr< RippleLineCache > const & | lrCache, | ||
bool | includeXRP | ||
) |
Definition at line 25 of file AccountCurrencies.cpp.
hash_set< Currency > ripple::accountDestCurrencies | ( | AccountID const & | account, |
std::shared_ptr< RippleLineCache > const & | lrCache, | ||
bool | includeXRP | ||
) |
Definition at line 61 of file AccountCurrencies.cpp.
STAmount ripple::creditLimit | ( | ReadView const & | view, |
AccountID const & | account, | ||
AccountID const & | issuer, | ||
Currency const & | currency | ||
) |
Calculate the maximum amount of IOUs that an account can hold.
ledger | the ledger to check against. |
account | the account of interest. |
issuer | the issuer of the IOU. |
currency | the IOU to check. |
Definition at line 28 of file Credit.cpp.
IOUAmount ripple::creditLimit2 | ( | ReadView const & | v, |
AccountID const & | acc, | ||
AccountID const & | iss, | ||
Currency const & | cur | ||
) |
Definition at line 51 of file Credit.cpp.
STAmount ripple::creditBalance | ( | ReadView const & | view, |
AccountID const & | account, | ||
AccountID const & | issuer, | ||
Currency const & | currency | ||
) |
Returns the amount of IOUs issued by issuer that are held by an account.
ledger | the ledger to check against. |
account | the account of interest. |
issuer | the issuer of the IOU. |
currency | the IOU to check. |
Definition at line 61 of file Credit.cpp.
path::RippleCalc::Output ripple::flow | ( | PaymentSandbox & | view, |
STAmount const & | deliver, | ||
AccountID const & | src, | ||
AccountID const & | dst, | ||
STPathSet const & | paths, | ||
bool | defaultPaths, | ||
bool | partialPayment, | ||
bool | ownerPaysTransferFee, | ||
bool | offerCrossing, | ||
std::optional< Quality > const & | limitQuality, | ||
std::optional< STAmount > const & | sendMax, | ||
beast::Journal | j, | ||
path::detail::FlowDebugInfo * | flowDebugInfo = nullptr |
||
) |
Make a payment from the src account to the dst account.
view | Trust lines and balances |
deliver | Amount to deliver to the dst account |
src | Account providing input funds for the payment |
dst | Account receiving the payment |
paths | Set of paths to explore for liquidity |
defaultPaths | Include defaultPaths in the path set |
partialPayment | If the payment cannot deliver the entire requested amount, deliver as much as possible, given the constraints |
ownerPaysTransferFee | If true then owner, not sender, pays fee |
offerCrossing | If true then flow is executing offer crossing, not payments |
limitQuality | Do not use liquidity below this quality threshold |
sendMax | Do not spend more than this amount |
j | Journal to write journal messages to |
flowDebugInfo | If non-null a pointer to FlowDebugInfo for debugging |
T& ripple::get | ( | EitherAmount & | amt | ) |
Definition at line 118 of file AmountSpec.h.
IOUAmount& ripple::get< IOUAmount > | ( | EitherAmount & | amt | ) |
Definition at line 126 of file AmountSpec.h.
XRPAmount& ripple::get< XRPAmount > | ( | EitherAmount & | amt | ) |
Definition at line 134 of file AmountSpec.h.
T const& ripple::get | ( | EitherAmount const & | amt | ) |
Definition at line 142 of file AmountSpec.h.
IOUAmount const& ripple::get< IOUAmount > | ( | EitherAmount const & | amt | ) |
Definition at line 150 of file AmountSpec.h.
XRPAmount const& ripple::get< XRPAmount > | ( | EitherAmount const & | amt | ) |
Definition at line 158 of file AmountSpec.h.
AmountSpec ripple::toAmountSpec | ( | STAmount const & | amt | ) |
Definition at line 165 of file AmountSpec.h.
EitherAmount ripple::toEitherAmount | ( | STAmount const & | amt | ) |
Definition at line 189 of file AmountSpec.h.
AmountSpec ripple::toAmountSpec | ( | EitherAmount const & | ea, |
std::optional< Currency > const & | c | ||
) |
Definition at line 197 of file AmountSpec.h.
|
static |
Definition at line 503 of file BookStep.cpp.
|
static |
Definition at line 527 of file BookStep.cpp.
|
static |
Definition at line 710 of file BookStep.cpp.
|
static |
Definition at line 1155 of file BookStep.cpp.
std::pair<TER, std::unique_ptr<Step> > ripple::make_BookStepII | ( | StrandContext const & | ctx, |
Issue const & | in, | ||
Issue const & | out | ||
) |
Definition at line 1180 of file BookStep.cpp.
std::pair<TER, std::unique_ptr<Step> > ripple::make_BookStepIX | ( | StrandContext const & | ctx, |
Issue const & | in | ||
) |
Definition at line 1186 of file BookStep.cpp.
std::pair<TER, std::unique_ptr<Step> > ripple::make_BookStepXI | ( | StrandContext const & | ctx, |
Issue const & | out | ||
) |
Definition at line 1192 of file BookStep.cpp.
std::pair<TER, std::unique_ptr<Step> > ripple::make_DirectStepI | ( | StrandContext const & | ctx, |
AccountID const & | src, | ||
AccountID const & | dst, | ||
Currency const & | c | ||
) |
Definition at line 976 of file DirectStep.cpp.
void ripple::SetUnion | ( | boost::container::flat_set< T > & | dst, |
boost::container::flat_set< T > const & | src | ||
) |
Given two flat sets dst and src, compute dst = dst union src.
dst | set to store the resulting union, and also a source of elements for the union |
src | second source of elements for the union |
Definition at line 35 of file FlatSets.h.
Definition at line 28 of file PathfinderUtils.h.
Definition at line 37 of file PathfinderUtils.h.
bool ripple::convertAllCheck | ( | STAmount const & | a | ) |
Definition at line 46 of file PathfinderUtils.h.
Definition at line 36 of file PaySteps.cpp.
Definition at line 60 of file PaySteps.cpp.
|
static |
Definition at line 66 of file PaySteps.cpp.
|
static |
Definition at line 74 of file PaySteps.cpp.
std::pair< TER, Strand > ripple::toStrand | ( | ReadView const & | sb, |
AccountID const & | src, | ||
AccountID const & | dst, | ||
Issue const & | deliver, | ||
std::optional< Quality > const & | limitQuality, | ||
std::optional< Issue > const & | sendMaxIssue, | ||
STPath const & | path, | ||
bool | ownerPaysTransferFee, | ||
bool | offerCrossing, | ||
beast::Journal | j | ||
) |
Create a Strand for the specified path.
sb | view for trust lines, balances, and attributes like auth and freeze |
src | Account that is sending assets |
dst | Account that is receiving assets |
deliver | Asset the dst account will receive (if issuer of deliver == dst, then accept any issuer) |
limitQuality | Offer crossing BookSteps use this value in an optimization. If, during direct offer crossing, the quality of the tip of the book drops below this value, then evaluating the strand can stop. |
sendMaxIssue | Optional asset to send. |
path | Liquidity sources to use for this strand of the payment. The path contains an ordered collection of the offer books to use and accounts to ripple through. |
ownerPaysTransferFee | false -> charge sender; true -> charge offer owner |
offerCrossing | false -> payment; true -> offer crossing |
j | Journal for logging messages |
Definition at line 135 of file PaySteps.cpp.
std::pair< TER, std::vector< Strand > > ripple::toStrands | ( | ReadView const & | sb, |
AccountID const & | src, | ||
AccountID const & | dst, | ||
Issue const & | deliver, | ||
std::optional< Quality > const & | limitQuality, | ||
std::optional< Issue > const & | sendMax, | ||
STPathSet const & | paths, | ||
bool | addDefaultPath, | ||
bool | ownerPaysTransferFee, | ||
bool | offerCrossing, | ||
beast::Journal | j | ||
) |
Create a Strand for each specified path (including the default path, if indicated)
sb | View for trust lines, balances, and attributes like auth and freeze |
src | Account that is sending assets |
dst | Account that is receiving assets |
deliver | Asset the dst account will receive (if issuer of deliver == dst, then accept any issuer) |
limitQuality | Offer crossing BookSteps use this value in an optimization. If, during direct offer crossing, the quality of the tip of the book drops below this value, then evaluating the strand can stop. |
sendMax | Optional asset to send. |
paths | Paths to use to fullfill the payment. Each path in the pathset contains an ordered collection of the offer books to use and accounts to ripple through. |
addDefaultPath | Determines if the default path should be included |
ownerPaysTransferFee | false -> charge sender; true -> charge offer owner |
offerCrossing | false -> payment; true -> offer crossing |
j | Journal for logging messages |
Definition at line 466 of file PaySteps.cpp.
bool ripple::isDirectXrpToXrp | ( | Strand const & | strand | ) |
Definition at line 611 of file PaySteps.cpp.
bool ripple::isDirectXrpToXrp< XRPAmount, XRPAmount > | ( | Strand const & | strand | ) |
Definition at line 618 of file PaySteps.cpp.
template bool ripple::isDirectXrpToXrp< XRPAmount, IOUAmount > | ( | Strand const & | strand | ) |
template bool ripple::isDirectXrpToXrp< IOUAmount, XRPAmount > | ( | Strand const & | strand | ) |
template bool ripple::isDirectXrpToXrp< IOUAmount, IOUAmount > | ( | Strand const & | strand | ) |
TER ripple::checkFreeze | ( | ReadView const & | view, |
AccountID const & | src, | ||
AccountID const & | dst, | ||
Currency const & | currency | ||
) |
Definition at line 32 of file StepChecks.h.
TER ripple::checkNoRipple | ( | ReadView const & | view, |
AccountID const & | prev, | ||
AccountID const & | cur, | ||
AccountID const & | next, | ||
Currency const & | currency, | ||
beast::Journal | j | ||
) |
Definition at line 61 of file StepChecks.h.
bool ripple::redeems | ( | DebtDirection | dir | ) |
bool ripple::issues | ( | DebtDirection | dir | ) |
std::pair<TER, STPath> ripple::normalizePath | ( | AccountID const & | src, |
AccountID const & | dst, | ||
Issue const & | deliver, | ||
std::optional< Issue > const & | sendMaxIssue, | ||
STPath const & | path | ||
) |
StrandResult<TInAmt, TOutAmt> ripple::flow | ( | PaymentSandbox const & | baseView, |
Strand const & | strand, | ||
std::optional< TInAmt > const & | maxIn, | ||
TOutAmt const & | out, | ||
beast::Journal | j | ||
) |
Request out
amount from a strand.
baseView | Trust lines and balances |
strand | Steps of Accounts to ripple through and offer books to use |
maxIn | Max amount of input allowed |
out | Amount of output requested from the strand |
j | Journal to write log messages to |
Definition at line 103 of file StrandFlow.h.
FlowResult<TInAmt, TOutAmt> ripple::flow | ( | PaymentSandbox const & | baseView, |
std::vector< Strand > const & | strands, | ||
TOutAmt const & | outReq, | ||
bool | partialPayment, | ||
bool | offerCrossing, | ||
std::optional< Quality > const & | limitQuality, | ||
std::optional< STAmount > const & | sendMaxST, | ||
beast::Journal | j, | ||
path::detail::FlowDebugInfo * | flowDebugInfo = nullptr |
||
) |
Request out
amount from a collection of strands.
Attempt to fulfill the payment by using liquidity from the strands in order from least expensive to most expensive
baseView | Trust lines and balances |
strands | Each strand contains the steps of accounts to ripple through and offer books to use |
outReq | Amount of output requested from the strand |
partialPayment | If true allow less than the full payment |
offerCrossing | If true offer crossing, not handling a standard payment |
limitQuality | If present, the minimum quality for any strand taken |
sendMaxST | If present, the maximum STAmount to send |
j | Journal to write journal messages to |
flowDebugInfo | If pointer is non-null, write flow debug info here |
Definition at line 496 of file StrandFlow.h.
bool ripple::operator== | ( | XRPEndpointStep< TDerived > const & | lhs, |
XRPEndpointStep< TDerived > const & | rhs | ||
) |
Definition at line 237 of file XRPEndpointStep.cpp.
std::pair<TER, std::unique_ptr<Step> > ripple::make_XRPEndpointStep | ( | StrandContext const & | ctx, |
AccountID const & | acc | ||
) |
Definition at line 399 of file XRPEndpointStep.cpp.
|
static |
Definition at line 455 of file Pathfinder.cpp.
Definition at line 474 of file Pathfinder.cpp.
Definition at line 924 of file Pathfinder.cpp.
|
static |
loadLedgerInfos Loads the ledger info for the specified ledger/s from the database
pgPool | Link to postgres database |
whichLedger | Specifies the ledger to load via ledger sequence, ledger hash, a range of ledgers, or std::monostate (which loads the most recent) |
app | Application |
Definition at line 160 of file PostgresDatabase.cpp.
|
static |
loadLedgerHelper Load a ledger info from Postgres
pgPool | Link to postgres database |
whichLedger | Specifies sequence or hash of ledger. Passing std::monostate loads the most recent ledger |
app | The Application |
Definition at line 304 of file PostgresDatabase.cpp.
std::unique_ptr< RelationalDatabase > ripple::getPostgresDatabase | ( | Application & | app, |
Config const & | config, | ||
JobQueue & | jobQueue | ||
) |
Definition at line 1052 of file PostgresDatabase.cpp.
std::unique_ptr< RelationalDatabase > ripple::getSQLiteDatabase | ( | Application & | app, |
Config const & | config, | ||
JobQueue & | jobQueue | ||
) |
Definition at line 1736 of file SQLiteDatabase.cpp.
std::pair< std::unique_ptr< DatabaseCon >, std::optional< std::uint64_t > > ripple::openDatabaseBodyDb | ( | DatabaseCon::Setup const & | setup, |
boost::filesystem::path const & | path | ||
) |
openDatabaseBodyDb Opens a database that will store the contents of a file being downloaded, returns its descriptor, and starts a new download process or continues an existing one.
setup | Path to the database and other opening parameters. |
path | Path of the new file to download. |
Definition at line 26 of file Download.cpp.
std::uint64_t ripple::databaseBodyDoPut | ( | soci::session & | session, |
std::string const & | data, | ||
std::string const & | path, | ||
std::uint64_t | fileSize, | ||
std::uint64_t | part, | ||
std::uint16_t | maxRowSizePad | ||
) |
databaseBodyDoPut Saves a new fragment of a downloaded file.
session | Session with the database. |
data | Downloaded fragment of file data to save. |
path | Path to the file currently being downloaded. |
fileSize | Size of the portion of the file already downloaded. |
part | The index of the most recently updated database row. |
maxRowSizePad | A constant padding value that accounts for other data stored in each row of the database. |
Definition at line 65 of file Download.cpp.
void ripple::databaseBodyFinish | ( | soci::session & | session, |
std::ofstream & | fout | ||
) |
databaseBodyFinish Finishes the download process and writes the file to disk.
session | Session with the database. |
fout | Opened file into which the downloaded data from the database will be written. |
Definition at line 142 of file Download.cpp.
void ripple::initPeerFinderDB | ( | soci::session & | session, |
BasicConfig const & | config, | ||
beast::Journal | j | ||
) |
initPeerFinderDB Opens a session with the peer finder database.
session | Session with the peer finder database. |
config | Path to the database and other opening parameters. |
j | Journal. |
Definition at line 25 of file PeerFinder.cpp.
void ripple::updatePeerFinderDB | ( | soci::session & | session, |
int | currentSchemaVersion, | ||
beast::Journal | j | ||
) |
updatePeerFinderDB Updates the peer finder database to a new version.
session | Session with the database. |
currentSchemaVersion | New version of the database. |
j | Journal. |
Definition at line 61 of file PeerFinder.cpp.
void ripple::readPeerFinderDB | ( | soci::session & | session, |
std::function< void(std::string const &, int)> const & | func | ||
) |
readPeerFinderDB Reads all entries from the peer finder database and invokes the given callback for each entry.
session | Session with the database. |
func | Callback to invoke for each entry. |
Definition at line 217 of file PeerFinder.cpp.
void ripple::savePeerFinderDB | ( | soci::session & | session, |
std::vector< PeerFinder::Store::Entry > const & | v | ||
) |
savePeerFinderDB Saves a new entry to the peer finder database.
session | Session with the database. |
v | Entry to save which contains information about a new peer. |
Definition at line 239 of file PeerFinder.cpp.
std::unique_ptr< DatabaseCon > ripple::makeArchiveDB | ( | boost::filesystem::path const & | dir, |
std::string const & | dbName | ||
) |
makeArchiveDB Opens the shard archive database and returns its descriptor.
dir | Path to the database to open. |
dbName | Name of the database. |
Definition at line 25 of file ShardArchive.cpp.
void ripple::readArchiveDB | ( | DatabaseCon & | db, |
std::function< void(std::string const &, int)> const & | func | ||
) |
readArchiveDB Reads entries from the shard archive database and invokes the given callback for each entry.
db | Session with the database. |
func | Callback to invoke for each entry. |
Definition at line 32 of file ShardArchive.cpp.
void ripple::insertArchiveDB | ( | DatabaseCon & | db, |
std::uint32_t | shardIndex, | ||
std::string const & | url | ||
) |
insertArchiveDB Adds an entry to the shard archive database.
db | Session with the database. |
shardIndex | Shard index to add. |
url | Shard download url to add. |
Definition at line 46 of file ShardArchive.cpp.
void ripple::deleteFromArchiveDB | ( | DatabaseCon & | db, |
std::uint32_t | shardIndex | ||
) |
deleteFromArchiveDB Deletes an entry from the shard archive database.
db | Session with the database. |
shardIndex | Shard index to remove from the database. |
Definition at line 56 of file ShardArchive.cpp.
void ripple::dropArchiveDB | ( | DatabaseCon & | db | ) |
dropArchiveDB Removes a table in the shard archive database.
db | Session with the database. |
Definition at line 63 of file ShardArchive.cpp.
void ripple::initStateDB | ( | soci::session & | session, |
BasicConfig const & | config, | ||
std::string const & | dbName | ||
) |
LedgerIndex ripple::getCanDelete | ( | soci::session & | session | ) |
LedgerIndex ripple::setCanDelete | ( | soci::session & | session, |
LedgerIndex | canDelete | ||
) |
SavedState ripple::getSavedState | ( | soci::session & | session | ) |
getSavedState Returns the saved state.
session | Session with the database. |
void ripple::setSavedState | ( | soci::session & | session, |
SavedState const & | state | ||
) |
setSavedState Saves the given state.
session | Session with the database. |
state | The SavedState structure which contains the names of the writable database, the archive database and the last rotated ledger sequence. |
void ripple::setLastRotated | ( | soci::session & | session, |
LedgerIndex | seq | ||
) |
DatabasePair ripple::makeShardCompleteLedgerDBs | ( | Config const & | config, |
DatabaseCon::Setup const & | setup | ||
) |
makeShardCompleteLedgerDBs Opens shard databases for verified shards and returns their descriptors.
config | Config object. |
setup | Path to the databases and other opening parameters. |
Definition at line 28 of file UnitaryShard.cpp.
DatabasePair ripple::makeShardIncompleteLedgerDBs | ( | Config const & | config, |
DatabaseCon::Setup const & | setup, | ||
DatabaseCon::CheckpointerSetup const & | checkpointerSetup | ||
) |
makeShardIncompleteLedgerDBs Opens shard databases for partially downloaded or unverified shards and returns their descriptors.
config | Config object. |
setup | Path to the databases and other opening parameters. |
checkpointerSetup | Checkpointer parameters. |
Definition at line 48 of file UnitaryShard.cpp.
bool ripple::updateLedgerDBs | ( | soci::session & | txdb, |
soci::session & | lgrdb, | ||
std::shared_ptr< Ledger const > const & | ledger, | ||
std::uint32_t | index, | ||
std::atomic< bool > & | stop, | ||
beast::Journal | j | ||
) |
updateLedgerDBs Saves the given ledger to shard databases.
txdb | Session with the transaction databases. |
lgrdb | Session with the ledger databases. |
ledger | Ledger to save. |
index | Index of the shard that owns the ledger. |
stop | Reference to an atomic flag that can stop the process if raised. |
j | Journal |
Definition at line 71 of file UnitaryShard.cpp.
std::unique_ptr< DatabaseCon > ripple::makeAcquireDB | ( | DatabaseCon::Setup const & | setup, |
DatabaseCon::CheckpointerSetup const & | checkpointerSetup | ||
) |
makeAcquireDB Opens the shard acquire database and returns its descriptor.
setup | Path to the database and other opening parameters. |
checkpointerSetup | Checkpointer parameters. |
Definition at line 208 of file UnitaryShard.cpp.
void ripple::insertAcquireDBIndex | ( | soci::session & | session, |
std::uint32_t | index | ||
) |
insertAcquireDBIndex Adds a new shard index to the shard acquire database.
session | Session with the database. |
index | Index to add. |
Definition at line 221 of file UnitaryShard.cpp.
std::pair< bool, std::optional< std::string > > ripple::selectAcquireDBLedgerSeqs | ( | soci::session & | session, |
std::uint32_t | index | ||
) |
selectAcquireDBLedgerSeqs Returns the set of acquired ledgers for the given shard.
session | Session with the database. |
index | Shard index. |
Definition at line 229 of file UnitaryShard.cpp.
std::pair< bool, AcquireShardSeqsHash > ripple::selectAcquireDBLedgerSeqsHash | ( | soci::session & | session, |
std::uint32_t | index | ||
) |
selectAcquireDBLedgerSeqsHash Returns the set of acquired ledger sequences and the last ledger hash for the shard with the provided index.
session | Session with the database. |
index | Shard index. |
Definition at line 256 of file UnitaryShard.cpp.
void ripple::updateAcquireDB | ( | soci::session & | session, |
std::shared_ptr< Ledger const > const & | ledger, | ||
std::uint32_t | index, | ||
std::uint32_t | lastSeq, | ||
std::optional< std::string > const & | seqs | ||
) |
updateAcquireDB Updates information in the acquire DB.
session | Session with the database. |
ledger | Ledger to save into the database. |
index | Shard index. |
lastSeq | Last acquired ledger sequence. |
seqs | Current set of acquired ledger sequences if it's not empty. |
Definition at line 287 of file UnitaryShard.cpp.
bool ripple::doVacuumDB | ( | DatabaseCon::Setup const & | setup | ) |
doVacuumDB Creates, initialises, and performs cleanup on a database.
setup | Path to the database and other opening parameters. |
Definition at line 26 of file Vacuum.cpp.
std::unique_ptr< DatabaseCon > ripple::makeWalletDB | ( | DatabaseCon::Setup const & | setup | ) |
makeWalletDB Opens the wallet database and returns it.
setup | Path to the database and other opening parameters. |
Definition at line 26 of file Wallet.cpp.
std::unique_ptr< DatabaseCon > ripple::makeTestWalletDB | ( | DatabaseCon::Setup const & | setup, |
std::string const & | dbname | ||
) |
makeTestWalletDB Opens a test wallet database with an arbitrary name.
setup | Path to the database and other opening parameters. |
dbname | Name of the database. |
Definition at line 34 of file Wallet.cpp.
void ripple::getManifests | ( | soci::session & | session, |
std::string const & | dbTable, | ||
ManifestCache & | mCache, | ||
beast::Journal | j | ||
) |
getManifests Loads a manifest from the wallet database and stores it in the cache.
session | Session with the database. |
dbTable | Name of the database table from which the manifest will be extracted. |
mCache | Cache for storing the manifest. |
j | Journal. |
Definition at line 42 of file Wallet.cpp.
|
static |
Definition at line 75 of file Wallet.cpp.
void ripple::saveManifests | ( | soci::session & | session, |
std::string const & | dbTable, | ||
std::function< bool(PublicKey const &)> const & | isTrusted, | ||
hash_map< PublicKey, Manifest > const & | map, | ||
beast::Journal | j | ||
) |
saveManifests Saves all given manifests to the database.
session | Session with the database. |
dbTable | Name of the database table that will store the manifest. |
isTrusted | Callback that returns true if the key is trusted. |
map | Maps public keys to manifests. |
j | Journal. |
Definition at line 90 of file Wallet.cpp.
void ripple::addValidatorManifest | ( | soci::session & | session, |
std::string const & | serialized | ||
) |
addValidatorManifest Saves the manifest of a validator to the database.
Definition at line 115 of file Wallet.cpp.
void ripple::clearNodeIdentity | ( | soci::session & | session | ) |
Delete any saved public/private key associated with this node.
Definition at line 123 of file Wallet.cpp.
Returns a stable public and private key for this node.
The node's public identity is defined by a secp256k1 keypair that is (normally) randomly generated. This function will return such a keypair, securely generating one if needed.
session | Session with the database. |
Definition at line 129 of file Wallet.cpp.
std::unordered_set< PeerReservation, beast::uhash<>, KeyEqual > ripple::getPeerReservationTable | ( | soci::session & | session, |
beast::Journal | j | ||
) |
getPeerReservationTable Returns the peer reservation table.
session | Session with the database. |
j | Journal. |
Definition at line 166 of file Wallet.cpp.
void ripple::insertPeerReservation | ( | soci::session & | session, |
PublicKey const & | nodeId, | ||
std::string const & | description | ||
) |
insertPeerReservation Adds an entry to the peer reservation table.
session | Session with the database. |
nodeId | Public key of the node. |
description | Description of the node. |
Definition at line 203 of file Wallet.cpp.
void ripple::deletePeerReservation | ( | soci::session & | session, |
PublicKey const & | nodeId | ||
) |
deletePeerReservation Deletes an entry from the peer reservation table.
session | Session with the database. |
nodeId | Public key of the node to remove. |
Definition at line 217 of file Wallet.cpp.
bool ripple::createFeatureVotes | ( | soci::session & | session | ) |
createFeatureVotes Creates the FeatureVote table if it does not exist.
session | Session with the wallet database. |
Definition at line 224 of file Wallet.cpp.
void ripple::readAmendments | ( | soci::session & | session, |
std::function< void(boost::optional< std::string > amendment_hash, boost::optional< std::string > amendment_name, boost::optional< AmendmentVote > vote)> const & | callback | ||
) |
readAmendments Reads all amendments from the FeatureVotes table.
session | Session with the wallet database. |
callback | Callback called for each amendment with its hash, name and optionally a flag denoting whether the amendment should be vetoed. |
Definition at line 248 of file Wallet.cpp.
void ripple::voteAmendment | ( | soci::session & | session, |
uint256 const & | amendment, | ||
std::string const & | name, | ||
AmendmentVote | vote | ||
) |
voteAmendment Set the veto value for a particular amendment.
session | Session with the wallet database. |
amendment | Hash of the amendment. |
name | Name of the amendment. |
vote | Whether to vote in favor of this amendment. |
Definition at line 284 of file Wallet.cpp.
T ripple::rangeCheckedCast | ( | C | c | ) |
Definition at line 252 of file RelationalDatabase.h.
std::vector<uint256> ripple::getMarkers | ( | size_t | numMarkers | ) |
Parititions the uint256 keyspace into numMarkers partitions, each of equal size.
Definition at line 177 of file ETLHelpers.h.
Json::Value ripple::forwardToP2p | ( | RPC::JsonContext & | context | ) |
Forward a JSON request to a p2p node and return the response.
context | context of the request |
Definition at line 28 of file P2pProxy.cpp.
std::unique_ptr< org::xrpl::rpc::v1::XRPLedgerAPIService::Stub > ripple::getP2pForwardingStub | ( | RPC::Context & | context | ) |
Get stub used to forward gRPC requests to a p2p node.
context | context of the request |
Definition at line 35 of file P2pProxy.cpp.
bool ripple::shouldForwardToP2p | ( | RPC::JsonContext & | context | ) |
Whether a request should be forwarded, based on request parameters.
context | context of the request |
Definition at line 45 of file P2pProxy.cpp.
bool ripple::needCurrentOrClosed | ( | Request & | request | ) |
Definition at line 47 of file P2pProxy.h.
bool ripple::shouldForwardToP2p | ( | RPC::GRPCContext< Request > & | context, |
RPC::Condition | condition | ||
) |
Whether a request should be forwarded, based on request parameters.
context | context of the request @condition required condition for the request |
Definition at line 96 of file P2pProxy.h.
std::pair< Validity, std::string > ripple::checkValidity | ( | HashRouter & | router, |
STTx const & | tx, | ||
Rules const & | rules, | ||
Config const & | config | ||
) |
Checks transaction signature and local checks.
Validity
enum representing how valid the STTx
is and, if not Valid
, a reason string.std::pair
, where .first
is the status, and .second
is the reason if appropriate.void ripple::forceValidity | ( | HashRouter & | router, |
uint256 const & | txid, | ||
Validity | validity | ||
) |
Sets the validity of a given transaction in the cache.
std::pair< TER, bool > ripple::apply | ( | Application & | app, |
OpenView & | view, | ||
STTx const & | tx, | ||
ApplyFlags | flags, | ||
beast::Journal | journal | ||
) |
Apply a transaction to an OpenView
.
This function is the canonical way to apply a transaction to a ledger. It rolls the validation and application steps into one function. To do the steps manually, the correct calling order is:
The result of one function must be passed to the next. The preflight
result can be safely cached and reused asynchronously, but preclaim
and doApply
must be called in the same thread and with the same view.
For open ledgers, the Transactor
will catch exceptions and return tefEXCEPTION
. For closed ledgers, the Transactor
will attempt to only charge a fee, and return tecFAILED_PROCESSING
.
If the Transactor
gets an exception while trying to charge the fee, it will be caught and turned into tefEXCEPTION
.
For network health, a Transactor
makes its best effort to at least charge a fee if the ledger is closed.
app | The current running Application . |
view | The open ledger that the transaction will attempt to be applied to. |
tx | The transaction to be checked. |
flags | ApplyFlags describing processing options. |
journal | A journal. |
TER
and a bool
indicating whether or not the transaction was applied. ApplyResult ripple::applyTransaction | ( | Application & | app, |
OpenView & | view, | ||
STTx const & | tx, | ||
bool | retryAssured, | ||
ApplyFlags | flags, | ||
beast::Journal | journal | ||
) |
Transaction application helper.
Provides more detailed logging and decodes the correct behavior based on the TER
type
bool ripple::isTecClaimHardFail | ( | TER | ter, |
ApplyFlags | flags | ||
) |
Return true if the transaction can claim a fee (tec), and the ApplyFlags
do not allow soft failures.
Definition at line 36 of file applySteps.h.
PreflightResult ripple::preflight | ( | Application & | app, |
Rules const & | rules, | ||
STTx const & | tx, | ||
ApplyFlags | flags, | ||
beast::Journal | j | ||
) |
Gate a transaction based on static information.
The transaction is checked against all possible validity constraints that do not require a ledger.
app | The current running Application . |
rules | The Rules in effect at the time of the check. |
tx | The transaction to be checked. |
flags | ApplyFlags describing processing options. |
j | A journal. |
PreflightResult
object containing, among other things, the TER
code. Definition at line 473 of file applySteps.cpp.
PreclaimResult ripple::preclaim | ( | PreflightResult const & | preflightResult, |
Application & | app, | ||
OpenView const & | view | ||
) |
Gate a transaction based on static ledger information.
The transaction is checked against all possible validity constraints that DO require a ledger.
If preclaim succeeds, then the transaction is very likely to claim a fee. This will determine if the transaction is safe to relay without being applied to the open ledger.
"Succeeds" in this case is defined as returning a tes
or tec
, since both lead to claiming a fee.
preflight
preflightResult | The result of a previous call to preflight for the transaction. |
app | The current running Application . |
view | The open ledger that the transaction will attempt to be applied to. |
PreclaimResult
object containing, among other things the TER
code and the base fee value for this transaction. Definition at line 493 of file applySteps.cpp.
Compute only the expected base fee for a transaction.
Base fees are transaction specific, so any calculation needing them must get the base fee for each transaction.
No validation is done or implied by this function.
Caller is responsible for handling any exceptions. Since none should be thrown, that will usually mean terminating.
view | The current open ledger. |
tx | The transaction to be checked. |
Definition at line 539 of file applySteps.cpp.
Return the minimum fee that an "ordinary" transaction would pay.
When computing the FeeLevel for a transaction the TxQ sometimes needs the know what an "ordinary" or reference transaction would be required to pay.
view | The current open ledger. |
tx | The transaction so the correct multisigner count is used. |
Definition at line 545 of file applySteps.cpp.
std::pair< TER, bool > ripple::doApply | ( | PreclaimResult const & | preclaimResult, |
Application & | app, | ||
OpenView & | view | ||
) |
Apply a prechecked transaction to an OpenView.
preflight
and preclaim
preclaimResult | The result of a previous call to preclaim for the transaction. |
app | The current running Application . |
view | The open ledger that the transaction will attempt to be applied to. |
TER
and a bool
indicating whether or not the transaction was applied. Definition at line 551 of file applySteps.cpp.
TxConsequences ripple::consequences_helper | ( | PreflightContext const & | ctx | ) |
Definition at line 58 of file applySteps.cpp.
std::pair<NotTEC, TxConsequences> ripple::invoke_preflight_helper | ( | PreflightContext const & | ctx | ) |
Definition at line 85 of file applySteps.cpp.
|
static |
Definition at line 94 of file applySteps.cpp.
|
static |
Definition at line 162 of file applySteps.cpp.
Definition at line 258 of file applySteps.cpp.
|
static |
Definition at line 360 of file applySteps.cpp.
|
static |
Has the specified time passed?
now | the current time |
mark | the cutoff point |
Definition at line 88 of file Escrow.cpp.
Definition at line 277 of file Escrow.cpp.
InvariantChecks ripple::getInvariantChecks | ( | ) |
get a tuple of all invariant checks
Definition at line 392 of file InvariantCheck.h.
std::ostream& ripple::operator<< | ( | std::ostream & | os, |
TOffer< TIn, TOut > const & | offer | ||
) |
|
static |
Definition at line 95 of file OfferStream.cpp.
|
static |
Definition at line 107 of file OfferStream.cpp.
|
static |
Definition at line 124 of file OfferStream.cpp.
|
static |
Definition at line 116 of file PayChan.cpp.
|
static |
Definition at line 157 of file SetSignerList.cpp.
|
static |
Definition at line 180 of file SetSignerList.cpp.
|
static |
NotTEC ripple::preflight0 | ( | PreflightContext const & | ctx | ) |
Performs early sanity checks on the txid.
Definition at line 41 of file Transactor.cpp.
NotTEC ripple::preflight1 | ( | PreflightContext const & | ctx | ) |
Performs early sanity checks on the account and fee fields.
Definition at line 78 of file Transactor.cpp.
NotTEC ripple::preflight2 | ( | PreflightContext const & | ctx | ) |
Checks whether the signature appears valid.
Definition at line 130 of file Transactor.cpp.
|
static |
Definition at line 722 of file Transactor.cpp.
|
static |
Definition at line 742 of file Transactor.cpp.
void ripple::generalized_set_intersection | ( | InputIter1 | first1, |
InputIter1 | last1, | ||
InputIter2 | first2, | ||
InputIter2 | last2, | ||
Action | action, | ||
Comp | comp | ||
) |
Definition at line 37 of file algorithm.h.
FwdIter1 ripple::remove_if_intersect_or_match | ( | FwdIter1 | first1, |
FwdIter1 | last1, | ||
InputIter2 | first2, | ||
InputIter2 | last2, | ||
Pred | pred, | ||
Comp | comp | ||
) |
Definition at line 75 of file algorithm.h.
void ripple::extractTarLz4 | ( | boost::filesystem::path const & | src, |
boost::filesystem::path const & | dst | ||
) |
Extract a tar archive compressed with lz4.
src | the path of the archive to be extracted |
dst | the directory to extract to |
runtime_error |
Definition at line 31 of file Archive.cpp.
std::string ripple::base64_encode | ( | std::uint8_t const * | data, |
std::size_t | len | ||
) |
Definition at line 236 of file base64.cpp.
std::string ripple::base64_encode | ( | std::string const & | s | ) |
std::string ripple::base64_decode | ( | std::string const & | data | ) |
Definition at line 245 of file base64.cpp.
|
constexpr |
Definition at line 554 of file base_uint.h.
|
constexpr |
Definition at line 576 of file base_uint.h.
|
constexpr |
Definition at line 584 of file base_uint.h.
|
constexpr |
Definition at line 592 of file base_uint.h.
|
constexpr |
Definition at line 599 of file base_uint.h.
|
constexpr |
Definition at line 606 of file base_uint.h.
|
constexpr |
Definition at line 613 of file base_uint.h.
std::string ripple::to_string | ( | base_uint< Bits, Tag > const & | a | ) |
Definition at line 621 of file base_uint.h.
std::ostream& ripple::operator<< | ( | std::ostream & | out, |
base_uint< Bits, Tag > const & | u | ||
) |
Definition at line 628 of file base_uint.h.
bool ripple::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, the variable is unchanged.
true
if value was set. Definition at line 313 of file BasicConfig.h.
bool ripple::set | ( | T & | target, |
T const & | defaultValue, | ||
std::string const & | name, | ||
Section const & | section | ||
) |
Set a value from a configuration Section If the named value is not found or doesn't cast to T, the variable is assigned the default.
true
if the named value was found and is valid. Definition at line 335 of file BasicConfig.h.
T ripple::get | ( | Section const & | section, |
std::string const & | name, | ||
T const & | defaultValue = T{} |
||
) |
Retrieve a key/value pair from a section.
Definition at line 353 of file BasicConfig.h.
std::string ripple::get | ( | Section const & | section, |
std::string const & | name, | ||
const char * | defaultValue | ||
) |
Definition at line 368 of file BasicConfig.h.
bool ripple::get_if_exists | ( | Section const & | section, |
std::string const & | name, | ||
T & | v | ||
) |
Definition at line 384 of file BasicConfig.h.
bool ripple::get_if_exists< bool > | ( | Section const & | section, |
std::string const & | name, | ||
bool & | v | ||
) |
Definition at line 391 of file BasicConfig.h.
|
constexprnoexcept |
Definition at line 27 of file ByteUtilities.h.
|
constexprnoexcept |
Definition at line 34 of file ByteUtilities.h.
std::string ripple::to_string | ( | date::sys_time< Duration > | tp | ) |
std::string ripple::to_string | ( | NetClock::time_point | tp | ) |
Stopwatch& ripple::stopwatch | ( | ) |
void ripple::LogThrow | ( | std::string const & | title | ) |
Generates and logs a call stack.
Definition at line 42 of file contract.cpp.
void ripple::Rethrow | ( | ) |
Rethrow the exception currently being handled.
When called from within a catch block, it will pass control to the next matching exception handler, if any. Otherwise, std::terminate will be called.
Definition at line 48 of file contract.h.
void ripple::Throw | ( | Args &&... | args | ) |
Definition at line 56 of file contract.h.
|
noexcept |
Called when faulty logic causes a broken invariant.
Definition at line 48 of file contract.cpp.
ripple::Unexpected | ( | E(&) | [N] | ) | -> Unexpected< E const * > |
std::pair<bool, Dest> ripple::mulDiv | ( | Source1 | value, |
Dest | mul, | ||
Source2 | div | ||
) |
Definition at line 468 of file FeeUnits.h.
std::pair<bool, Dest> ripple::mulDiv | ( | Dest | value, |
Source1 | mul, | ||
Source2 | div | ||
) |
Definition at line 479 of file FeeUnits.h.
std::pair<bool, Dest> ripple::mulDiv | ( | std::uint64_t | value, |
Dest | mul, | ||
std::uint64_t | div | ||
) |
Definition at line 487 of file FeeUnits.h.
std::pair<bool, Dest> ripple::mulDiv | ( | Dest | value, |
std::uint64_t | mul, | ||
std::uint64_t | div | ||
) |
Definition at line 496 of file FeeUnits.h.
std::pair<bool, std::uint64_t> ripple::mulDiv | ( | Source1 | value, |
std::uint64_t | mul, | ||
Source2 | div | ||
) |
Definition at line 507 of file FeeUnits.h.
std::pair<bool, std::uint64_t> ripple::mulDiv | ( | std::uint64_t | value, |
Source1 | mul, | ||
Source2 | div | ||
) |
Definition at line 520 of file FeeUnits.h.
|
constexprnoexcept |
Definition at line 532 of file FeeUnits.h.
|
constexprnoexcept |
Definition at line 544 of file FeeUnits.h.
std::string ripple::getFileContents | ( | boost::system::error_code & | ec, |
boost::filesystem::path const & | sourcePath, | ||
std::optional< std::size_t > | maxSize = std::nullopt |
||
) |
Definition at line 25 of file FileUtilities.cpp.
void ripple::writeFileContents | ( | boost::system::error_code & | ec, |
boost::filesystem::path const & | destPath, | ||
std::string const & | contents | ||
) |
Definition at line 66 of file FileUtilities.cpp.
std::ostream& ripple::operator<< | ( | std::ostream & | os, |
Section const & | section | ||
) |
Definition at line 111 of file BasicConfig.cpp.
std::ostream& ripple::operator<< | ( | std::ostream & | ss, |
BasicConfig const & | c | ||
) |
Definition at line 189 of file BasicConfig.cpp.
bool ripple::getSTNumberSwitchover | ( | ) |
Definition at line 42 of file IOUAmount.cpp.
void ripple::setSTNumberSwitchover | ( | bool | v | ) |
Definition at line 48 of file IOUAmount.cpp.
std::string ripple::to_string | ( | IOUAmount const & | amount | ) |
Definition at line 176 of file IOUAmount.cpp.
IOUAmount ripple::mulRatio | ( | IOUAmount const & | amt, |
std::uint32_t | num, | ||
std::uint32_t | den, | ||
bool | roundUp | ||
) |
Definition at line 182 of file IOUAmount.cpp.
std::unique_ptr< beast::Journal::Sink > ripple::setDebugLogSink | ( | std::unique_ptr< beast::Journal::Sink > | sink | ) |
beast::Journal ripple::debugLog | ( | ) |
std::shared_ptr< boost::asio::ssl::context > ripple::make_SSLContext | ( | std::string const & | cipherList | ) |
Create a self-signed SSL context that allows anonymous Diffie Hellman.
Definition at line 364 of file make_SSLContext.cpp.
std::shared_ptr< boost::asio::ssl::context > ripple::make_SSLContextAuthed | ( | std::string const & | keyFile, |
std::string const & | certFile, | ||
std::string const & | chainFile, | ||
std::string const & | cipherList | ||
) |
Create an authenticated SSL context using the specified files.
Definition at line 375 of file make_SSLContext.cpp.
std::pair< bool, std::uint64_t > ripple::mulDiv | ( | std::uint64_t | value, |
std::uint64_t | mul, | ||
std::uint64_t | div | ||
) |
Return value*mul/div accurately.
Computes the result of the multiplication and division in a single step, avoiding overflow and retaining precision. Throws: None Returns: std::pair
: first
is false
if the calculation overflows, true
if the calculation is safe. second
is the result of the calculation if first
is false
, max value of uint64_t
if true
.
Definition at line 29 of file mulDiv.cpp.
|
static |
Definition at line 346 of file Number.cpp.
std::string ripple::to_string | ( | Number const & | amount | ) |
Definition at line 508 of file Number.cpp.
Definition at line 601 of file Number.cpp.
Definition at line 624 of file Number.cpp.
Definition at line 689 of file Number.cpp.
Definition at line 729 of file Number.cpp.
|
static |
Definition at line 32 of file partitioned_unordered_map.cpp.
|
static |
Definition at line 42 of file partitioned_unordered_map.cpp.
|
static |
Definition at line 48 of file partitioned_unordered_map.cpp.
|
static |
Definition at line 54 of file partitioned_unordered_map.cpp.
std::size_t ripple::partitioner | ( | Key const & | key, |
std::size_t const | numPartitions | ||
) |
Definition at line 61 of file partitioned_unordered_map.cpp.
template std::size_t ripple::partitioner< LedgerIndex > | ( | LedgerIndex const & | key, |
std::size_t const | numPartitions | ||
) |
template std::size_t ripple::partitioner< uint256 > | ( | uint256 const & | key, |
std::size_t const | numPartitions | ||
) |
template std::size_t ripple::partitioner< SHAMapHash > | ( | SHAMapHash const & | key, |
std::size_t const | numPartitions | ||
) |
template std::size_t ripple::partitioner< std::string > | ( | std::string const & | key, |
std::size_t const | numPartitions | ||
) |
std::string ripple::sqlBlobLiteral | ( | Blob const & | blob | ) |
Format arbitrary binary data as an SQLite "blob literal".
In SQLite, blob literals must be encoded when used in a query. Per https://sqlite.org/lang_expr.html#literal_values_constants_ they are encoded as string literals containing hexadecimal data and preceded by a single 'X' character.
blob | An arbitrary blob of binary data |
Definition at line 33 of file StringUtilities.cpp.
bool ripple::parseUrl | ( | parsedURL & | pUrl, |
std::string const & | strUrl | ||
) |
Definition at line 47 of file StringUtilities.cpp.
Stream& ripple::join | ( | Stream & | s, |
Iter | iter, | ||
Iter | end, | ||
std::string const & | delimiter | ||
) |
|
constexpr |
Calculate one number divided by another number in percentage.
The result is rounded up to the next integer, and capped in the range [0,100] E.g. calculatePercent(1, 100) = 1 because 1/100 = 0.010000 calculatePercent(1, 99) = 2 because 1/99 = 0.010101 calculatePercent(0, 100) = 0 calculatePercent(100, 100) = 100 calculatePercent(200, 100) = 100 because the result is capped to 100
count | dividend |
total | divisor |
Definition at line 44 of file MathUtilities.h.
beast::xor_shift_engine& ripple::default_prng | ( | ) |
Return the default random engine.
This engine is guaranteed to be deterministic, but by default will be randomly seeded. It is NOT cryptographically secure and MUST NOT be used to generate randomness that will be used for keys, secure cookies, IVs, padding, etc.
Each thread gets its own instance of the engine which will be randomly seeded.
Definition at line 65 of file ripple/basics/random.h.
std::enable_if_t< std::is_integral<Integral>::value && detail::is_engine<Engine>::value, Integral> ripple::rand_int | ( | Engine & | engine, |
Integral | min, | ||
Integral | max | ||
) |
Return a uniformly distributed random integer.
min | The smallest value to return. If not specified the value defaults to 0. |
max | The largest value to return. If not specified the value defaults to the largest value that can be represented. |
The randomness is generated by the specified engine (or the default engine if one is not specified). The result is cryptographically secure only when the engine passed into the function is cryptographically secure.
Definition at line 115 of file ripple/basics/random.h.
std::enable_if_t<std::is_integral<Integral>::value, Integral> ripple::rand_int | ( | Integral | min, |
Integral | max | ||
) |
Definition at line 127 of file ripple/basics/random.h.
std::enable_if_t< std::is_integral<Integral>::value && detail::is_engine<Engine>::value, Integral> ripple::rand_int | ( | Engine & | engine, |
Integral | max | ||
) |
Definition at line 136 of file ripple/basics/random.h.
std::enable_if_t<std::is_integral<Integral>::value, Integral> ripple::rand_int | ( | Integral | max | ) |
Definition at line 143 of file ripple/basics/random.h.
std::enable_if_t< std::is_integral<Integral>::value && detail::is_engine<Engine>::value, Integral> ripple::rand_int | ( | Engine & | engine | ) |
Definition at line 152 of file ripple/basics/random.h.
std::enable_if_t<std::is_integral<Integral>::value, Integral> ripple::rand_int | ( | ) |
Definition at line 159 of file ripple/basics/random.h.
std::enable_if_t< (std::is_same<Byte, unsigned char>::value || std::is_same<Byte, std::uint8_t>::value) && detail::is_engine<Engine>::value, Byte> ripple::rand_byte | ( | Engine & | engine | ) |
Return a random byte.
Definition at line 173 of file ripple/basics/random.h.
std::enable_if_t< (std::is_same<Byte, unsigned char>::value || std::is_same<Byte, std::uint8_t>::value), Byte> ripple::rand_byte | ( | ) |
Definition at line 186 of file ripple/basics/random.h.
bool ripple::rand_bool | ( | Engine & | engine | ) |
Return a random boolean value.
Definition at line 196 of file ripple/basics/random.h.
bool ripple::rand_bool | ( | ) |
Definition at line 202 of file ripple/basics/random.h.
ClosedInterval<T> ripple::range | ( | T | low, |
T | high | ||
) |
Create a closed range interval.
Helper function to create a closed range interval without having to qualify the template argument.
Definition at line 53 of file RangeSet.h.
std::string ripple::to_string | ( | ClosedInterval< T > const & | ci | ) |
Convert a ClosedInterval to a styled string.
The styled string is "c.first()-c.last()" if c.first() != c.last() "c.first()" if c.first() == c.last()
ci | The closed interval to convert |
Definition at line 82 of file RangeSet.h.
std::string ripple::to_string | ( | RangeSet< T > const & | rs | ) |
Convert the given RangeSet to a styled string.
The styled string representation is the set of disjoint intervals joined by commas. The string "empty" is returned if the set is empty.
rs | The rangeset to convert |
Definition at line 99 of file RangeSet.h.
bool ripple::from_string | ( | RangeSet< T > & | rs, |
std::string const & | s | ||
) |
Convert the given styled string to a RangeSet.
The styled string representation is the set of disjoint intervals joined by commas.
rs | The set to be populated |
s | The styled string to convert |
Definition at line 123 of file RangeSet.h.
std::optional<T> ripple::prevMissing | ( | RangeSet< T > const & | rs, |
T | t, | ||
T | minVal = 0 |
||
) |
Find the largest value not in the set that is less than a given value.
rs | The set of interest |
t | The value that must be larger than the result |
minVal | (Default is 0) The smallest allowed value |
Definition at line 182 of file RangeSet.h.
|
constexprnoexcept |
Definition at line 42 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 58 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 66 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 78 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 90 of file safe_cast.h.
|
constexprnoexcept |
Definition at line 98 of file safe_cast.h.
ripple::scope_exit | ( | EF | ) | -> scope_exit< EF > |
ripple::scope_fail | ( | EF | ) | -> scope_fail< EF > |
ripple::scope_success | ( | EF | ) | -> scope_success< EF > |
bool ripple::operator!= | ( | SHAMapHash const & | x, |
SHAMapHash const & | y | ||
) |
Definition at line 106 of file SHAMapHash.h.
void ripple::hash_append | ( | Hasher & | h, |
Slice const & | v | ||
) |
Stream& ripple::operator<< | ( | Stream & | s, |
Slice const & | v | ||
) |
std::enable_if_t< std::is_same<T, char>::value || std::is_same<T, unsigned char>::value, Slice> ripple::makeSlice | ( | std::array< T, N > const & | a | ) |
std::enable_if_t< std::is_same<T, char>::value || std::is_same<T, unsigned char>::value, Slice> ripple::makeSlice | ( | std::vector< T, Alloc > const & | v | ) |
Slice ripple::makeSlice | ( | std::basic_string< char, Traits, Alloc > const & | s | ) |
std::string ripple::strHex | ( | FwdIt | begin, |
FwdIt | end | ||
) |
std::string ripple::strHex | ( | T const & | from | ) |
std::optional<Blob> ripple::strUnHex | ( | std::size_t | strSize, |
Iterator | begin, | ||
Iterator | end | ||
) |
Definition at line 50 of file StringUtilities.h.
std::optional<Blob> ripple::strUnHex | ( | std::string const & | strSrc | ) |
Definition at line 105 of file StringUtilities.h.
std::optional<Blob> ripple::strViewUnHex | ( | boost::string_view const & | strSrc | ) |
Definition at line 111 of file StringUtilities.h.
std::string ripple::trim_whitespace | ( | std::string | str | ) |
std::optional<std::uint64_t> ripple::to_uint64 | ( | std::string const & | s | ) |
bool ripple::isProperlyFormedTomlDomain | ( | std::string const & | domain | ) |
Determines if the given string looks like a TOML-file hosting domain.
Do not use this function to determine if a particular string is a valid domain, as this function may reject domains that are otherwise valid and doesn't check whether the TLD is valid.
std::enable_if<std::is_arithmetic<T>::value, std::string>::type ripple::to_string | ( | T | t | ) |
to_string() generalizes std::to_string to handle bools, chars, and strings.
It's also possible to provide implementation of to_string for a class which needs a string implementation.
Definition at line 36 of file ToString.h.
std::string ripple::to_string | ( | bool | b | ) |
Definition at line 42 of file ToString.h.
std::string ripple::to_string | ( | char | c | ) |
Definition at line 48 of file ToString.h.
std::string ripple::to_string | ( | std::string | s | ) |
Definition at line 54 of file ToString.h.
std::string ripple::to_string | ( | char const * | s | ) |
Definition at line 60 of file ToString.h.
std::basic_ostream<Char, Traits>& ripple::operator<< | ( | std::basic_ostream< Char, Traits > & | os, |
const XRPAmount & | q | ||
) |
Definition at line 261 of file XRPAmount.h.
std::string ripple::to_string | ( | XRPAmount const & | amount | ) |
Definition at line 267 of file XRPAmount.h.
XRPAmount ripple::mulRatio | ( | XRPAmount const & | amt, |
std::uint32_t | num, | ||
std::uint32_t | den, | ||
bool | roundUp | ||
) |
Definition at line 273 of file XRPAmount.h.
bool ripple::shouldCloseLedger | ( | bool | anyTransactions, |
std::size_t | prevProposers, | ||
std::size_t | proposersClosed, | ||
std::size_t | proposersValidated, | ||
std::chrono::milliseconds | prevRoundTime, | ||
std::chrono::milliseconds | timeSincePrevClose, | ||
std::chrono::milliseconds | openTime, | ||
std::chrono::milliseconds | idleInterval, | ||
ConsensusParms const & | parms, | ||
beast::Journal | j | ||
) |
Determines whether the current ledger should close at this time.
This function should be called when a ledger is open and there is no close in progress, or when a transaction is received and no close is in progress.
anyTransactions | indicates whether any transactions have been received |
prevProposers | proposers in the last closing |
proposersClosed | proposers who have currently closed this ledger |
proposersValidated | proposers who have validated the last closed ledger |
prevRoundTime | time for the previous ledger to reach consensus |
timeSincePrevClose | time since the previous ledger's (possibly rounded) close time |
openTime | duration this ledger has been open |
idleInterval | the network's desired idle interval |
parms | Consensus constant parameters |
j | journal for logging |
Definition at line 26 of file Consensus.cpp.
bool ripple::checkConsensusReached | ( | std::size_t | agreeing, |
std::size_t | total, | ||
bool | count_self, | ||
std::size_t | minConsensusPct | ||
) |
Definition at line 86 of file Consensus.cpp.
ConsensusState ripple::checkConsensus | ( | std::size_t | prevProposers, |
std::size_t | currentProposers, | ||
std::size_t | currentAgree, | ||
std::size_t | currentFinished, | ||
std::chrono::milliseconds | previousAgreeTime, | ||
std::chrono::milliseconds | currentAgreeTime, | ||
ConsensusParms const & | parms, | ||
bool | proposing, | ||
beast::Journal | j | ||
) |
Determine whether the network reached consensus and whether we joined.
prevProposers | proposers in the last closing (not including us) |
currentProposers | proposers in this closing so far (not including us) |
currentAgree | proposers who agree with us |
currentFinished | proposers who have validated a ledger after this one |
previousAgreeTime | how long, in milliseconds, it took to agree on the last ledger |
currentAgreeTime | how long, in milliseconds, we've been trying to agree |
parms | Consensus constant parameters |
proposing | whether we should count ourselves |
j | journal for logging |
Definition at line 108 of file Consensus.cpp.
int ripple::participantsNeeded | ( | int | participants, |
int | percent | ||
) |
How many of the participants must agree to reach a given threshold?
Note that the number may not precisely yield the requested percentage. For example, with with size = 5 and percent = 70, we return 3, but 3 out of 5 works out to 60%. There are no security implications to this.
participants | The number of participants (i.e. validators) |
percent | The percent that we want to reach |
Definition at line 1350 of file Consensus.h.
bool ripple::operator== | ( | ConsensusProposal< NodeID_t, LedgerID_t, Position_t > const & | a, |
ConsensusProposal< NodeID_t, LedgerID_t, Position_t > const & | b | ||
) |
Definition at line 260 of file ConsensusProposal.h.
std::string ripple::to_string | ( | ConsensusMode | m | ) |
Definition at line 70 of file ConsensusTypes.h.
std::string ripple::to_string | ( | ConsensusPhase | p | ) |
Definition at line 117 of file ConsensusTypes.h.
std::chrono::duration<Rep, Period> ripple::getNextLedgerTimeResolution | ( | std::chrono::duration< Rep, Period > | previousResolution, |
bool | previousAgree, | ||
Seq | ledgerSeq | ||
) |
Calculates the close time resolution for the specified ledger.
The Ripple protocol uses binning to represent time intervals using only one timestamp. This allows servers to derive a common time for the next ledger, without the need for perfectly synchronized clocks. The time resolution (i.e. the size of the intervals) is adjusted dynamically based on what happened in the last ledger, to try to avoid disagreements.
previousResolution | the resolution used for the prior ledger |
previousAgree | whether consensus agreed on the close time of the prior ledger |
ledgerSeq | the sequence number of the new ledger |
Rep | Type representing number of ticks in std::chrono::duration |
Period | An std::ratio representing tick period in std::chrono::duration |
Seq | Unsigned integer-like type corresponding to the ledger sequence number. It should be comparable to 0 and support modular division. Built-in and tagged_integers are supported. |
Definition at line 80 of file LedgerTiming.h.
std::chrono::time_point<Clock, Duration> ripple::roundCloseTime | ( | std::chrono::time_point< Clock, Duration > | closeTime, |
std::chrono::duration< Rep, Period > | closeResolution | ||
) |
Calculates the close time for a ledger, given a close time resolution.
closeTime | The time to be rounded |
closeResolution | The resolution |
Definition at line 129 of file LedgerTiming.h.
std::chrono::time_point<Clock, Duration> ripple::effCloseTime | ( | std::chrono::time_point< Clock, Duration > | closeTime, |
std::chrono::duration< Rep, Period > | resolution, | ||
std::chrono::time_point< Clock, Duration > | priorCloseTime | ||
) |
Calculate the effective ledger close time.
After adjusting the ledger close time based on the current resolution, also ensure it is sufficiently separated from the prior close time.
closeTime | The raw ledger close time |
resolution | The current close time resolution |
priorCloseTime | The close time of the prior ledger |
Definition at line 152 of file LedgerTiming.h.
bool ripple::isCurrent | ( | ValidationParms const & | p, |
NetClock::time_point | now, | ||
NetClock::time_point | signTime, | ||
NetClock::time_point | seenTime | ||
) |
Whether a validation is still current.
Determines whether a validation can still be considered the current validation from a node based on when it was signed by that node and first seen by this node.
p | ValidationParms with timing parameters |
now | Current time |
signTime | When the validation was signed |
seenTime | When the validation was first seen locally |
Definition at line 148 of file Validations.h.
std::string ripple::to_string | ( | ValStatus | m | ) |
Definition at line 182 of file Validations.h.
Definition at line 1031 of file Config.cpp.
std::shared_ptr< Checkpointer > ripple::checkpointerFromId | ( | std::uintptr_t | id | ) |
Definition at line 79 of file DatabaseCon.cpp.
DatabaseCon::Setup ripple::setup_DatabaseCon | ( | Config const & | c, |
std::optional< beast::Journal > | j = std::nullopt |
||
) |
Definition at line 106 of file DatabaseCon.cpp.
IniFileSections ripple::parseIniFile | ( | std::string const & | strInput, |
const bool | bTrim | ||
) |
Definition at line 161 of file Config.cpp.
IniFileSections::mapped_type* ripple::getIniFileSection | ( | IniFileSections & | secSource, |
std::string const & | strSection | ||
) |
Definition at line 209 of file Config.cpp.
bool ripple::getSingleSection | ( | IniFileSections & | secSource, |
std::string const & | strSection, | ||
std::string & | strValue, | ||
beast::Journal | j | ||
) |
Definition at line 222 of file Config.cpp.
|
static |
Definition at line 257 of file Config.cpp.
std::unique_ptr< SNTPClock > ripple::make_SNTPClock | ( | beast::Journal | j | ) |
Definition at line 486 of file SNTPClock.cpp.
void ripple::open | ( | soci::session & | s, |
BasicConfig const & | config, | ||
std::string const & | dbName | ||
) |
Open a soci session.
s | Session to open. |
config | Parameters to pick the soci backend and how to connect to that backend. |
dbName | Name of the database. This has different meaning for different backends. Sometimes it is part of a filename (sqlite3), other times it is a database name (postgresql). |
Definition at line 98 of file SociDB.cpp.
void ripple::open | ( | soci::session & | s, |
std::string const & | beName, | ||
std::string const & | connectionString | ||
) |
Open a soci session.
s | Session to open. |
beName | Backend name. |
connectionString | Connection string to forward to soci::open. see the soci::open documentation for how to use this. |
Definition at line 104 of file SociDB.cpp.
|
static |
Definition at line 116 of file SociDB.cpp.
std::uint32_t ripple::getKBUsedAll | ( | soci::session & | s | ) |
Definition at line 130 of file SociDB.cpp.
std::uint32_t ripple::getKBUsedDB | ( | soci::session & | s | ) |
Definition at line 139 of file SociDB.cpp.
void ripple::convert | ( | soci::blob & | from, |
std::vector< std::uint8_t > & | to | ||
) |
Definition at line 154 of file SociDB.cpp.
void ripple::convert | ( | soci::blob & | from, |
std::string & | to | ||
) |
Definition at line 163 of file SociDB.cpp.
void ripple::convert | ( | std::vector< std::uint8_t > const & | from, |
soci::blob & | to | ||
) |
Definition at line 171 of file SociDB.cpp.
void ripple::convert | ( | std::string const & | from, |
soci::blob & | to | ||
) |
Definition at line 180 of file SociDB.cpp.
std::shared_ptr< Checkpointer > ripple::makeCheckpointer | ( | std::uintptr_t | id, |
std::weak_ptr< soci::session > | , | ||
JobQueue & | , | ||
Logs & | |||
) |
Returns a new checkpointer which makes checkpoints of a soci database every checkpointPageCount pages, using a job on the job queue.
The checkpointer contains references to the session and job queue and so must outlive them both.
Definition at line 333 of file SociDB.cpp.
std::unique_ptr< TimeKeeper > ripple::make_TimeKeeper | ( | beast::Journal | j | ) |
Definition at line 119 of file TimeKeeper.cpp.
csprng_engine & ripple::crypto_prng | ( | ) |
The default cryptographically secure PRNG.
Use this when you need to generate random numbers or data that will be used for encryption or passed into cryptographic routines.
This meets the requirements of UniformRandomNumberEngine
Definition at line 99 of file csprng.cpp.
void ripple::secure_erase | ( | void * | dest, |
std::size_t | bytes | ||
) |
Attempts to clear the given blob of memory.
The underlying implementation of this function takes pains to attempt to outsmart the compiler from optimizing the clearing away. Please note that, despite that, remnants of content may remain floating around in memory as well as registers, caches and more.
For a more in-depth discussion of the subject please see the below posts by Colin Percival:
http://www.daemonology.net/blog/2014-09-04-how-to-zero-a-buffer.html http://www.daemonology.net/blog/2014-09-06-zeroing-buffers-is-insufficient.html
Definition at line 26 of file secure_erase.cpp.
|
constexpr |
Definition at line 45 of file ApplyView.h.
|
constexpr |
Definition at line 60 of file ApplyView.h.
|
constexpr |
Definition at line 71 of file ApplyView.h.
ApplyFlags ripple::operator|= | ( | ApplyFlags & | lhs, |
ApplyFlags const & | rhs | ||
) |
Definition at line 82 of file ApplyView.h.
ApplyFlags ripple::operator&= | ( | ApplyFlags & | lhs, |
ApplyFlags const & | rhs | ||
) |
Definition at line 89 of file ApplyView.h.
Rules ripple::makeRulesGivenLedger | ( | DigestAwareReadView const & | ledger, |
Rules const & | current | ||
) |
Definition at line 69 of file ReadView.cpp.
Rules ripple::makeRulesGivenLedger | ( | DigestAwareReadView const & | ledger, |
std::unordered_set< uint256, beast::uhash<>> const & | presets | ||
) |
Definition at line 75 of file ReadView.cpp.
bool ripple::dirFirst | ( | ApplyView & | view, |
uint256 const & | root, | ||
std::shared_ptr< SLE > & | page, | ||
unsigned int & | index, | ||
uint256 & | entry | ||
) |
bool ripple::dirNext | ( | ApplyView & | view, |
uint256 const & | root, | ||
std::shared_ptr< SLE > & | page, | ||
unsigned int & | index, | ||
uint256 & | entry | ||
) |
bool ripple::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.
view | The view against which to operate |
root | The root (i.e. first page) of the directory to iterate |
page | The current page |
index | The index inside the current page |
entry | The entry at the current index |
bool ripple::cdirNext | ( | ReadView const & | view, |
uint256 const & | root, | ||
std::shared_ptr< SLE const > & | page, | ||
unsigned int & | index, | ||
uint256 & | entry | ||
) |
Returns the next entry in the directory, advancing the index.
view | The view against which to operate |
root | The root (i.e. first page) of the directory to iterate |
page | The current page |
index | The index inside the current page |
entry | The entry at the current index |
void ripple::addRaw | ( | LedgerInfo const & | info, |
Serializer & | s, | ||
bool | includeHash | ||
) |
bool ripple::hasExpired | ( | ReadView const & | view, |
std::optional< std::uint32_t > const & | exp | ||
) |
Determines whether the given expiration time has passed.
In the XRP Ledger, expiration times are defined as the number of whole seconds after the "Ripple Epoch" which, for historical reasons, is set to January 1, 2000 (00:00 UTC).
This is like the way the Unix epoch works, except the Ripple Epoch is precisely 946,684,800 seconds after the Unix Epoch.
See https://xrpl.org/basic-data-types.html#specifying-time
Expiration is defined in terms of the close time of the parent ledger, because we definitively know the time that it closed (since consensus agrees on time) but we do not know the closing time of the ledger that is under construction.
view | The ledger whose parent time is used as the clock. |
exp | The optional expiration time we want to check. |
true
if exp
is in the past; false
otherwise. STAmount ripple::accountHolds | ( | ReadView const & | view, |
AccountID const & | account, | ||
Currency const & | currency, | ||
AccountID const & | issuer, | ||
FreezeHandling | zeroIfFrozen, | ||
beast::Journal | j | ||
) |
STAmount ripple::accountFunds | ( | ReadView const & | view, |
AccountID const & | id, | ||
STAmount const & | saDefault, | ||
FreezeHandling | freezeHandling, | ||
beast::Journal | j | ||
) |
|
static |
XRPAmount ripple::xrpLiquid | ( | ReadView const & | view, |
AccountID const & | id, | ||
std::int32_t | ownerCountAdj, | ||
beast::Journal | j | ||
) |
void ripple::forEachItem | ( | ReadView const & | view, |
Keylet const & | root, | ||
std::function< void(std::shared_ptr< SLE const > const &)> const & | f | ||
) |
bool ripple::forEachItemAfter | ( | ReadView const & | view, |
Keylet const & | root, | ||
uint256 const & | after, | ||
std::uint64_t const | hint, | ||
unsigned int | limit, | ||
std::function< bool(std::shared_ptr< SLE const > const &)> const & | f | ||
) |
bool ripple::areCompatible | ( | ReadView const & | validLedger, |
ReadView const & | testLedger, | ||
beast::Journal::Stream & | s, | ||
const char * | reason | ||
) |
bool ripple::areCompatible | ( | uint256 const & | validHash, |
LedgerIndex | validIndex, | ||
ReadView const & | testLedger, | ||
beast::Journal::Stream & | s, | ||
const char * | reason | ||
) |
majorityAmendments_t ripple::getMajorityAmendments | ( | ReadView const & | view | ) |
std::optional< uint256 > ripple::hashOfSeq | ( | ReadView const & | ledger, |
LedgerIndex | seq, | ||
beast::Journal | journal | ||
) |
Return the hash of a ledger by sequence.
The hash is retrieved by looking up the "skip list" in the passed ledger. As the skip list is limited in size, if the requested ledger sequence number is out of the range of ledgers represented in the skip list, then std::nullopt is returned.
void ripple::adjustOwnerCount | ( | ApplyView & | view, |
std::shared_ptr< SLE > const & | sle, | ||
std::int32_t | amount, | ||
beast::Journal | j | ||
) |
std::function< void(SLE::ref)> ripple::describeOwnerDir | ( | AccountID const & | account | ) |
TER ripple::trustCreate | ( | ApplyView & | view, |
const bool | bSrcHigh, | ||
AccountID const & | uSrcAccountID, | ||
AccountID const & | uDstAccountID, | ||
uint256 const & | uIndex, | ||
SLE::ref | sleAccount, | ||
const bool | bAuth, | ||
const bool | bNoRipple, | ||
const bool | bFreeze, | ||
STAmount const & | saBalance, | ||
STAmount const & | saLimit, | ||
std::uint32_t | uSrcQualityIn, | ||
std::uint32_t | uSrcQualityOut, | ||
beast::Journal | j | ||
) |
TER ripple::trustDelete | ( | ApplyView & | view, |
std::shared_ptr< SLE > const & | sleRippleState, | ||
AccountID const & | uLowAccountID, | ||
AccountID const & | uHighAccountID, | ||
beast::Journal | j | ||
) |
TER ripple::offerDelete | ( | ApplyView & | view, |
std::shared_ptr< SLE > const & | sle, | ||
beast::Journal | j | ||
) |
|
static |
bool ripple::getCloseAgree | ( | LedgerInfo const & | info | ) |
Definition at line 351 of file ReadView.h.
void ripple::forEachItem | ( | ReadView const & | view, |
AccountID const & | id, | ||
std::function< void(std::shared_ptr< SLE const > const &)> const & | f | ||
) |
bool ripple::forEachItemAfter | ( | ReadView const & | view, |
AccountID const & | id, | ||
uint256 const & | after, | ||
std::uint64_t const | hint, | ||
unsigned int | limit, | ||
std::function< bool(std::shared_ptr< SLE const > const &)> const & | f | ||
) |
LedgerIndex ripple::getCandidateLedger | ( | LedgerIndex | requested | ) |
Find a ledger index from which we could easily get the requested ledger.
The index that we return should meet two requirements: 1) It must be the index of a ledger that has the hash of the ledger we are looking for. This means that its sequence must be equal to greater than the sequence that we want but not more than 256 greater since each ledger contains the hashes of the 256 previous ledgers.
2) Its hash must be easy for us to find. This means it must be 0 mod 256 because every such ledger is permanently enshrined in a LedgerHashes page which we can easily retrieve via the skip list.
std::shared_ptr< DatabaseDownloader > ripple::make_DatabaseDownloader | ( | boost::asio::io_service & | io_service, |
Config const & | config, | ||
beast::Journal | j | ||
) |
Definition at line 25 of file DatabaseDownloader.cpp.
void ripple::registerSSLCerts | ( | boost::asio::ssl::context & | , |
boost::system::error_code & | , | ||
beast::Journal | j | ||
) |
Register default SSL certificates.
Register the system default SSL root certificates. On linux/mac, this just calls asio's set_default_verify_paths
to look in standard operating system locations. On windows, it uses the OS certificate store accessible via CryptoAPI.
Definition at line 35 of file RegisterSSLCerts.cpp.
std::string ripple::createHTTPPost | ( | std::string const & | strHost, |
std::string const & | strPath, | ||
std::string const & | strMsg, | ||
std::unordered_map< std::string, std::string > const & | mapRequestHeaders | ||
) |
Definition at line 64 of file RPCCall.cpp.
std::string ripple::JSONRPCRequest | ( | std::string const & | strMethod, |
Json::Value const & | params, | ||
Json::Value const & | id | ||
) |
Definition at line 1351 of file RPCCall.cpp.
|
static |
Definition at line 1450 of file RPCCall.cpp.
Json::Value ripple::cmdLineToJSONRPC | ( | std::vector< std::string > const & | args, |
beast::Journal | j | ||
) |
Given a rippled command line, return the corresponding JSON.
Definition at line 1488 of file RPCCall.cpp.
std::pair< int, Json::Value > ripple::rpcClient | ( | std::vector< std::string > const & | args, |
Config const & | config, | ||
Logs & | logs, | ||
std::unordered_map< std::string, std::string > const & | headers | ||
) |
Internal invocation of RPC client.
Definition at line 1519 of file RPCCall.cpp.
Json::Value ripple::rpcError | ( | int | iError | ) |
Definition at line 29 of file RPCErr.cpp.
bool ripple::isRpcError | ( | Json::Value | jvResult | ) |
Definition at line 38 of file RPCErr.cpp.
std::shared_ptr< RPCSub > ripple::make_RPCSub | ( | InfoSub::Source & | source, |
boost::asio::io_service & | io_service, | ||
JobQueue & | jobQueue, | ||
std::string const & | strUrl, | ||
std::string const & | strUsername, | ||
std::string const & | strPassword, | ||
Logs & | logs | ||
) |
Definition at line 215 of file RPCSub.cpp.
std::optional< std::string > ripple::getFeatureValue | ( | boost::beast::http::fields const & | headers, |
std::string const & | feature | ||
) |
Get feature's header value.
headers | request/response header |
feature | name |
Definition at line 38 of file Handshake.cpp.
bool ripple::isFeatureValue | ( | boost::beast::http::fields const & | headers, |
std::string const & | feature, | ||
std::string const & | value | ||
) |
Check if a feature's value is equal to the specified value.
headers | request/response header |
feature | to check |
value | of the feature to check, must be a single value; i.e. not value1,value2... |
Definition at line 54 of file Handshake.cpp.
bool ripple::featureEnabled | ( | boost::beast::http::fields const & | headers, |
std::string const & | feature | ||
) |
Check if a feature is enabled.
headers | request/response header |
feature | to check |
Definition at line 66 of file Handshake.cpp.
std::string ripple::makeFeaturesRequestHeader | ( | bool | comprEnabled, |
bool | ledgerReplayEnabled, | ||
bool | txReduceRelayEnabled, | ||
bool | vpReduceRelayEnabled | ||
) |
Make request header X-Protocol-Ctl value with supported features.
comprEnabled | if true then compression feature is enabled |
ledgerReplayEnabled | if true then ledger-replay feature is enabled |
txReduceRelayEnabled | if true then transaction reduce-relay feature is enabled |
vpReduceRelayEnabled | if true then validation/proposal reduce-relay feature is enabled |
Definition at line 74 of file Handshake.cpp.
std::string ripple::makeFeaturesResponseHeader | ( | http_request_type const & | headers, |
bool | comprEnabled, | ||
bool | ledgerReplayEnabled, | ||
bool | txReduceRelayEnabled, | ||
bool | vpReduceRelayEnabled | ||
) |
Make response header X-Protocol-Ctl value with supported features.
If the request has a feature that we support enabled and the feature's configuration is enabled then enable this feature in the response header.
header | request's header |
comprEnabled | if true then compression feature is enabled |
ledgerReplayEnabled | if true then ledger-replay feature is enabled |
txReduceRelayEnabled | if true then transaction reduce-relay feature is enabled |
vpReduceRelayEnabled | if true then validation/proposal reduce-relay feature is enabled |
vpReduceRelayEnabled | if true then reduce-relay feature is enabled |
Definition at line 93 of file Handshake.cpp.
|
static |
Hashes the latest finished message from an SSL stream.
ssl | the session to get the message from. |
get | a pointer to the function to call to retrieve the finished message. This can be either:
|
true
if successful, false
otherwise.Definition at line 127 of file Handshake.cpp.
std::optional< uint256 > ripple::makeSharedValue | ( | stream_type & | ssl, |
beast::Journal | journal | ||
) |
Computes a shared value based on the SSL connection state.
When there is no man in the middle, both sides will compute the same value. In the presence of an attacker, the computed values will be different.
ssl | the SSL/TLS connection state. |
Definition at line 145 of file Handshake.cpp.
void ripple::buildHandshake | ( | boost::beast::http::fields & | h, |
ripple::uint256 const & | sharedValue, | ||
std::optional< std::uint32_t > | networkID, | ||
beast::IP::Address | public_ip, | ||
beast::IP::Address | remote_ip, | ||
Application & | app | ||
) |
Insert fields headers necessary for upgrading the link to the peer protocol.
Definition at line 177 of file Handshake.cpp.
PublicKey ripple::verifyHandshake | ( | boost::beast::http::fields const & | headers, |
uint256 const & | sharedValue, | ||
std::optional< std::uint32_t > | networkID, | ||
beast::IP::Address | public_ip, | ||
beast::IP::Address | remote, | ||
Application & | app | ||
) |
Validate header fields necessary for upgrading the link to the peer protocol.
This performs critical security checks that ensure that prevent MITM attacks on our peer-to-peer links and that the remote peer has the private keys that correspond to the public identity it claims.
A | class derived from std::exception. |
Definition at line 226 of file Handshake.cpp.
request_type ripple::makeRequest | ( | bool | crawlPublic, |
bool | comprEnabled, | ||
bool | ledgerReplayEnabled, | ||
bool | txReduceRelayEnabled, | ||
bool | vpReduceRelayEnabled | ||
) |
Make outbound http request.
crawlPublic | if true then server's IP/Port are included in crawl |
comprEnabled | if true then compression feature is enabled |
ledgerReplayEnabled | if true then ledger-replay feature is enabled |
txReduceRelayEnabled | if true then transaction reduce-relay feature is enabled |
vpReduceRelayEnabled | if true then validation/proposal reduce-relay feature is enabled |
Definition at line 365 of file Handshake.cpp.
http_response_type ripple::makeResponse | ( | bool | crawlPublic, |
http_request_type const & | req, | ||
beast::IP::Address | public_ip, | ||
beast::IP::Address | remote_ip, | ||
uint256 const & | sharedValue, | ||
std::optional< std::uint32_t > | networkID, | ||
ProtocolVersion | version, | ||
Application & | app | ||
) |
Make http response.
crawlPublic | if true then server's IP/Port are included in crawl |
req | incoming http request |
public_ip | server's public IP |
remote_ip | peer's IP |
sharedValue | shared value based on the SSL connection state |
networkID | specifies what network we intend to connect to |
version | supported protocol version |
app | Application's reference to access some common properties |
Definition at line 392 of file Handshake.cpp.
bool ripple::peerFeatureEnabled | ( | headers const & | request, |
std::string const & | feature, | ||
std::string | value, | ||
bool | config | ||
) |
Check if a feature should be enabled for a peer.
The feature is enabled if its configured value is true and the http header has the specified feature value.
headers | request (inbound) or response (outbound) header |
request | http headers |
feature | to check |
config | feature's configuration value |
value | feature's value to check in the headers |
Definition at line 199 of file Handshake.h.
bool ripple::peerFeatureEnabled | ( | headers const & | request, |
std::string const & | feature, | ||
bool | config | ||
) |
Wrapper for enable(1)/disable type(0) of feature.
Definition at line 211 of file Handshake.h.
std::shared_ptr<Message> ripple::makeSquelchMessage | ( | PublicKey const & | validator, |
bool | squelch, | ||
uint32_t | squelchDuration | ||
) |
Definition at line 1445 of file OverlayImpl.cpp.
Overlay::Setup ripple::setup_Overlay | ( | BasicConfig const & | config | ) |
Definition at line 1537 of file OverlayImpl.cpp.
std::unique_ptr< Overlay > ripple::make_Overlay | ( | Application & | app, |
Overlay::Setup const & | setup, | ||
ServerHandler & | serverHandler, | ||
Resource::Manager & | resourceManager, | ||
Resolver & | resolver, | ||
boost::asio::io_service & | io_service, | ||
BasicConfig const & | config, | ||
beast::insight::Collector::ptr const & | collector | ||
) |
Creates the implementation of Overlay.
Definition at line 1642 of file OverlayImpl.cpp.
|
static |
Definition at line 151 of file PeerImp.cpp.
|
static |
Definition at line 3213 of file PeerImp.cpp.
|
static |
Definition at line 3237 of file PeerImp.cpp.
std::unique_ptr< PeerSetBuilder > ripple::make_PeerSetBuilder | ( | Application & | app | ) |
Definition at line 144 of file PeerSet.cpp.
std::unique_ptr< PeerSet > ripple::make_DummyPeerSet | ( | Application & | app | ) |
Make a dummy PeerSet that does not do anything.
Definition at line 187 of file PeerSet.cpp.
protocol::MessageType ripple::protocolMessageType | ( | protocol::TMGetLedger const & | ) |
Definition at line 42 of file ProtocolMessage.h.
protocol::MessageType ripple::protocolMessageType | ( | protocol::TMReplayDeltaRequest const & | ) |
Definition at line 48 of file ProtocolMessage.h.
protocol::MessageType ripple::protocolMessageType | ( | protocol::TMProofPathRequest const & | ) |
Definition at line 54 of file ProtocolMessage.h.
std::string ripple::protocolMessageName | ( | int | type | ) |
Returns the name of a protocol message given its type.
Definition at line 62 of file ProtocolMessage.h.
std::pair<std::size_t, boost::system::error_code> ripple::invokeProtocolMessage | ( | Buffers const & | buffers, |
Handler & | handler, | ||
std::size_t & | hint | ||
) |
Calls the handler for up to one protocol message in the passed buffers.
If there is insufficient data to produce a complete protocol message, zero is returned for the number of bytes consumed.
buffers | The buffer that contains the data we've received |
handler | The handler that will be used to process the message |
hint | If possible, a hint as to the amount of data to read next. The returned value MAY be zero, which means "no hint" |
Definition at line 343 of file ProtocolMessage.h.
std::string ripple::to_string | ( | ProtocolVersion const & | p | ) |
Print a protocol version a human-readable string.
Definition at line 72 of file ProtocolVersion.cpp.
std::vector< ProtocolVersion > ripple::parseProtocolVersions | ( | boost::beast::string_view const & | s | ) |
Parse a set of protocol versions.
Given a comma-separated string, extract and return all those that look like valid protocol versions (i.e. XRPL/2.0 and later). Strings that are not parseable as valid protocol strings are excluded from the result set.
Definition at line 78 of file ProtocolVersion.cpp.
std::optional< ProtocolVersion > ripple::negotiateProtocolVersion | ( | std::vector< ProtocolVersion > const & | versions | ) |
Given a list of supported protocol versions, choose the one we prefer.
Definition at line 125 of file ProtocolVersion.cpp.
std::optional< ProtocolVersion > ripple::negotiateProtocolVersion | ( | boost::beast::string_view const & | versions | ) |
Given a list of supported protocol versions, choose the one we prefer.
Definition at line 148 of file ProtocolVersion.cpp.
std::string const & ripple::supportedProtocolVersions | ( | ) |
The list of all the protocol versions we support.
Definition at line 156 of file ProtocolVersion.cpp.
bool ripple::isProtocolSupported | ( | ProtocolVersion const & | v | ) |
Determine whether we support a specific protocol version.
Definition at line 174 of file ProtocolVersion.cpp.
|
constexpr |
Definition at line 40 of file ProtocolVersion.h.
send_if_pred<Predicate> ripple::send_if | ( | std::shared_ptr< Message > const & | m, |
Predicate const & | f | ||
) |
Helper function to aid in type deduction.
Definition at line 75 of file predicates.h.
send_if_not_pred<Predicate> ripple::send_if_not | ( | std::shared_ptr< Message > const & | m, |
Predicate const & | f | ||
) |
Helper function to aid in type deduction.
Definition at line 107 of file predicates.h.
std::string ripple::toBase58 | ( | AccountID const & | v | ) |
Convert AccountID to base58 checked string.
Definition at line 104 of file AccountID.cpp.
std::optional< Seed > ripple::parseBase58 | ( | std::string const & | s | ) |
Parse AccountID from checked, base58 string.
Parse a Base58 encoded string into a seed.
Definition at line 114 of file AccountID.cpp.
AccountID const & ripple::xrpAccount | ( | ) |
Compute AccountID from public key.
The account ID is computed as the 160-bit hash of the public key data. This excludes the version byte and guard bytes included in the base58 representation. A special account that's used as the "issuer" for XRP.
Definition at line 168 of file AccountID.cpp.
AccountID const & ripple::noAccount | ( | ) |
A placeholder for empty accounts.
Definition at line 175 of file AccountID.cpp.
bool ripple::to_issuer | ( | AccountID & | issuer, |
std::string const & | s | ||
) |
Convert hex or base58 string to AccountID.
true
if the parsing was successful. Definition at line 182 of file AccountID.cpp.
bool ripple::isXRP | ( | AccountID const & | c | ) |
Definition at line 89 of file AccountID.h.
std::string ripple::to_string | ( | AccountID const & | account | ) |
Returns "", "XRP", or three letter ISO code.
Definition at line 96 of file AccountID.h.
std::ostream & ripple::operator<< | ( | std::ostream & | os, |
AccountID const & | x | ||
) |
Definition at line 103 of file AccountID.h.
void ripple::initAccountIdCache | ( | std::size_t | count | ) |
Initialize the global cache used to map AccountID to base58 conversions.
The cache is optional and need not be initialized. But because conversion is expensive (it requires a SHA-256 operation) in most cases the overhead of the cache is worth the benefit.
count | The number of entries the cache should accomodate. Zero will disable the cache, releasing any memory associated with it. |
Definition at line 97 of file AccountID.cpp.
Definition at line 30 of file AmountConversions.h.
Definition at line 44 of file AmountConversions.h.
Definition at line 50 of file AmountConversions.h.
Definition at line 58 of file AmountConversions.h.
|
delete |
STAmount ripple::toAmount< STAmount > | ( | STAmount const & | amt | ) |
Definition at line 70 of file AmountConversions.h.
IOUAmount ripple::toAmount< IOUAmount > | ( | STAmount const & | amt | ) |
Definition at line 77 of file AmountConversions.h.
XRPAmount ripple::toAmount< XRPAmount > | ( | STAmount const & | amt | ) |
Definition at line 90 of file AmountConversions.h.
|
delete |
IOUAmount ripple::toAmount< IOUAmount > | ( | IOUAmount const & | amt | ) |
Definition at line 107 of file AmountConversions.h.
|
delete |
XRPAmount ripple::toAmount< XRPAmount > | ( | XRPAmount const & | amt | ) |
Definition at line 118 of file AmountConversions.h.
std::string ripple::to_string | ( | Book const & | book | ) |
std::ostream & ripple::operator<< | ( | std::ostream & | os, |
Book const & | x | ||
) |
void ripple::hash_append | ( | Hasher & | h, |
Book const & | b | ||
) |
|
constexpr |
sha512_half_hasher::result_type ripple::sha512Half | ( | Args const &... | args | ) |
sha512_half_hasher_s::result_type ripple::sha512Half_s | ( | Args const &... | args | ) |
std::string ripple::rpcErrorString | ( | Json::Value const & | jv | ) |
Returns a single string with the contents of an RPC error.
Definition at line 210 of file ErrorCodes.cpp.
std::optional< uint256 > ripple::getRegisteredFeature | ( | std::string const & | name | ) |
Definition at line 342 of file Feature.cpp.
size_t ripple::featureToBitsetIndex | ( | uint256 const & | f | ) |
Definition at line 369 of file Feature.cpp.
uint256 ripple::bitsetIndexToFeature | ( | size_t | i | ) |
Definition at line 375 of file Feature.cpp.
std::string ripple::featureToName | ( | uint256 const & | f | ) |
Definition at line 381 of file Feature.cpp.
void ripple::foreachFeature | ( | FeatureBitset | bs, |
F && | f | ||
) |
|
noexcept |
Definition at line 94 of file HashPrefix.h.
Definition at line 158 of file AccountID.cpp.
std::size_t ripple::hash_value | ( | ripple::uint256 const & | feature | ) |
Definition at line 35 of file Feature.cpp.
uint256 ripple::registerFeature | ( | std::string const & | name, |
Supported | support, | ||
VoteBehavior | vote | ||
) |
Definition at line 348 of file Feature.cpp.
uint256 ripple::retireFeature | ( | std::string const & | name | ) |
Definition at line 356 of file Feature.cpp.
bool ripple::registrationIsDone | ( | ) |
Tell FeatureCollections when registration is complete.
Definition at line 363 of file Feature.cpp.
ripple::REGISTER_FEATURE | ( | OwnerPaysFee | , |
Supported::no | , | ||
VoteBehavior::DefaultNo | |||
) |
ripple::REGISTER_FEATURE | ( | Flow | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FEATURE | ( | FlowCross | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fix1513 | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FEATURE | ( | DepositAuth | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FEATURE | ( | Checks | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fix1571 | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fix1543 | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fix1623 | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FEATURE | ( | DepositPreauth | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fix1515 | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fix1578 | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FEATURE | ( | MultiSignReserve | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fixTakerDryOfferRemoval | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fixMasterKeyAsRegularKey | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fixCheckThreading | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fixPayChanRecipientOwnerDir | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FEATURE | ( | DeletableAccounts | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fixQualityUpperBound | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FEATURE | ( | RequireFullyCanonicalSig | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fix1781 | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FEATURE | ( | HardenedValidations | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fixAmendmentMajorityCalc | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FEATURE | ( | NegativeUNL | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FEATURE | ( | TicketBatch | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FEATURE | ( | FlowSortStrands | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fixSTAmountCanonicalize | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FIX | ( | fixRmSmallIncreasedQOffers | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FEATURE | ( | CheckCashMakesTrustLine | , |
Supported::yes | , | ||
VoteBehavior::DefaultNo | |||
) |
ripple::REGISTER_FEATURE | ( | ExpandedSignerList | , |
Supported::yes | , | ||
VoteBehavior::DefaultNo | |||
) |
ripple::REGISTER_FEATURE | ( | NonFungibleTokensV1_1 | , |
Supported::yes | , | ||
VoteBehavior::DefaultNo | |||
) |
ripple::REGISTER_FIX | ( | fixTrustLinesToSelf | , |
Supported::yes | , | ||
VoteBehavior::DefaultNo | |||
) |
ripple::REGISTER_FIX | ( | fixRemoveNFTokenAutoTrustLine | , |
Supported::yes | , | ||
VoteBehavior::DefaultYes | |||
) |
ripple::REGISTER_FEATURE | ( | ImmediateOfferKilled | , |
Supported::yes | , | ||
VoteBehavior::DefaultNo | |||
) |
ripple::REGISTER_FEATURE | ( | DisallowIncoming | , |
Supported::yes | , | ||
VoteBehavior::DefaultNo | |||
) |
ripple::REGISTER_FEATURE | ( | XRPFees | , |
Supported::yes | , | ||
VoteBehavior::DefaultNo | |||
) |
ripple::REGISTER_FIX | ( | fixUniversalNumber | , |
Supported::yes | , | ||
VoteBehavior::DefaultNo | |||
) |
ripple::REGISTER_FIX | ( | fixNonFungibleTokensV1_2 | , |
Supported::yes | , | ||
VoteBehavior::DefaultNo | |||
) |
ripple::REGISTER_FIX | ( | fixNFTokenRemint | , |
Supported::yes | , | ||
VoteBehavior::DefaultNo | |||
) |
ripple::REGISTER_FEATURE | ( | CryptoConditionsSuite | , |
Supported::yes | , | ||
VoteBehavior::Obsolete | |||
) |
ripple::REGISTER_FEATURE | ( | NonFungibleTokensV1 | , |
Supported::yes | , | ||
VoteBehavior::Obsolete | |||
) |
ripple::REGISTER_FIX | ( | fixNFTokenDirV1 | , |
Supported::yes | , | ||
VoteBehavior::Obsolete | |||
) |
ripple::REGISTER_FIX | ( | fixNFTokenNegOffer | , |
Supported::yes | , | ||
VoteBehavior::Obsolete | |||
) |
|
static |
Definition at line 76 of file Indexes.cpp.
Definition at line 82 of file Indexes.cpp.
Definition at line 100 of file Indexes.cpp.
std::uint64_t ripple::getQuality | ( | uint256 const & | uBase | ) |
Definition at line 108 of file Indexes.cpp.
uint256 ripple::getTicketIndex | ( | AccountID const & | account, |
std::uint32_t | ticketSeq | ||
) |
Definition at line 115 of file Indexes.cpp.
Definition at line 122 of file Indexes.cpp.
std::string ripple::to_string | ( | Issue const & | ac | ) |
std::ostream & ripple::operator<< | ( | std::ostream & | os, |
Issue const & | x | ||
) |
std::ostream & ripple::operator<< | ( | std::ostream & | os, |
PublicKey const & | pk | ||
) |
Print the public key to a stream.
Definition at line 32 of file PublicKey.cpp.
std::optional< SecretKey > ripple::parseBase58 | ( | TokenType | type, |
std::string const & | s | ||
) |
Parse a secret key.
Definition at line 40 of file PublicKey.cpp.
|
static |
Definition at line 54 of file PublicKey.cpp.
|
static |
Definition at line 80 of file PublicKey.cpp.
std::optional< ECDSACanonicality > ripple::ecdsaCanonicality | ( | Slice const & | sig | ) |
Determine whether a signature is canonical.
Determines the canonicality of a signature.
Canonical signatures are important to protect against signature morphing attacks.
vSig | the signature data |
sigLen | the length of the signature |
strict_param | whether to enforce strictly canonical semantics |
A canonical signature is in its most reduced form. For example the R and S components do not contain additional leading zeroes. However, even in canonical form, (R,S) and (R,G-S) are both valid signatures for message M.
Therefore, to prevent malleability attacks we define a fully canonical signature as one where:
R < G - S
where G is the curve order.
This routine returns std::nullopt if the format of the signature is invalid (for example, the points are encoded incorrectly).
Definition at line 114 of file PublicKey.cpp.
|
static |
Definition at line 156 of file PublicKey.cpp.
std::optional< KeyType > ripple::publicKeyType | ( | Slice const & | slice | ) |
Returns the type of public key.
Definition at line 207 of file PublicKey.cpp.
|
noexcept |
Verify a secp256k1 signature on the digest of a message.
Definition at line 222 of file PublicKey.cpp.
|
noexcept |
Verify a signature on a message.
With secp256k1 signatures, the data is first hashed with SHA512-Half, and the resulting digest is signed.
Definition at line 272 of file PublicKey.cpp.
Calculate the 160-bit node ID from a node public key.
Definition at line 303 of file PublicKey.cpp.
Quality ripple::composed_quality | ( | Quality const & | lhs, |
Quality const & | rhs | ||
) |
Definition at line 101 of file Quality.cpp.
secp256k1_context const* ripple::secp256k1Context | ( | ) |
Definition at line 29 of file secp256k1.h.
Generate a signature for a message digest.
This can only be used with secp256k1 since Ed25519's security properties come, in part, from how the message is hashed.
Definition at line 212 of file SecretKey.cpp.
Generate a signature for a message.
With secp256k1 signatures, the data is first hashed with SHA512-Half, and the resulting digest is signed.
Definition at line 238 of file SecretKey.cpp.
SecretKey ripple::randomSecretKey | ( | ) |
Create a secret key using secure random numbers.
Definition at line 281 of file SecretKey.cpp.
Generate a new secret key deterministically.
Definition at line 291 of file SecretKey.cpp.
Derive the public key from a secret key.
Definition at line 313 of file SecretKey.cpp.
Generate a key pair deterministically.
This algorithm is specific to Ripple:
For secp256k1 key pairs, the seed is converted to a Generator and used to compute the key pair corresponding to ordinal 0 for the generator.
Definition at line 351 of file SecretKey.cpp.
Create a key pair using secure random numbers.
Definition at line 368 of file SecretKey.cpp.
Seed ripple::randomSeed | ( | ) |
Seed ripple::generateSeed | ( | std::string const & | passPhrase | ) |
Generate a seed deterministically.
The algorithm is specific to Ripple:
The seed is calculated as the first 128 bits of the SHA512-Half of the string text excluding any terminating null.
std::optional< Seed > ripple::parseGenericSeed | ( | std::string const & | str, |
bool | rfc1751 = true |
||
) |
std::string ripple::seedAs1751 | ( | Seed const & | seed | ) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfLedgerEntry | , |
"LedgerEntry" | , | ||
LEDGERENTRY | , | ||
257 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfTransaction | , |
"Transaction" | , | ||
TRANSACTION | , | ||
257 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfValidation | , |
"Validation" | , | ||
VALIDATION | , | ||
257 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfMetadata | , |
"Metadata" | , | ||
METADATA | , | ||
257 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfCloseResolution | , |
"CloseResolution" | , | ||
UINT8 | , | ||
1 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfMethod | , |
"Method" | , | ||
UINT8 | , | ||
2 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTransactionResult | , |
"TransactionResult" | , | ||
UINT8 | , | ||
3 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTickSize | , |
"TickSize" | , | ||
UINT8 | , | ||
16 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfUNLModifyDisabling | , |
"UNLModifyDisabling" | , | ||
UINT8 | , | ||
17 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookResult | , |
"HookResult" | , | ||
UINT8 | , | ||
18 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfLedgerEntryType | , |
"LedgerEntryType" | , | ||
UINT16 | , | ||
1 | , | ||
SField::sMD_Never | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTransactionType | , |
"TransactionType" | , | ||
UINT16 | , | ||
2 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfSignerWeight | , |
"SignerWeight" | , | ||
UINT16 | , | ||
3 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTransferFee | , |
"TransferFee" | , | ||
UINT16 | , | ||
4 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfVersion | , |
"Version" | , | ||
UINT16 | , | ||
16 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookStateChangeCount | , |
"HookStateChangeCount" | , | ||
UINT16 | , | ||
17 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookEmitCount | , |
"HookEmitCount" | , | ||
UINT16 | , | ||
18 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookExecutionIndex | , |
"HookExecutionIndex" | , | ||
UINT16 | , | ||
19 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookApiVersion | , |
"HookApiVersion" | , | ||
UINT16 | , | ||
20 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfNetworkID | , |
"NetworkID" | , | ||
UINT32 | , | ||
1 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfFlags | , |
"Flags" | , | ||
UINT32 | , | ||
2 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfSourceTag | , |
"SourceTag" | , | ||
UINT32 | , | ||
3 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfSequence | , |
"Sequence" | , | ||
UINT32 | , | ||
4 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfPreviousTxnLgrSeq | , |
"PreviousTxnLgrSeq" | , | ||
UINT32 | , | ||
5 | , | ||
SField::sMD_DeleteFinal | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfLedgerSequence | , |
"LedgerSequence" | , | ||
UINT32 | , | ||
6 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfCloseTime | , |
"CloseTime" | , | ||
UINT32 | , | ||
7 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfParentCloseTime | , |
"ParentCloseTime" | , | ||
UINT32 | , | ||
8 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfSigningTime | , |
"SigningTime" | , | ||
UINT32 | , | ||
9 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfExpiration | , |
"Expiration" | , | ||
UINT32 | , | ||
10 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTransferRate | , |
"TransferRate" | , | ||
UINT32 | , | ||
11 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfWalletSize | , |
"WalletSize" | , | ||
UINT32 | , | ||
12 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfOwnerCount | , |
"OwnerCount" | , | ||
UINT32 | , | ||
13 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfDestinationTag | , |
"DestinationTag" | , | ||
UINT32 | , | ||
14 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHighQualityIn | , |
"HighQualityIn" | , | ||
UINT32 | , | ||
16 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHighQualityOut | , |
"HighQualityOut" | , | ||
UINT32 | , | ||
17 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfLowQualityIn | , |
"LowQualityIn" | , | ||
UINT32 | , | ||
18 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfLowQualityOut | , |
"LowQualityOut" | , | ||
UINT32 | , | ||
19 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfQualityIn | , |
"QualityIn" | , | ||
UINT32 | , | ||
20 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfQualityOut | , |
"QualityOut" | , | ||
UINT32 | , | ||
21 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfStampEscrow | , |
"StampEscrow" | , | ||
UINT32 | , | ||
22 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfBondAmount | , |
"BondAmount" | , | ||
UINT32 | , | ||
23 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfLoadFee | , |
"LoadFee" | , | ||
UINT32 | , | ||
24 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfOfferSequence | , |
"OfferSequence" | , | ||
UINT32 | , | ||
25 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfFirstLedgerSequence | , |
"FirstLedgerSequence" | , | ||
UINT32 | , | ||
26 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfLastLedgerSequence | , |
"LastLedgerSequence" | , | ||
UINT32 | , | ||
27 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTransactionIndex | , |
"TransactionIndex" | , | ||
UINT32 | , | ||
28 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfOperationLimit | , |
"OperationLimit" | , | ||
UINT32 | , | ||
29 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfReferenceFeeUnits | , |
"ReferenceFeeUnits" | , | ||
UINT32 | , | ||
30 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfReserveBase | , |
"ReserveBase" | , | ||
UINT32 | , | ||
31 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfReserveIncrement | , |
"ReserveIncrement" | , | ||
UINT32 | , | ||
32 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfSetFlag | , |
"SetFlag" | , | ||
UINT32 | , | ||
33 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfClearFlag | , |
"ClearFlag" | , | ||
UINT32 | , | ||
34 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfSignerQuorum | , |
"SignerQuorum" | , | ||
UINT32 | , | ||
35 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfCancelAfter | , |
"CancelAfter" | , | ||
UINT32 | , | ||
36 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfFinishAfter | , |
"FinishAfter" | , | ||
UINT32 | , | ||
37 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfSignerListID | , |
"SignerListID" | , | ||
UINT32 | , | ||
38 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfSettleDelay | , |
"SettleDelay" | , | ||
UINT32 | , | ||
39 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTicketCount | , |
"TicketCount" | , | ||
UINT32 | , | ||
40 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTicketSequence | , |
"TicketSequence" | , | ||
UINT32 | , | ||
41 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfNFTokenTaxon | , |
"NFTokenTaxon" | , | ||
UINT32 | , | ||
42 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfMintedNFTokens | , |
"MintedNFTokens" | , | ||
UINT32 | , | ||
43 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfBurnedNFTokens | , |
"BurnedNFTokens" | , | ||
UINT32 | , | ||
44 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookStateCount | , |
"HookStateCount" | , | ||
UINT32 | , | ||
45 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfEmitGeneration | , |
"EmitGeneration" | , | ||
UINT32 | , | ||
46 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfFirstNFTokenSequence | , |
"FirstNFTokenSequence" | , | ||
UINT32 | , | ||
50 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfIndexNext | , |
"IndexNext" | , | ||
UINT64 | , | ||
1 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfIndexPrevious | , |
"IndexPrevious" | , | ||
UINT64 | , | ||
2 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfBookNode | , |
"BookNode" | , | ||
UINT64 | , | ||
3 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfOwnerNode | , |
"OwnerNode" | , | ||
UINT64 | , | ||
4 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfBaseFee | , |
"BaseFee" | , | ||
UINT64 | , | ||
5 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfExchangeRate | , |
"ExchangeRate" | , | ||
UINT64 | , | ||
6 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfLowNode | , |
"LowNode" | , | ||
UINT64 | , | ||
7 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHighNode | , |
"HighNode" | , | ||
UINT64 | , | ||
8 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfDestinationNode | , |
"DestinationNode" | , | ||
UINT64 | , | ||
9 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfCookie | , |
"Cookie" | , | ||
UINT64 | , | ||
10 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfServerVersion | , |
"ServerVersion" | , | ||
UINT64 | , | ||
11 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfNFTokenOfferNode | , |
"NFTokenOfferNode" | , | ||
UINT64 | , | ||
12 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfEmitBurden | , |
"EmitBurden" | , | ||
UINT64 | , | ||
13 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookOn | , |
"HookOn" | , | ||
UINT64 | , | ||
16 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookInstructionCount | , |
"HookInstructionCount" | , | ||
UINT64 | , | ||
17 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookReturnCode | , |
"HookReturnCode" | , | ||
UINT64 | , | ||
18 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfReferenceCount | , |
"ReferenceCount" | , | ||
UINT64 | , | ||
19 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfEmailHash | , |
"EmailHash" | , | ||
UINT128 | , | ||
1 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTakerPaysCurrency | , |
"TakerPaysCurrency" | , | ||
UINT160 | , | ||
1 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTakerPaysIssuer | , |
"TakerPaysIssuer" | , | ||
UINT160 | , | ||
2 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTakerGetsCurrency | , |
"TakerGetsCurrency" | , | ||
UINT160 | , | ||
3 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTakerGetsIssuer | , |
"TakerGetsIssuer" | , | ||
UINT160 | , | ||
4 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfLedgerHash | , |
"LedgerHash" | , | ||
UINT256 | , | ||
1 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfParentHash | , |
"ParentHash" | , | ||
UINT256 | , | ||
2 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTransactionHash | , |
"TransactionHash" | , | ||
UINT256 | , | ||
3 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfAccountHash | , |
"AccountHash" | , | ||
UINT256 | , | ||
4 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfPreviousTxnID | , |
"PreviousTxnID" | , | ||
UINT256 | , | ||
5 | , | ||
SField::sMD_DeleteFinal | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfLedgerIndex | , |
"LedgerIndex" | , | ||
UINT256 | , | ||
6 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfWalletLocator | , |
"WalletLocator" | , | ||
UINT256 | , | ||
7 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfRootIndex | , |
"RootIndex" | , | ||
UINT256 | , | ||
8 | , | ||
SField::sMD_Always | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfAccountTxnID | , |
"AccountTxnID" | , | ||
UINT256 | , | ||
9 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfNFTokenID | , |
"NFTokenID" | , | ||
UINT256 | , | ||
10 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfEmitParentTxnID | , |
"EmitParentTxnID" | , | ||
UINT256 | , | ||
11 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfEmitNonce | , |
"EmitNonce" | , | ||
UINT256 | , | ||
12 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfEmitHookHash | , |
"EmitHookHash" | , | ||
UINT256 | , | ||
13 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfBookDirectory | , |
"BookDirectory" | , | ||
UINT256 | , | ||
16 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfInvoiceID | , |
"InvoiceID" | , | ||
UINT256 | , | ||
17 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfNickname | , |
"Nickname" | , | ||
UINT256 | , | ||
18 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfAmendment | , |
"Amendment" | , | ||
UINT256 | , | ||
19 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfDigest | , |
"Digest" | , | ||
UINT256 | , | ||
21 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfChannel | , |
"Channel" | , | ||
UINT256 | , | ||
22 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfConsensusHash | , |
"ConsensusHash" | , | ||
UINT256 | , | ||
23 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfCheckID | , |
"CheckID" | , | ||
UINT256 | , | ||
24 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfValidatedHash | , |
"ValidatedHash" | , | ||
UINT256 | , | ||
25 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfPreviousPageMin | , |
"PreviousPageMin" | , | ||
UINT256 | , | ||
26 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfNextPageMin | , |
"NextPageMin" | , | ||
UINT256 | , | ||
27 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfNFTokenBuyOffer | , |
"NFTokenBuyOffer" | , | ||
UINT256 | , | ||
28 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfNFTokenSellOffer | , |
"NFTokenSellOffer" | , | ||
UINT256 | , | ||
29 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookStateKey | , |
"HookStateKey" | , | ||
UINT256 | , | ||
30 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookHash | , |
"HookHash" | , | ||
UINT256 | , | ||
31 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookNamespace | , |
"HookNamespace" | , | ||
UINT256 | , | ||
32 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookSetTxnID | , |
"HookSetTxnID" | , | ||
UINT256 | , | ||
33 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfAmount | , |
"Amount" | , | ||
AMOUNT | , | ||
1 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfBalance | , |
"Balance" | , | ||
AMOUNT | , | ||
2 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfLimitAmount | , |
"LimitAmount" | , | ||
AMOUNT | , | ||
3 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTakerPays | , |
"TakerPays" | , | ||
AMOUNT | , | ||
4 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTakerGets | , |
"TakerGets" | , | ||
AMOUNT | , | ||
5 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfLowLimit | , |
"LowLimit" | , | ||
AMOUNT | , | ||
6 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHighLimit | , |
"HighLimit" | , | ||
AMOUNT | , | ||
7 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfFee | , |
"Fee" | , | ||
AMOUNT | , | ||
8 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfSendMax | , |
"SendMax" | , | ||
AMOUNT | , | ||
9 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfDeliverMin | , |
"DeliverMin" | , | ||
AMOUNT | , | ||
10 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfMinimumOffer | , |
"MinimumOffer" | , | ||
AMOUNT | , | ||
16 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfRippleEscrow | , |
"RippleEscrow" | , | ||
AMOUNT | , | ||
17 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfDeliveredAmount | , |
"DeliveredAmount" | , | ||
AMOUNT | , | ||
18 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfNFTokenBrokerFee | , |
"NFTokenBrokerFee" | , | ||
AMOUNT | , | ||
19 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfBaseFeeDrops | , |
"BaseFeeDrops" | , | ||
AMOUNT | , | ||
22 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfReserveBaseDrops | , |
"ReserveBaseDrops" | , | ||
AMOUNT | , | ||
23 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfReserveIncrementDrops | , |
"ReserveIncrementDrops" | , | ||
AMOUNT | , | ||
24 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfPublicKey | , |
"PublicKey" | , | ||
VL | , | ||
1 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfMessageKey | , |
"MessageKey" | , | ||
VL | , | ||
2 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfSigningPubKey | , |
"SigningPubKey" | , | ||
VL | , | ||
3 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTxnSignature | , |
"TxnSignature" | , | ||
VL | , | ||
4 | , | ||
SField::sMD_Default | , | ||
SField::notSigning | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfURI | , |
"URI" | , | ||
VL | , | ||
5 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfSignature | , |
"Signature" | , | ||
VL | , | ||
6 | , | ||
SField::sMD_Default | , | ||
SField::notSigning | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfDomain | , |
"Domain" | , | ||
VL | , | ||
7 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfFundCode | , |
"FundCode" | , | ||
VL | , | ||
8 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfRemoveCode | , |
"RemoveCode" | , | ||
VL | , | ||
9 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfExpireCode | , |
"ExpireCode" | , | ||
VL | , | ||
10 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfCreateCode | , |
"CreateCode" | , | ||
VL | , | ||
11 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfMemoType | , |
"MemoType" | , | ||
VL | , | ||
12 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfMemoData | , |
"MemoData" | , | ||
VL | , | ||
13 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfMemoFormat | , |
"MemoFormat" | , | ||
VL | , | ||
14 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfFulfillment | , |
"Fulfillment" | , | ||
VL | , | ||
16 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfCondition | , |
"Condition" | , | ||
VL | , | ||
17 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfMasterSignature | , |
"MasterSignature" | , | ||
VL | , | ||
18 | , | ||
SField::sMD_Default | , | ||
SField::notSigning | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfUNLModifyValidator | , |
"UNLModifyValidator" | , | ||
VL | , | ||
19 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfValidatorToDisable | , |
"ValidatorToDisable" | , | ||
VL | , | ||
20 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfValidatorToReEnable | , |
"ValidatorToReEnable" | , | ||
VL | , | ||
21 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookStateData | , |
"HookStateData" | , | ||
VL | , | ||
22 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookReturnString | , |
"HookReturnString" | , | ||
VL | , | ||
23 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookParameterName | , |
"HookParameterName" | , | ||
VL | , | ||
24 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookParameterValue | , |
"HookParameterValue" | , | ||
VL | , | ||
25 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfAccount | , |
"Account" | , | ||
ACCOUNT | , | ||
1 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfOwner | , |
"Owner" | , | ||
ACCOUNT | , | ||
2 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfDestination | , |
"Destination" | , | ||
ACCOUNT | , | ||
3 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfIssuer | , |
"Issuer" | , | ||
ACCOUNT | , | ||
4 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfAuthorize | , |
"Authorize" | , | ||
ACCOUNT | , | ||
5 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfUnauthorize | , |
"Unauthorize" | , | ||
ACCOUNT | , | ||
6 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfRegularKey | , |
"RegularKey" | , | ||
ACCOUNT | , | ||
8 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfNFTokenMinter | , |
"NFTokenMinter" | , | ||
ACCOUNT | , | ||
9 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfEmitCallback | , |
"EmitCallback" | , | ||
ACCOUNT | , | ||
10 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHookAccount | , |
"HookAccount" | , | ||
ACCOUNT | , | ||
16 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfIndexes | , |
"Indexes" | , | ||
VECTOR256 | , | ||
1 | , | ||
SField::sMD_Never | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfHashes | , |
"Hashes" | , | ||
VECTOR256 | , | ||
2 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfAmendments | , |
"Amendments" | , | ||
VECTOR256 | , | ||
3 | |||
) |
ripple::CONSTRUCT_TYPED_SFIELD | ( | sfNFTokenOffers | , |
"NFTokenOffers" | , | ||
VECTOR256 | , | ||
4 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfPaths | , |
"Paths" | , | ||
PATHSET | , | ||
1 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfTransactionMetaData | , |
"TransactionMetaData" | , | ||
OBJECT | , | ||
2 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfCreatedNode | , |
"CreatedNode" | , | ||
OBJECT | , | ||
3 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfDeletedNode | , |
"DeletedNode" | , | ||
OBJECT | , | ||
4 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfModifiedNode | , |
"ModifiedNode" | , | ||
OBJECT | , | ||
5 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfPreviousFields | , |
"PreviousFields" | , | ||
OBJECT | , | ||
6 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfFinalFields | , |
"FinalFields" | , | ||
OBJECT | , | ||
7 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfNewFields | , |
"NewFields" | , | ||
OBJECT | , | ||
8 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfTemplateEntry | , |
"TemplateEntry" | , | ||
OBJECT | , | ||
9 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfMemo | , |
"Memo" | , | ||
OBJECT | , | ||
10 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfSignerEntry | , |
"SignerEntry" | , | ||
OBJECT | , | ||
11 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfNFToken | , |
"NFToken" | , | ||
OBJECT | , | ||
12 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfEmitDetails | , |
"EmitDetails" | , | ||
OBJECT | , | ||
13 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfHook | , |
"Hook" | , | ||
OBJECT | , | ||
14 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfSigner | , |
"Signer" | , | ||
OBJECT | , | ||
16 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfMajority | , |
"Majority" | , | ||
OBJECT | , | ||
18 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfDisabledValidator | , |
"DisabledValidator" | , | ||
OBJECT | , | ||
19 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfEmittedTxn | , |
"EmittedTxn" | , | ||
OBJECT | , | ||
20 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfHookExecution | , |
"HookExecution" | , | ||
OBJECT | , | ||
21 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfHookDefinition | , |
"HookDefinition" | , | ||
OBJECT | , | ||
22 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfHookParameter | , |
"HookParameter" | , | ||
OBJECT | , | ||
23 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfHookGrant | , |
"HookGrant" | , | ||
OBJECT | , | ||
24 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfSigners | , |
"Signers" | , | ||
ARRAY | , | ||
3 | , | ||
SField::sMD_Default | , | ||
SField::notSigning | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfSignerEntries | , |
"SignerEntries" | , | ||
ARRAY | , | ||
4 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfTemplate | , |
"Template" | , | ||
ARRAY | , | ||
5 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfNecessary | , |
"Necessary" | , | ||
ARRAY | , | ||
6 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfSufficient | , |
"Sufficient" | , | ||
ARRAY | , | ||
7 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfAffectedNodes | , |
"AffectedNodes" | , | ||
ARRAY | , | ||
8 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfMemos | , |
"Memos" | , | ||
ARRAY | , | ||
9 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfNFTokens | , |
"NFTokens" | , | ||
ARRAY | , | ||
10 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfHooks | , |
"Hooks" | , | ||
ARRAY | , | ||
11 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfMajorities | , |
"Majorities" | , | ||
ARRAY | , | ||
16 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfDisabledValidators | , |
"DisabledValidators" | , | ||
ARRAY | , | ||
17 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfHookExecutions | , |
"HookExecutions" | , | ||
ARRAY | , | ||
18 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfHookParameters | , |
"HookParameters" | , | ||
ARRAY | , | ||
19 | |||
) |
ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfHookGrants | , |
"HookGrants" | , | ||
ARRAY | , | ||
20 | |||
) |
void ripple::sign | ( | STObject & | st, |
HashPrefix const & | prefix, | ||
KeyType | type, | ||
SecretKey const & | sk, | ||
SF_VL const & | sigField = sfSignature |
||
) |
Sign an STObject.
st | Object to sign |
prefix | Prefix to insert before serialized object when hashing |
type | Signing key type used to derive public key |
sk | Signing secret key |
sigField | Field in which to store the signature on the object. If not specified the value defaults to sfSignature . |
bool ripple::verify | ( | STObject const & | st, |
HashPrefix const & | prefix, | ||
PublicKey const & | pk, | ||
SF_VL const & | sigField = sfSignature |
||
) |
Returns true
if STObject contains valid signature.
st | Signed object |
prefix | Prefix inserted before serialized object when hashing |
pk | Public key for verifying signature |
sigField | Object's field containing the signature. If not specified the value defaults to sfSignature . |
Serializer ripple::buildMultiSigningData | ( | STObject const & | obj, |
AccountID const & | signingID | ||
) |
Return a Serializer suitable for computing a multisigning TxnSignature.
Serializer ripple::startMultiSigningData | ( | STObject const & | obj | ) |
Break the multi-signing hash computation into 2 parts for optimization.
We can optimize verifying multiple multisignatures by splitting the data building into two parts; o A large part that is shared by all of the computations. o A small part that is unique to each signer in the multisignature.
The following methods support that optimization:
bool ripple::getSTAmountCanonicalizeSwitchover | ( | ) |
Definition at line 49 of file STAmount.cpp.
void ripple::setSTAmountCanonicalizeSwitchover | ( | bool | v | ) |
Definition at line 55 of file STAmount.cpp.
|
static |
Definition at line 66 of file STAmount.cpp.
Definition at line 82 of file STAmount.cpp.
Definition at line 397 of file STAmount.cpp.
Definition at line 469 of file STAmount.cpp.
std::uint64_t ripple::getRate | ( | STAmount const & | offerOut, |
STAmount const & | offerIn | ||
) |
Definition at line 495 of file STAmount.cpp.
STAmount ripple::amountFromQuality | ( | std::uint64_t | rate | ) |
Definition at line 852 of file STAmount.cpp.
STAmount ripple::amountFromString | ( | Issue const & | issue, |
std::string const & | amount | ||
) |
Definition at line 864 of file STAmount.cpp.
STAmount ripple::amountFromJson | ( | SField const & | name, |
Json::Value const & | v | ||
) |
Definition at line 929 of file STAmount.cpp.
bool ripple::amountFromJsonNoThrow | ( | STAmount & | result, |
Json::Value const & | jvSource | ||
) |
Definition at line 1034 of file STAmount.cpp.
Definition at line 1056 of file STAmount.cpp.
Definition at line 1063 of file STAmount.cpp.
Definition at line 1098 of file STAmount.cpp.
|
static |
Definition at line 1121 of file STAmount.cpp.
|
static |
Definition at line 1142 of file STAmount.cpp.
Definition at line 1166 of file STAmount.cpp.
Definition at line 1211 of file STAmount.cpp.
|
static |
Definition at line 1270 of file STAmount.cpp.
STAmount ripple::mulRound | ( | STAmount const & | v1, |
STAmount const & | v2, | ||
Issue const & | issue, | ||
bool | roundUp | ||
) |
Definition at line 1305 of file STAmount.cpp.
STAmount ripple::divRound | ( | STAmount const & | num, |
STAmount const & | den, | ||
Issue const & | issue, | ||
bool | roundUp | ||
) |
Definition at line 1391 of file STAmount.cpp.
std::ostream & ripple::operator<< | ( | std::ostream & | out, |
const STBase & | t | ||
) |
Definition at line 147 of file STBase.cpp.
|
static |
|
static |
bool ripple::passesLocalChecks | ( | STObject const & | st, |
std::string & | reason | ||
) |
std::shared_ptr< STTx const > ripple::sterilize | ( | STTx const & | stx | ) |
bool ripple::isPseudoTx | ( | STObject const & | tx | ) |
bool ripple::transResultInfo | ( | TER | code, |
std::string & | token, | ||
std::string & | text | ||
) |
std::string ripple::transToken | ( | TER | code | ) |
std::string ripple::transHuman | ( | TER | code | ) |
std::optional< TER > ripple::transCode | ( | std::string const & | token | ) |
|
staticnoexcept |
Definition at line 47 of file tokens.cpp.
|
static |
Definition at line 60 of file tokens.cpp.
|
static |
Definition at line 68 of file tokens.cpp.
|
static |
Calculate a 4-byte checksum of the data.
The checksum is calculated as the first 4 bytes of the SHA256 digest of the message. This is added to the base58 encoding of identifiers to detect user error in data entry.
Definition at line 83 of file tokens.cpp.
std::string ripple::encodeBase58Token | ( | TokenType | type, |
void const * | token, | ||
std::size_t | size | ||
) |
Encode data in Base58Check format using XRPL alphabet.
For details on the format see https://xrpl.org/base58-encodings.html#base58-encodings
type | The type of token to encode. |
token | Pointer to the data to encode. |
size | The size of the data to encode. |
Definition at line 199 of file tokens.cpp.
std::string ripple::decodeBase58Token | ( | std::string const & | s, |
TokenType | type | ||
) |
Decode a token of given type encoded using Base58Check and the XRPL alphabet.
s | The encoded token |
type | The type expected for this token. |
Definition at line 223 of file tokens.cpp.
bool ripple::to_currency | ( | Currency & | , |
std::string const & | |||
) |
Tries to convert a string to a Currency, returns true on success.
Definition at line 80 of file UintTypes.cpp.
Currency ripple::to_currency | ( | std::string const & | ) |
Tries to convert a string to a Currency, returns noCurrency() on failure.
Definition at line 112 of file UintTypes.cpp.
Currency const & ripple::xrpCurrency | ( | ) |
XRP currency.
Definition at line 121 of file UintTypes.cpp.
Currency const & ripple::noCurrency | ( | ) |
A placeholder for empty currencies.
Definition at line 128 of file UintTypes.cpp.
Currency const & ripple::badCurrency | ( | ) |
We deliberately disallow the currency that looks like "XRP" because too many people were using it instead of the correct XRP currency.
Definition at line 135 of file UintTypes.cpp.
void ripple::hash_append | ( | Hasher & | h, |
Issue const & | r | ||
) |
|
constexpr |
Issue const& ripple::xrpIssue | ( | ) |
Issue const& ripple::noIssue | ( | ) |
std::optional<KeyType> ripple::keyTypeFromString | ( | std::string const & | s | ) |
Stream& ripple::operator<< | ( | Stream & | s, |
KeyType | type | ||
) |
void ripple::serializePayChanAuthorization | ( | Serializer & | msg, |
uint256 const & | key, | ||
XRPAmount const & | amt | ||
) |
Definition at line 31 of file protocol/PayChan.h.
Definition at line 140 of file PublicKey.h.
Definition at line 147 of file PublicKey.h.
void ripple::hash_append | ( | Hasher & | h, |
PublicKey const & | pk | ||
) |
Definition at line 158 of file PublicKey.h.
std::string ripple::toBase58 | ( | TokenType | type, |
PublicKey const & | pk | ||
) |
Definition at line 186 of file PublicKey.h.
std::optional<KeyType> ripple::publicKeyType | ( | PublicKey const & | publicKey | ) |
Definition at line 235 of file PublicKey.h.
std::ostream& ripple::operator<< | ( | std::ostream & | os, |
Rate const & | rate | ||
) |
Definition at line 100 of file SecretKey.h.
Definition at line 107 of file SecretKey.h.
std::string ripple::toBase58 | ( | TokenType | type, |
SecretKey const & | sk | ||
) |
Definition at line 120 of file SecretKey.h.
Definition at line 162 of file SecretKey.h.
Definition at line 177 of file SecretKey.h.
std::string ripple::toBase58 | ( | Seed const & | seed | ) |
int ripple::field_code | ( | SerializedTypeID | id, |
int | index | ||
) |
OptionaledField<T> ripple::operator~ | ( | TypedField< T > const & | f | ) |
void ripple::finishMultiSigningData | ( | AccountID const & | signingID, |
Serializer & | s | ||
) |
Definition at line 311 of file STAmount.h.
bool ripple::isLegalNet | ( | STAmount const & | value | ) |
Definition at line 446 of file STAmount.h.
Definition at line 463 of file STAmount.h.
Definition at line 469 of file STAmount.h.
Definition at line 475 of file STAmount.h.
Definition at line 481 of file STAmount.h.
bool ripple::isXRP | ( | STAmount const & | amount | ) |
Definition at line 530 of file STAmount.h.
std::optional<T> ripple::get | ( | STObject const & | st, |
TypedField< U > const & | f | ||
) |
Return the value of a field in an STObject as a given type.
Definition at line 115 of file STExchange.h.
std::optional<typename STExchange<U, typename U::value_type>::value_type> ripple::get | ( | STObject const & | st, |
TypedField< U > const & | f | ||
) |
Definition at line 134 of file STExchange.h.
void ripple::set | ( | STObject & | st, |
TypedField< U > const & | f, | ||
T && | t | ||
) |
Set a field value in an STObject.
Definition at line 143 of file STExchange.h.
void ripple::set | ( | STObject & | st, |
TypedField< STBlob > const & | f, | ||
std::size_t | size, | ||
Init && | init | ||
) |
Set a blob field using an init function.
Definition at line 152 of file STExchange.h.
void ripple::set | ( | STObject & | st, |
TypedField< STBlob > const & | f, | ||
void const * | data, | ||
std::size_t | size | ||
) |
Set a blob field from data.
Definition at line 160 of file STExchange.h.
void ripple::erase | ( | STObject & | st, |
TypedField< U > const & | f | ||
) |
Remove a field in an STObject.
Definition at line 171 of file STExchange.h.
void ripple::throwFieldNotFound | ( | SField const & | field | ) |
Definition at line 46 of file STObject.h.
|
static |
Definition at line 34 of file SystemParameters.h.
bool ripple::isLegalAmount | ( | XRPAmount const & | amount | ) |
Returns true if the amount does not exceed the initial XRP in existence.
Definition at line 47 of file SystemParameters.h.
bool ripple::isLegalAmountSigned | ( | XRPAmount const & | amount | ) |
Returns true if the absolute value of the amount does not exceed the initial XRP in existence.
Definition at line 55 of file SystemParameters.h.
|
static |
Definition at line 62 of file SystemParameters.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > ripple::doLedgerGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > & | context | ) |
Definition at line 105 of file LedgerHandler.cpp.
std::pair< org::xrpl::rpc::v1::GetLedgerEntryResponse, grpc::Status > ripple::doLedgerEntryGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerEntryRequest > & | context | ) |
Definition at line 400 of file LedgerEntry.cpp.
std::pair< org::xrpl::rpc::v1::GetLedgerDataResponse, grpc::Status > ripple::doLedgerDataGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDataRequest > & | context | ) |
Definition at line 135 of file LedgerData.cpp.
std::pair< org::xrpl::rpc::v1::GetLedgerDiffResponse, grpc::Status > ripple::doLedgerDiffGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerDiffRequest > & | context | ) |
Definition at line 6 of file LedgerDiff.cpp.
void ripple::addChannel | ( | Json::Value & | jsonLines, |
SLE const & | line | ||
) |
Definition at line 35 of file AccountChannels.cpp.
Json::Value ripple::doAccountChannels | ( | RPC::JsonContext & | context | ) |
Definition at line 68 of file AccountChannels.cpp.
Json::Value ripple::doAccountCurrencies | ( | RPC::JsonContext & | context | ) |
Definition at line 32 of file AccountCurrenciesHandler.cpp.
Json::Value ripple::doAccountInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 50 of file AccountInfo.cpp.
void ripple::addLine | ( | Json::Value & | jsonLines, |
RPCTrustLine const & | line | ||
) |
Definition at line 34 of file AccountLines.cpp.
Json::Value ripple::doAccountLines | ( | RPC::JsonContext & | context | ) |
Definition at line 77 of file AccountLines.cpp.
Json::Value ripple::doAccountNFTs | ( | RPC::JsonContext & | context | ) |
General RPC command that can retrieve objects in the account root.
{ account: <account> ledger_hash: <string> // optional ledger_index: <string | unsigned integer> // optional type: <string> // optional, defaults to all account objects types limit: <integer> // optional marker: <opaque> // optional, resume previous query }
Definition at line 52 of file AccountObjects.cpp.
Json::Value ripple::doAccountObjects | ( | RPC::JsonContext & | context | ) |
Definition at line 165 of file AccountObjects.cpp.
void ripple::appendOfferJson | ( | std::shared_ptr< SLE const > const & | offer, |
Json::Value & | offers | ||
) |
Definition at line 35 of file AccountOffers.cpp.
Json::Value ripple::doAccountOffers | ( | RPC::JsonContext & | context | ) |
Definition at line 57 of file AccountOffers.cpp.
std::variant<std::optional<LedgerSpecifier>, Json::Value> ripple::parseLedgerArgs | ( | Json::Value const & | params | ) |
Definition at line 56 of file AccountTx.cpp.
std::variant<LedgerRange, RPC::Status> ripple::getLedgerRange | ( | RPC::Context & | context, |
std::optional< LedgerSpecifier > const & | ledgerSpecifier | ||
) |
Definition at line 121 of file AccountTx.cpp.
std::pair<AccountTxResult, RPC::Status> ripple::doAccountTxHelp | ( | RPC::Context & | context, |
AccountTxArgs const & | args | ||
) |
Definition at line 193 of file AccountTx.cpp.
Json::Value ripple::populateJsonResponse | ( | std::pair< AccountTxResult, RPC::Status > const & | res, |
AccountTxArgs const & | args, | ||
RPC::JsonContext const & | context | ||
) |
Definition at line 272 of file AccountTx.cpp.
Json::Value ripple::doAccountTxJson | ( | RPC::JsonContext & | context | ) |
Definition at line 358 of file AccountTx.cpp.
Json::Value ripple::doBlackList | ( | RPC::JsonContext & | context | ) |
Definition at line 28 of file BlackList.cpp.
Json::Value ripple::doBookOffers | ( | RPC::JsonContext & | context | ) |
Definition at line 36 of file BookOffers.cpp.
Json::Value ripple::doBookChanges | ( | RPC::JsonContext & | context | ) |
Definition at line 205 of file BookOffers.cpp.
Json::Value ripple::doCanDelete | ( | RPC::JsonContext & | context | ) |
Definition at line 35 of file CanDelete.cpp.
Json::Value ripple::doConnect | ( | RPC::JsonContext & | context | ) |
Definition at line 38 of file Connect.cpp.
Json::Value ripple::doConsensusInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 31 of file ConsensusInfo.cpp.
Json::Value ripple::doCrawlShards | ( | RPC::JsonContext & | context | ) |
RPC command that reports stored shards by nodes.
{ Determines if the result includes node public key. optional, default is false public_key: <bool>
The maximum number of peer hops to attempt. optional, default is zero, maximum is 3 limit: <integer> }
Definition at line 44 of file CrawlShards.cpp.
Json::Value ripple::doDepositAuthorized | ( | RPC::JsonContext & | context | ) |
Definition at line 38 of file DepositAuthorized.cpp.
Json::Value ripple::doDownloadShard | ( | RPC::JsonContext & | context | ) |
RPC command that downloads and import shard archives.
{ shards: [{index: <integer>, url: <string>}] }
example: { "command": "download_shard", "shards": [ {"index": 1, "url": "https://domain.com/1.tar.lz4"}, {"index": 5, "url": "https://domain.com/5.tar.lz4"} ] }
Definition at line 49 of file DownloadShard.cpp.
Json::Value ripple::doFeature | ( | RPC::JsonContext & | context | ) |
Definition at line 35 of file Feature1.cpp.
Json::Value ripple::doFee | ( | RPC::JsonContext & | context | ) |
Json::Value ripple::doFetchInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 31 of file FetchInfo.cpp.
Json::Value ripple::doGatewayBalances | ( | RPC::JsonContext & | context | ) |
Definition at line 54 of file GatewayBalances.cpp.
|
static |
Definition at line 40 of file GetCounts.cpp.
Json::Value ripple::getCountsJson | ( | Application & | app, |
int | minObjectCount | ||
) |
Definition at line 65 of file GetCounts.cpp.
Json::Value ripple::doGetCounts | ( | RPC::JsonContext & | context | ) |
Definition at line 161 of file GetCounts.cpp.
Json::Value ripple::doChannelAuthorize | ( | RPC::JsonContext & | context | ) |
Definition at line 44 of file PayChanClaim.cpp.
Json::Value ripple::doChannelVerify | ( | RPC::JsonContext & | context | ) |
Definition at line 99 of file PayChanClaim.cpp.
Json::Value ripple::doLedgerAccept | ( | RPC::JsonContext & | context | ) |
Definition at line 35 of file LedgerAccept.cpp.
Json::Value ripple::doLedgerCleaner | ( | RPC::JsonContext & | context | ) |
Definition at line 29 of file LedgerCleanerHandler.cpp.
Json::Value ripple::doLedgerClosed | ( | RPC::JsonContext & | context | ) |
Definition at line 29 of file LedgerClosed.cpp.
Json::Value ripple::doLedgerCurrent | ( | RPC::JsonContext & | context | ) |
Definition at line 30 of file LedgerCurrent.cpp.
Json::Value ripple::doLedgerData | ( | RPC::JsonContext & | context | ) |
Definition at line 45 of file LedgerData.cpp.
Json::Value ripple::doLedgerEntry | ( | RPC::JsonContext & | context | ) |
Definition at line 40 of file LedgerEntry.cpp.
Json::Value ripple::doLedgerHeader | ( | RPC::JsonContext & | context | ) |
Definition at line 33 of file LedgerHeader.cpp.
Json::Value ripple::doLedgerRequest | ( | RPC::JsonContext & | context | ) |
Definition at line 40 of file LedgerRequest.cpp.
Json::Value ripple::doLogLevel | ( | RPC::JsonContext & | context | ) |
Definition at line 32 of file LogLevel.cpp.
Json::Value ripple::doLogRotate | ( | RPC::JsonContext & | context | ) |
Definition at line 28 of file LogRotate.cpp.
Json::Value ripple::doManifest | ( | RPC::JsonContext & | context | ) |
Definition at line 30 of file rpc/handlers/Manifest.cpp.
Json::Value ripple::doNFTBuyOffers | ( | RPC::JsonContext & | context | ) |
Definition at line 165 of file NFTOffers.cpp.
Json::Value ripple::doNFTSellOffers | ( | RPC::JsonContext & | context | ) |
Definition at line 151 of file NFTOffers.cpp.
Json::Value ripple::doNodeToShard | ( | RPC::JsonContext & | context | ) |
Definition at line 33 of file NodeToShard.cpp.
Json::Value ripple::doNoRippleCheck | ( | RPC::JsonContext & | context | ) |
Definition at line 61 of file NoRippleCheck.cpp.
Json::Value ripple::doOwnerInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 35 of file OwnerInfo.cpp.
Json::Value ripple::doPathFind | ( | RPC::JsonContext & | context | ) |
Definition at line 33 of file PathFind.cpp.
Json::Value ripple::doPause | ( | RPC::JsonContext & | ) |
Json::Value ripple::doPeers | ( | RPC::JsonContext & | context | ) |
Json::Value ripple::doPing | ( | RPC::JsonContext & | context | ) |
Json::Value ripple::doPrint | ( | RPC::JsonContext & | context | ) |
Json::Value ripple::doRandom | ( | RPC::JsonContext & | context | ) |
Definition at line 39 of file Random.cpp.
Json::Value ripple::doResume | ( | RPC::JsonContext & | ) |
Json::Value ripple::doPeerReservationsAdd | ( | RPC::JsonContext & | context | ) |
Definition at line 35 of file Reservations.cpp.
Json::Value ripple::doPeerReservationsDel | ( | RPC::JsonContext & | context | ) |
Definition at line 91 of file Reservations.cpp.
Json::Value ripple::doPeerReservationsList | ( | RPC::JsonContext & | context | ) |
Definition at line 121 of file Reservations.cpp.
Json::Value ripple::doRipplePathFind | ( | RPC::JsonContext & | context | ) |
Definition at line 32 of file RipplePathFind.cpp.
Json::Value ripple::doServerInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 33 of file ServerInfo.cpp.
Json::Value ripple::doServerState | ( | RPC::JsonContext & | context | ) |
Definition at line 31 of file ServerState.cpp.
Json::Value ripple::doSign | ( | RPC::JsonContext & | context | ) |
Definition at line 33 of file SignHandler.cpp.
Json::Value ripple::doSignFor | ( | RPC::JsonContext & | context | ) |
Definition at line 35 of file SignFor.cpp.
Json::Value ripple::doStop | ( | RPC::JsonContext & | context | ) |
Json::Value ripple::doSubmit | ( | RPC::JsonContext & | context | ) |
Definition at line 47 of file Submit.cpp.
Json::Value ripple::doSubmitMultiSigned | ( | RPC::JsonContext & | context | ) |
Definition at line 34 of file SubmitMultiSigned.cpp.
Json::Value ripple::doSubscribe | ( | RPC::JsonContext & | context | ) |
Definition at line 37 of file Subscribe.cpp.
Json::Value ripple::doTransactionEntry | ( | RPC::JsonContext & | context | ) |
Definition at line 36 of file TransactionEntry.cpp.
Json::Value ripple::doTxJson | ( | RPC::JsonContext & | context | ) |
Json::Value ripple::doTxHistory | ( | RPC::JsonContext & | context | ) |
Definition at line 42 of file TxHistory.cpp.
Json::Value ripple::doTxReduceRelay | ( | RPC::JsonContext & | context | ) |
Definition at line 28 of file TxReduceRelay.cpp.
Json::Value ripple::doUnlList | ( | RPC::JsonContext & | context | ) |
Definition at line 30 of file UnlList.cpp.
Json::Value ripple::doUnsubscribe | ( | RPC::JsonContext & | context | ) |
Definition at line 32 of file Unsubscribe.cpp.
Json::Value ripple::doValidationCreate | ( | RPC::JsonContext & | context | ) |
Definition at line 45 of file ValidationCreate.cpp.
Json::Value ripple::doWalletPropose | ( | RPC::JsonContext & | context | ) |
Definition at line 67 of file WalletPropose.cpp.
Json::Value ripple::doValidators | ( | RPC::JsonContext & | context | ) |
Definition at line 29 of file Validators.cpp.
Json::Value ripple::doValidatorListSites | ( | RPC::JsonContext & | context | ) |
Definition at line 29 of file ValidatorListSites.cpp.
Json::Value ripple::doValidatorInfo | ( | RPC::JsonContext & | context | ) |
Definition at line 30 of file ValidatorInfo.cpp.
|
static |
Definition at line 35 of file NFTOffers.cpp.
|
static |
Definition at line 63 of file NFTOffers.cpp.
|
static |
Definition at line 35 of file NoRippleCheck.cpp.
|
static |
Definition at line 35 of file Submit.cpp.
|
static |
std::pair<TxResult, RPC::Status> ripple::doTxPostgres | ( | RPC::Context & | context, |
TxArgs const & | args | ||
) |
std::pair<TxResult, RPC::Status> ripple::doTxHelp | ( | RPC::Context & | context, |
TxArgs const & | args | ||
) |
Json::Value ripple::populateJsonResponse | ( | std::pair< TxResult, RPC::Status > const & | res, |
TxArgs const & | args, | ||
RPC::JsonContext const & | context | ||
) |
|
static |
Definition at line 30 of file ValidationCreate.cpp.
double ripple::estimate_entropy | ( | std::string const & | input | ) |
Definition at line 38 of file WalletPropose.cpp.
Json::Value ripple::walletPropose | ( | Json::Value const & | params | ) |
Definition at line 73 of file WalletPropose.cpp.
bool ripple::passwordUnrequiredOrSentCorrect | ( | Port const & | port, |
Json::Value const & | params | ||
) |
bool ripple::ipAllowed | ( | beast::IP::Address const & | remoteIp, |
std::vector< boost::asio::ip::network_v4 > const & | nets4, | ||
std::vector< boost::asio::ip::network_v6 > const & | nets6 | ||
) |
bool ripple::isAdmin | ( | Port const & | port, |
Json::Value const & | params, | ||
beast::IP::Address const & | remoteIp | ||
) |
Role ripple::requestRole | ( | Role const & | required, |
Port const & | port, | ||
Json::Value const & | params, | ||
beast::IP::Endpoint const & | remoteIp, | ||
boost::string_view const & | user | ||
) |
Return the allowed privilege role.
params must meet the requirements of the JSON-RPC specification. It must be of type Object, containing the key params which is an array with at least one object. Inside this object are the optional keys 'admin_user' and 'admin_password' used to validate the credentials. If user is non-blank, it's username passed in the HTTP header by a secure_gateway proxy.
bool ripple::isUnlimited | ( | Role const & | role | ) |
bool ripple::isUnlimited | ( | Role const & | required, |
Port const & | port, | ||
Json::Value const & | params, | ||
beast::IP::Endpoint const & | remoteIp, | ||
std::string const & | user | ||
) |
Resource::Consumer ripple::requestInboundEndpoint | ( | Resource::Manager & | manager, |
beast::IP::Endpoint const & | remoteAddress, | ||
Role const & | role, | ||
boost::string_view const & | user, | ||
boost::string_view const & | forwardedFor | ||
) |
|
static |
boost::string_view ripple::forwardedFor | ( | http_request_type const & | request | ) |
|
static |
Definition at line 57 of file ServerHandlerImp.cpp.
|
static |
Definition at line 65 of file ServerHandlerImp.cpp.
|
static |
Definition at line 85 of file ServerHandlerImp.cpp.
|
static |
Definition at line 237 of file ServerHandlerImp.cpp.
|
static |
Definition at line 245 of file ServerHandlerImp.cpp.
|
static |
Definition at line 261 of file ServerHandlerImp.cpp.
void ripple::logDuration | ( | Json::Value const & | request, |
T const & | duration, | ||
beast::Journal & | journal | ||
) |
Definition at line 383 of file ServerHandlerImp.cpp.
|
static |
Definition at line 573 of file ServerHandlerImp.cpp.
|
static |
Definition at line 1078 of file ServerHandlerImp.cpp.
|
static |
Definition at line 1129 of file ServerHandlerImp.cpp.
|
static |
Definition at line 1195 of file ServerHandlerImp.cpp.
|
static |
Definition at line 1219 of file ServerHandlerImp.cpp.
ServerHandler::Setup ripple::setup_ServerHandler | ( | Config const & | config, |
std::ostream && | log | ||
) |
Definition at line 1235 of file ServerHandlerImp.cpp.
std::unique_ptr< ServerHandler > ripple::make_ServerHandler | ( | Application & | app, |
boost::asio::io_service & | io_service, | ||
JobQueue & | jobQueue, | ||
NetworkOPs & | networkOPs, | ||
Resource::Manager & | resourceManager, | ||
CollectorManager & | cm | ||
) |
Definition at line 1247 of file ServerHandlerImp.cpp.
Definition at line 42 of file ServerHandlerImp.h.
std::string ripple::getHTTPHeaderTimestamp | ( | ) |
Definition at line 31 of file JSONRPCUtil.cpp.
void ripple::HTTPReply | ( | int | nStatus, |
std::string const & | content, | ||
Json::Output const & | output, | ||
beast::Journal | j | ||
) |
Definition at line 56 of file JSONRPCUtil.cpp.
|
noexcept |
Definition at line 35 of file LowestLayer.h.
std::ostream & ripple::operator<< | ( | std::ostream & | os, |
Port const & | p | ||
) |
|
static |
void ripple::parse_Port | ( | ParsedPort & | port, |
Section const & | section, | ||
std::ostream & | log | ||
) |
std::unique_ptr<Server> ripple::make_Server | ( | Handler & | handler, |
boost::asio::io_service & | io_service, | ||
beast::Journal | journal | ||
) |
std::shared_ptr<SHAMapLeafNode> ripple::makeTypedLeaf | ( | SHAMapNodeType | type, |
boost::intrusive_ptr< SHAMapItem const > | item, | ||
std::uint32_t | owner | ||
) |
Definition at line 31 of file SHAMap.cpp.
|
static |
Definition at line 30 of file SHAMapNodeID.cpp.
std::optional< SHAMapNodeID > ripple::deserializeSHAMapNodeID | ( | void const * | data, |
std::size_t | size | ||
) |
Return an object representing a serialized SHAMap Node ID.
s | A string of bytes |
data | a non-null pointer to a buffer of |
size | bytes. |
size | the size, in bytes, of the buffer pointed to by |
data. |
Definition at line 101 of file SHAMapNodeID.cpp.
unsigned int ripple::selectBranch | ( | SHAMapNodeID const & | id, |
uint256 const & | hash | ||
) |
Returns the branch that would contain the given hash.
Definition at line 121 of file SHAMapNodeID.cpp.
|
static |
Definition at line 30 of file ShardFamily.cpp.
bool ripple::operator== | ( | SHAMap::const_iterator const & | x, |
SHAMap::const_iterator const & | y | ||
) |
bool ripple::operator!= | ( | SHAMap::const_iterator const & | x, |
SHAMap::const_iterator const & | y | ||
) |
void ripple::intrusive_ptr_add_ref | ( | SHAMapItem const * | x | ) |
Definition at line 131 of file SHAMapItem.h.
void ripple::intrusive_ptr_release | ( | SHAMapItem const * | x | ) |
Definition at line 140 of file SHAMapItem.h.
boost::intrusive_ptr<SHAMapItem> ripple::make_shamapitem | ( | uint256 const & | tag, |
Slice | data | ||
) |
Definition at line 160 of file SHAMapItem.h.
boost::intrusive_ptr<SHAMapItem> ripple::make_shamapitem | ( | SHAMapItem const & | other | ) |
Definition at line 182 of file SHAMapItem.h.
std::string ripple::to_string | ( | SHAMapType | t | ) |
Definition at line 39 of file SHAMapMissingNode.h.
std::string ripple::to_string | ( | SHAMapNodeID const & | node | ) |
Definition at line 123 of file SHAMapNodeID.h.
std::ostream& ripple::operator<< | ( | std::ostream & | out, |
SHAMapNodeID const & | node | ||
) |
Definition at line 133 of file SHAMapNodeID.h.
std::optional<SHAMapNodeID> ripple::deserializeSHAMapNodeID | ( | std::string const & | s | ) |
Definition at line 151 of file SHAMapNodeID.h.
ripple::BEAST_DEFINE_TESTSUITE | ( | AccountTxPaging | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | AmendmentTable | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Check | , |
tx | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Discrepancy | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Freeze | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | LedgerLoad | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | LoadFeeTrack | , |
ripple_core | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFToken | , |
tx | , | ||
ripple | , | ||
2 | |||
) |
ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenBurn | , |
tx | , | ||
ripple | , | ||
3 | |||
) |
ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | NFTokenDir | , |
tx | , | ||
ripple | , | ||
1 | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | OfferStream | , |
tx | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | SetRegularKey | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Taker | , |
tx | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Ticket | , |
tx | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | TrustAndBalance | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Apply | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | base64 | , |
ripple_basics | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | contract | , |
basics | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | FileUtilities | , |
ripple_basics | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | hardened_hash | , |
basics | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | IOUAmount | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | KeyCache | , |
common | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Number | , |
ripple_basics | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | PerfLog | , |
basics | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | RangeSet | , |
ripple_basics | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | StringUtilities | , |
ripple_basics | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | TaggedCache | , |
common | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | XRPAmount | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Config | , |
core | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | CryptoPRNG | , |
core | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | SociDB | , |
core | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Workers | , |
core | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | json_value | , |
json | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Invariants | , |
ledger | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | ProtocolVersion | , |
overlay | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | short_read | , |
overlay | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | BuildInfo | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Hooks | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | InnerObjectFormatsParsedJSON | , |
ripple_app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Issue | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Memo | , |
ripple_data | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | PublicKey | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Quality | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | SecretKey | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Seed | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | SeqProxy | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | STAccount | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | STAmount | , |
ripple_data | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | STObject | , |
protocol | , | ||
ripple | |||
) |
bool ripple::matches | ( | char const * | string, |
char const * | regex | ||
) |
Return true if the string loosely matches the regex.
Meant for testing human-readable strings that may change over time.
Definition at line 42 of file STTx_test.cpp.
ripple::BEAST_DEFINE_TESTSUITE | ( | STTx | , |
ripple_app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | InnerObjectFormatsSerializer | , |
ripple_app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | STValidation | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | TER | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | types | , |
protocol | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | AccountCurrencies | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | AccountSet | , |
app | , | ||
ripple | , | ||
1 | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | AmendmentBlocked | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Feature | , |
rpc | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | GetCounts | , |
rpc | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | LedgerClosed | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE_PRIO | ( | LedgerData | , |
app | , | ||
ripple | , | ||
1 | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | LedgerRPC | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | NoRippleCheck | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO | ( | NoRippleCheckLimits | , |
app | , | ||
ripple | , | ||
1 | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | OwnerInfo | , |
app | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Peers | , |
rpc | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Transaction | , |
rpc | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | TransactionEntry | , |
rpc | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | TransactionHistory | , |
rpc | , | ||
ripple | |||
) |
ripple::BEAST_DEFINE_TESTSUITE | ( | Version | , |
rpc | , | ||
ripple | |||
) |
|
constexpr |
Definition at line 75 of file InboundLedger.cpp.
|
staticconstexpr |
Definition at line 146 of file LedgerMaster.cpp.
|
staticconstexpr |
Definition at line 149 of file LedgerMaster.cpp.
|
staticconstexpr |
Definition at line 152 of file LedgerMaster.cpp.
|
constexpr |
Definition at line 36 of file TransactionAcquire.cpp.
const create_genesis_t ripple::create_genesis {} |
Definition at line 62 of file Ledger.cpp.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
constexpr |
Definition at line 25 of file app/main/Tuning.h.
|
constexpr |
Definition at line 26 of file app/main/Tuning.h.
|
constexpr |
Definition at line 34 of file ValidatorSite.cpp.
|
constexpr |
Definition at line 35 of file ValidatorSite.cpp.
|
constexpr |
Definition at line 36 of file ValidatorSite.cpp.
|
static |
Definition at line 839 of file NetworkOPs.cpp.
|
static |
Definition at line 852 of file NetworkOPs.cpp.
|
static |
Definition at line 38 of file SetSignerList.cpp.
|
staticconstexpr |
Definition at line 54 of file IOUAmount.cpp.
|
staticconstexpr |
Definition at line 55 of file IOUAmount.cpp.
|
staticconstexpr |
Definition at line 57 of file IOUAmount.cpp.
|
staticconstexpr |
Definition at line 58 of file IOUAmount.cpp.
|
constexpr |
Definition at line 169 of file Number.cpp.
|
staticconstexpr |
Definition at line 32 of file safe_cast.h.
|
constexpr |
Number of drops per 1 XRP.
Definition at line 250 of file XRPAmount.h.
|
constexpr |
Possible ledger close time resolutions.
Values should not be duplicated.
Definition at line 35 of file LedgerTiming.h.
|
constexpr |
Initial resolution of ledger close time.
Definition at line 44 of file LedgerTiming.h.
|
constexpr |
Close time resolution in genesis ledger.
Definition at line 47 of file LedgerTiming.h.
|
constexpr |
How often we increase the close time resolution (in numbers of ledgers)
Definition at line 50 of file LedgerTiming.h.
|
constexpr |
How often we decrease the close time resolution (in numbers of ledgers)
Definition at line 53 of file LedgerTiming.h.
|
constexpr |
Definition at line 114 of file Config.cpp.
CheckpointersCollection ripple::checkpointers |
Definition at line 76 of file DatabaseCon.cpp.
|
static |
Definition at line 35 of file SNTPClock.cpp.
|
constexpr |
Definition at line 41 of file SNTPClock.cpp.
|
constexpr |
Definition at line 44 of file SNTPClock.cpp.
|
constexpr |
Definition at line 50 of file SNTPClock.cpp.
|
constexpr |
Definition at line 53 of file SNTPClock.cpp.
|
static |
Definition at line 37 of file SociDB.cpp.
const open_ledger_t ripple::open_ledger {} |
Definition at line 25 of file OpenView.cpp.
|
static |
Definition at line 348 of file ReadView.h.
|
static |
Definition at line 35 of file HTTPClient.cpp.
|
staticconstexpr |
Definition at line 142 of file Handshake.h.
|
staticconstexpr |
Definition at line 144 of file Handshake.h.
|
staticconstexpr |
Definition at line 146 of file Handshake.h.
|
staticconstexpr |
Definition at line 148 of file Handshake.h.
|
staticconstexpr |
Definition at line 149 of file Handshake.h.
|
staticconstexpr |
Definition at line 150 of file Handshake.h.
|
constexpr |
The list of protocol versions we speak and we prefer to use.
Definition at line 38 of file ProtocolVersion.cpp.
|
constexpr |
Definition at line 38 of file overlay/Message.h.
|
staticconstexpr |
Definition at line 36 of file ripple/overlay/Peer.h.
const uint256 ripple::featureOwnerPaysFee |
const uint256 ripple::featureFlow |
const uint256 ripple::featureFlowCross |
const uint256 ripple::featureCryptoConditionsSuite |
const uint256 ripple::fix1513 |
const uint256 ripple::featureDepositAuth |
const uint256 ripple::featureChecks |
const uint256 ripple::fix1571 |
const uint256 ripple::fix1543 |
const uint256 ripple::fix1623 |
const uint256 ripple::featureDepositPreauth |
const uint256 ripple::fix1515 |
const uint256 ripple::fix1578 |
const uint256 ripple::featureMultiSignReserve |
const uint256 ripple::fixTakerDryOfferRemoval |
const uint256 ripple::fixMasterKeyAsRegularKey |
const uint256 ripple::fixCheckThreading |
const uint256 ripple::fixPayChanRecipientOwnerDir |
const uint256 ripple::featureDeletableAccounts |
const uint256 ripple::fixQualityUpperBound |
const uint256 ripple::featureRequireFullyCanonicalSig |
const uint256 ripple::fix1781 |
const uint256 ripple::featureHardenedValidations |
const uint256 ripple::fixAmendmentMajorityCalc |
const uint256 ripple::featureNegativeUNL |
const uint256 ripple::featureTicketBatch |
const uint256 ripple::featureFlowSortStrands |
const uint256 ripple::fixSTAmountCanonicalize |
const uint256 ripple::fixRmSmallIncreasedQOffers |
const uint256 ripple::featureCheckCashMakesTrustLine |
const uint256 ripple::featureNonFungibleTokensV1 |
const uint256 ripple::featureExpandedSignerList |
const uint256 ripple::fixNFTokenDirV1 |
const uint256 ripple::fixNFTokenNegOffer |
const uint256 ripple::featureNonFungibleTokensV1_1 |
const uint256 ripple::fixTrustLinesToSelf |
const uint256 ripple::fixRemoveNFTokenAutoTrustLine |
const uint256 ripple::featureImmediateOfferKilled |
const uint256 ripple::featureDisallowIncoming |
const uint256 ripple::featureXRPFees |
const uint256 ripple::fixUniversalNumber |
const uint256 ripple::fixNonFungibleTokensV1_2 |
const uint256 ripple::fixNFTokenRemint |
|
static |
Definition at line 94 of file AccountID.cpp.
const uint256 ripple::retiredMultiSign = retireFeature("MultiSign") |
Definition at line 478 of file Feature.cpp.
const uint256 ripple::retiredTrustSetAuth = retireFeature("TrustSetAuth") |
Definition at line 479 of file Feature.cpp.
const uint256 ripple::retiredFeeEscalation = retireFeature("FeeEscalation") |
Definition at line 480 of file Feature.cpp.
const uint256 ripple::retiredPayChan = retireFeature("PayChan") |
Definition at line 481 of file Feature.cpp.
const uint256 ripple::retiredCryptoConditions = retireFeature("CryptoConditions") |
Definition at line 482 of file Feature.cpp.
const uint256 ripple::retiredTickSize = retireFeature("TickSize") |
Definition at line 483 of file Feature.cpp.
const uint256 ripple::retiredFix1368 = retireFeature("fix1368") |
Definition at line 484 of file Feature.cpp.
const uint256 ripple::retiredEscrow = retireFeature("Escrow") |
Definition at line 485 of file Feature.cpp.
const uint256 ripple::retiredFix1373 = retireFeature("fix1373") |
Definition at line 486 of file Feature.cpp.
const uint256 ripple::retiredEnforceInvariants = retireFeature("EnforceInvariants") |
Definition at line 487 of file Feature.cpp.
const uint256 ripple::retiredSortedDirectories = retireFeature("SortedDirectories") |
Definition at line 488 of file Feature.cpp.
const uint256 ripple::retiredFix1201 = retireFeature("fix1201") |
Definition at line 489 of file Feature.cpp.
const uint256 ripple::retiredFix1512 = retireFeature("fix1512") |
Definition at line 490 of file Feature.cpp.
const uint256 ripple::retiredFix1523 = retireFeature("fix1523") |
Definition at line 491 of file Feature.cpp.
const uint256 ripple::retiredFix1528 = retireFeature("fix1528") |
Definition at line 492 of file Feature.cpp.
|
static |
Definition at line 507 of file Feature.cpp.
const Rate ripple::parityRate |
|
static |
Definition at line 39 of file SField.cpp.
const SField ripple::sfHash(access, STI_UINT256, 257, "hash") |
const SField ripple::sfIndex(access, STI_UINT256, 258, "index") |
|
static |
Definition at line 60 of file STAmount.cpp.
|
static |
Definition at line 61 of file STAmount.cpp.
|
static |
Definition at line 62 of file STAmount.cpp.
|
staticconstexpr |
Definition at line 33 of file tokens.cpp.
|
staticconstexpr |
Definition at line 36 of file tokens.cpp.
|
constexpr |
Protocol specific constants.
This information is, implicitly, part of the protocol.
Definition at line 40 of file Protocol.h.
|
constexpr |
Largest legal byte size of a transaction.
Definition at line 43 of file Protocol.h.
|
constexpr |
The maximum number of unfunded offers to delete at once.
Definition at line 46 of file Protocol.h.
|
constexpr |
The maximum number of expired offers to delete at once.
Definition at line 49 of file Protocol.h.
|
constexpr |
The maximum number of metadata entries allowed in one transaction.
Definition at line 52 of file Protocol.h.
|
constexpr |
The maximum number of entries per directory page.
Definition at line 55 of file Protocol.h.
|
constexpr |
The maximum number of pages allowed in a directory.
Definition at line 58 of file Protocol.h.
|
constexpr |
The maximum number of items in an NFT page.
Definition at line 61 of file Protocol.h.
|
constexpr |
The maximum number of owner directory entries for account to be deletable.
Definition at line 64 of file Protocol.h.
|
constexpr |
The maximum number of token offers that can be canceled at once.
Definition at line 67 of file Protocol.h.
|
constexpr |
The maximum number of offers in an offer directory for NFT to be burnable.
Definition at line 70 of file Protocol.h.
|
constexpr |
The maximum token transfer fee allowed.
Token transfer fees can range from 0% to 50% and are specified in tenths of a basis point; that is a value of 1000 represents a transfer fee of 1% and a value of 10000 represents a transfer fee of 10%.
Note that for extremely low transfer fees values, it is possible that the calculated fee will be 0.
Definition at line 81 of file Protocol.h.
|
constexpr |
The maximum length of a URI inside an NFT.
Definition at line 84 of file Protocol.h.
|
constexpr |
The maximum length of a domain.
Definition at line 87 of file Protocol.h.
const SField ripple::sfLedgerEntry |
const SField ripple::sfTransaction |
const SField ripple::sfValidation |
const SField ripple::sfMetadata |
const SF_UINT8 ripple::sfCloseResolution |
const SF_UINT8 ripple::sfMethod |
const SF_UINT8 ripple::sfTransactionResult |
const SF_UINT8 ripple::sfTickSize |
const SF_UINT8 ripple::sfUNLModifyDisabling |
const SF_UINT8 ripple::sfHookResult |
const SF_UINT16 ripple::sfLedgerEntryType |
const SF_UINT16 ripple::sfTransactionType |
const SF_UINT16 ripple::sfSignerWeight |
const SF_UINT16 ripple::sfTransferFee |
const SF_UINT16 ripple::sfVersion |
const SF_UINT16 ripple::sfHookStateChangeCount |
const SF_UINT16 ripple::sfHookEmitCount |
const SF_UINT16 ripple::sfHookExecutionIndex |
const SF_UINT16 ripple::sfHookApiVersion |
const SF_UINT32 ripple::sfNetworkID |
const SF_UINT32 ripple::sfFlags |
const SF_UINT32 ripple::sfSourceTag |
const SF_UINT32 ripple::sfSequence |
const SF_UINT32 ripple::sfPreviousTxnLgrSeq |
const SF_UINT32 ripple::sfLedgerSequence |
const SF_UINT32 ripple::sfCloseTime |
const SF_UINT32 ripple::sfParentCloseTime |
const SF_UINT32 ripple::sfSigningTime |
const SF_UINT32 ripple::sfExpiration |
const SF_UINT32 ripple::sfTransferRate |
const SF_UINT32 ripple::sfWalletSize |
const SF_UINT32 ripple::sfOwnerCount |
const SF_UINT32 ripple::sfDestinationTag |
const SF_UINT32 ripple::sfHighQualityIn |
const SF_UINT32 ripple::sfHighQualityOut |
const SF_UINT32 ripple::sfLowQualityIn |
const SF_UINT32 ripple::sfLowQualityOut |
const SF_UINT32 ripple::sfQualityIn |
const SF_UINT32 ripple::sfQualityOut |
const SF_UINT32 ripple::sfStampEscrow |
const SF_UINT32 ripple::sfBondAmount |
const SF_UINT32 ripple::sfLoadFee |
const SF_UINT32 ripple::sfOfferSequence |
const SF_UINT32 ripple::sfFirstLedgerSequence |
const SF_UINT32 ripple::sfLastLedgerSequence |
const SF_UINT32 ripple::sfTransactionIndex |
const SF_UINT32 ripple::sfOperationLimit |
const SF_UINT32 ripple::sfReferenceFeeUnits |
const SF_UINT32 ripple::sfReserveBase |
const SF_UINT32 ripple::sfReserveIncrement |
const SF_UINT32 ripple::sfSetFlag |
const SF_UINT32 ripple::sfClearFlag |
const SF_UINT32 ripple::sfSignerQuorum |
const SF_UINT32 ripple::sfCancelAfter |
const SF_UINT32 ripple::sfFinishAfter |
const SF_UINT32 ripple::sfSignerListID |
const SF_UINT32 ripple::sfSettleDelay |
const SF_UINT32 ripple::sfTicketCount |
const SF_UINT32 ripple::sfTicketSequence |
const SF_UINT32 ripple::sfNFTokenTaxon |
const SF_UINT32 ripple::sfMintedNFTokens |
const SF_UINT32 ripple::sfBurnedNFTokens |
const SF_UINT32 ripple::sfHookStateCount |
const SF_UINT32 ripple::sfEmitGeneration |
const SF_UINT32 ripple::sfFirstNFTokenSequence |
const SF_UINT64 ripple::sfIndexNext |
const SF_UINT64 ripple::sfIndexPrevious |
const SF_UINT64 ripple::sfBookNode |
const SF_UINT64 ripple::sfOwnerNode |
const SF_UINT64 ripple::sfBaseFee |
const SF_UINT64 ripple::sfExchangeRate |
const SF_UINT64 ripple::sfLowNode |
const SF_UINT64 ripple::sfHighNode |
const SF_UINT64 ripple::sfDestinationNode |
const SF_UINT64 ripple::sfCookie |
const SF_UINT64 ripple::sfServerVersion |
const SF_UINT64 ripple::sfNFTokenOfferNode |
const SF_UINT64 ripple::sfEmitBurden |
const SF_UINT64 ripple::sfHookOn |
const SF_UINT64 ripple::sfHookInstructionCount |
const SF_UINT64 ripple::sfHookReturnCode |
const SF_UINT64 ripple::sfReferenceCount |
const SF_UINT128 ripple::sfEmailHash |
const SF_UINT160 ripple::sfTakerPaysCurrency |
const SF_UINT160 ripple::sfTakerPaysIssuer |
const SF_UINT160 ripple::sfTakerGetsCurrency |
const SF_UINT160 ripple::sfTakerGetsIssuer |
const SF_UINT256 ripple::sfLedgerHash |
const SF_UINT256 ripple::sfParentHash |
const SF_UINT256 ripple::sfTransactionHash |
const SF_UINT256 ripple::sfAccountHash |
const SF_UINT256 ripple::sfPreviousTxnID |
const SF_UINT256 ripple::sfLedgerIndex |
const SF_UINT256 ripple::sfWalletLocator |
const SF_UINT256 ripple::sfRootIndex |
const SF_UINT256 ripple::sfAccountTxnID |
const SF_UINT256 ripple::sfNFTokenID |
const SF_UINT256 ripple::sfEmitParentTxnID |
const SF_UINT256 ripple::sfEmitNonce |
const SF_UINT256 ripple::sfEmitHookHash |
const SF_UINT256 ripple::sfBookDirectory |
const SF_UINT256 ripple::sfInvoiceID |
const SF_UINT256 ripple::sfNickname |
const SF_UINT256 ripple::sfAmendment |
const SF_UINT256 ripple::sfDigest |
const SF_UINT256 ripple::sfChannel |
const SF_UINT256 ripple::sfConsensusHash |
const SF_UINT256 ripple::sfCheckID |
const SF_UINT256 ripple::sfValidatedHash |
const SF_UINT256 ripple::sfPreviousPageMin |
const SF_UINT256 ripple::sfNextPageMin |
const SF_UINT256 ripple::sfNFTokenBuyOffer |
const SF_UINT256 ripple::sfNFTokenSellOffer |
const SF_UINT256 ripple::sfHookStateKey |
const SF_UINT256 ripple::sfHookHash |
const SF_UINT256 ripple::sfHookNamespace |
const SF_UINT256 ripple::sfHookSetTxnID |
const SF_AMOUNT ripple::sfAmount |
const SF_AMOUNT ripple::sfBalance |
const SF_AMOUNT ripple::sfLimitAmount |
const SF_AMOUNT ripple::sfTakerPays |
const SF_AMOUNT ripple::sfTakerGets |
const SF_AMOUNT ripple::sfLowLimit |
const SF_AMOUNT ripple::sfHighLimit |
const SF_AMOUNT ripple::sfFee |
const SF_AMOUNT ripple::sfSendMax |
const SF_AMOUNT ripple::sfDeliverMin |
const SF_AMOUNT ripple::sfMinimumOffer |
const SF_AMOUNT ripple::sfRippleEscrow |
const SF_AMOUNT ripple::sfDeliveredAmount |
const SF_AMOUNT ripple::sfNFTokenBrokerFee |
const SF_AMOUNT ripple::sfBaseFeeDrops |
const SF_AMOUNT ripple::sfReserveBaseDrops |
const SF_AMOUNT ripple::sfReserveIncrementDrops |
const SF_VL ripple::sfPublicKey |
const SF_VL ripple::sfMessageKey |
const SF_VL ripple::sfSigningPubKey |
const SF_VL ripple::sfTxnSignature |
const SF_VL ripple::sfURI |
const SF_VL ripple::sfSignature |
const SF_VL ripple::sfDomain |
const SF_VL ripple::sfFundCode |
const SF_VL ripple::sfRemoveCode |
const SF_VL ripple::sfExpireCode |
const SF_VL ripple::sfCreateCode |
const SF_VL ripple::sfMemoType |
const SF_VL ripple::sfMemoData |
const SF_VL ripple::sfMemoFormat |
const SF_VL ripple::sfFulfillment |
const SF_VL ripple::sfCondition |
const SF_VL ripple::sfMasterSignature |
const SF_VL ripple::sfUNLModifyValidator |
const SF_VL ripple::sfValidatorToDisable |
const SF_VL ripple::sfValidatorToReEnable |
const SF_VL ripple::sfHookStateData |
const SF_VL ripple::sfHookReturnString |
const SF_VL ripple::sfHookParameterName |
const SF_VL ripple::sfHookParameterValue |
const SF_ACCOUNT ripple::sfAccount |
const SF_ACCOUNT ripple::sfOwner |
const SF_ACCOUNT ripple::sfDestination |
const SF_ACCOUNT ripple::sfIssuer |
const SF_ACCOUNT ripple::sfAuthorize |
const SF_ACCOUNT ripple::sfUnauthorize |
const SF_ACCOUNT ripple::sfRegularKey |
const SF_ACCOUNT ripple::sfNFTokenMinter |
const SF_ACCOUNT ripple::sfEmitCallback |
const SF_ACCOUNT ripple::sfHookAccount |
const SField ripple::sfPaths |
const SF_VECTOR256 ripple::sfIndexes |
const SF_VECTOR256 ripple::sfHashes |
const SF_VECTOR256 ripple::sfAmendments |
const SF_VECTOR256 ripple::sfNFTokenOffers |
const SField ripple::sfTransactionMetaData |
const SField ripple::sfCreatedNode |
const SField ripple::sfDeletedNode |
const SField ripple::sfModifiedNode |
const SField ripple::sfPreviousFields |
const SField ripple::sfFinalFields |
const SField ripple::sfNewFields |
const SField ripple::sfTemplateEntry |
const SField ripple::sfMemo |
const SField ripple::sfSignerEntry |
const SField ripple::sfNFToken |
const SField ripple::sfEmitDetails |
const SField ripple::sfHook |
const SField ripple::sfSigner |
const SField ripple::sfMajority |
const SField ripple::sfDisabledValidator |
const SField ripple::sfEmittedTxn |
const SField ripple::sfHookExecution |
const SField ripple::sfHookDefinition |
const SField ripple::sfHookParameter |
const SField ripple::sfHookGrant |
const SField ripple::sfSigners |
const SField ripple::sfSignerEntries |
const SField ripple::sfTemplate |
const SField ripple::sfNecessary |
const SField ripple::sfSufficient |
const SField ripple::sfAffectedNodes |
const SField ripple::sfMemos |
const SField ripple::sfNFTokens |
const SField ripple::sfHooks |
const SField ripple::sfMajorities |
const SField ripple::sfDisabledValidators |
const SField ripple::sfHookExecutions |
const SField ripple::sfHookParameters |
const SField ripple::sfHookGrants |
|
constexpr |
Definition at line 39 of file STValidation.h.
|
constexpr |
Definition at line 42 of file STValidation.h.
|
constexpr |
Configure the native currency.
Number of drops in the genesis account.
Definition at line 43 of file SystemParameters.h.
|
staticconstexpr |
The XRP ledger network's earliest allowed sequence.
Definition at line 69 of file SystemParameters.h.
|
staticconstexpr |
The XRP Ledger mainnet's earliest ledger with a FeeSettings object.
Only used in asserts and tests.
Definition at line 73 of file SystemParameters.h.
|
staticconstexpr |
The number of ledgers in a shard.
Definition at line 76 of file SystemParameters.h.
|
constexpr |
The minimum amount of support an amendment should have.
Definition at line 83 of file SystemParameters.h.
|
constexpr |
Definition at line 85 of file SystemParameters.h.
|
constexpr |
The minimum amount of time an amendment must hold a majority.
Definition at line 88 of file SystemParameters.h.
|
constexpr |
Transaction flags.
These flags are specified in a transaction's 'Flags' field and modify the behavior of that transaction.
There are two types of flags:
(1) Universal flags: these are flags which apply to, and are interpreted the same way by, all transactions, except, perhaps, to special pseudo-transactions. (2) Tx-Specific flags: these are flags which are interpreted according to the type of the transaction being executed. That is, the same numerical flag value may have different effects, depending on the transaction being executed.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 583 of file ServerHandlerImp.cpp.
|
constexpr |
Definition at line 584 of file ServerHandlerImp.cpp.
|
constexpr |
Definition at line 585 of file ServerHandlerImp.cpp.
|
constexpr |
Definition at line 586 of file ServerHandlerImp.cpp.
|
static |
Definition at line 510 of file SHAMap.cpp.
|
staticconstexpr |
Definition at line 40 of file SHAMapTreeNode.h.
|
staticconstexpr |
Definition at line 41 of file SHAMapTreeNode.h.
|
staticconstexpr |
Definition at line 42 of file SHAMapTreeNode.h.
|
staticconstexpr |
Definition at line 43 of file SHAMapTreeNode.h.
|
staticconstexpr |
Definition at line 44 of file SHAMapTreeNode.h.