|
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 | |
| 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 | AccountIDCache |
| Caches the base58 representations of AccountIDs. More... | |
| 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 | CachedSLEs |
| Caches SLEs by their digest. More... | |
| 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 callbacks (of a single type signature) that they previously scheduled. More... | |
| class | Cluster |
| class | ClusterNode |
| 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 |
| struct | DatabasePairValid |
| 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... | |
| 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 | 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 | 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 |
| Maintains a cache of keys with no associated data. 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 | KnownFormatToGRPC_test |
| 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 | 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 | 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 | 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 | OrderBook |
| Describes a serialized ledger entry for an order book. More... | |
| class | OrderBookDB |
| class | Overlay |
| Manages the set of connected peers. More... | |
| class | OverlayImpl |
| class | OwnerInfo_test |
| struct | ParsedPort |
| struct | parsedURL |
| class | Pathfinder |
| Calculates payment paths. More... | |
| 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... | |
| 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 | RelationalDBInterface |
| class | RelationalDBInterfacePostgres |
| class | RelationalDBInterfacePostgresImp |
| class | RelationalDBInterfaceSqlite |
| class | RelationalDBInterfaceSqliteImp |
| 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 |
| class | RippleState |
| Wraps a trust line SLE for convenience. More... | |
| struct | RPCCallImp |
| class | RPCParser |
| class | RPCSub |
| Subscription object for JSON RPC. More... | |
| class | RPCSubImp |
| class | Rules |
| Rules controlling protocol behavior. More... | |
| class | Sandbox |
| Discardable, editable view to a ledger. More... | |
| struct | SavedState |
| 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 | 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 | 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... | |
| 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 | TxFlag |
| Transaction flags. 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 | Version_test |
| struct | VisitData |
| 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 | NodeCache = TaggedCache< SHAMapHash, Blob > |
| using | TxnsData = RelationalDBInterface::AccountTxs |
| using | TxnsDataBinary = RelationalDBInterface::MetaTxsList |
| using | LedgerHash = RelationalDBInterface::LedgerHash |
| using | LedgerSequence = RelationalDBInterface::LedgerSequence |
| using | LedgerShortcut = RelationalDBInterface::LedgerShortcut |
| using | AccountTxMarker = RelationalDBInterface::AccountTxMarker |
| using | AccountTxArgs = RelationalDBInterface::AccountTxArgs |
| using | AccountTxResult = RelationalDBInterface::AccountTxResult |
| using | AccountTransactionsData = RelationalDBInterface::AccountTransactionsData |
| using | InvariantChecks = std::tuple< TransactionFeeCheck, AccountRootsNotDeleted, LedgerEntryTypesMatch, XRPBalanceChecks, XRPNotCreated, NoXRPTrustLines, NoBadOffers, NoZeroEscrow, ValidNewAccountRoot > |
| 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 | FeeUnit = feeunit::TaggedFee< feeunit::feeunitTag, T > |
| using | FeeUnit32 = FeeUnit< std::uint32_t > |
| using | FeeUnit64 = FeeUnit< std::uint64_t > |
| template<class T > | |
| using | FeeLevel = feeunit::TaggedFee< feeunit::feelevelTag, T > |
| using | FeeLevel64 = FeeLevel< std::uint64_t > |
| using | FeeLevelDouble = FeeLevel< double > |
| 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_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, Job & > |
| 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 | TxSeq = std::uint32_t |
| 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_HASH128 = TypedField< STBitString< 128 > > |
| using | SF_HASH160 = TypedField< STBitString< 160 > > |
| using | SF_HASH256 = TypedField< STBitString< 256 > > |
| using | SF_ACCOUNT = TypedField< STAccount > |
| using | SF_AMOUNT = TypedField< STAmount > |
| using | SF_VL = TypedField< STBlob > |
| using | SF_VECTOR256 = TypedField< STVector256 > |
| using | STHash128 = STBitString< 128 > |
| using | STHash160 = STBitString< 160 > |
| using | STHash256 = 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 | SLE = STLedgerEntry |
| 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 = RelationalDBInterface::txnMetaLedgerType |
| using | LedgerSpecifier = RelationalDBInterface::LedgerSpecifier |
| using | ServerHandler = ServerHandlerImp |
| using | Endpoints = std::vector< boost::asio::ip::tcp::endpoint > |
| using | FullBelowCache = detail::BasicFullBelowCache< uint256 > |
| 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) |
| 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) |
| FeeVote::Setup | setup_FeeVote (Section const §ion) |
| Build FeeVote::Setup from a config section. More... | |
| std::unique_ptr< FeeVote > | make_FeeVote (FeeVote::Setup const &setup, beast::Journal journal) |
| Create an instance of the FeeVote logic. More... | |
| void | convertBlobsToTxResult (RelationalDBInterface::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 (FeeUnit64 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) |
| 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 const &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) |
| std::vector< RippleState::pointer > | getRippleStateItems (AccountID const &accountID, ReadView const &view) |
| std::unique_ptr< RelationalDBInterface > | getRelationalDBInterfacePostgres (Application &app, Config const &config, JobQueue &jobQueue) |
| std::unique_ptr< RelationalDBInterface > | getRelationalDBInterfaceSqlite (Application &app, Config const &config, JobQueue &jobQueue) |
| std::unique_ptr< DatabaseCon > | makeWalletDB (DatabaseCon::Setup const &setup) |
| makeWalletDB Opens wallet DB and returns it. More... | |
| std::unique_ptr< DatabaseCon > | makeTestWalletDB (DatabaseCon::Setup const &setup, std::string const &dbname) |
| makeTestWalletDB Opens test wallet DB with arbitrary name. More... | |
| void | getManifests (soci::session &session, std::string const &dbTable, ManifestCache &mCache, beast::Journal j) |
| getManifests Loads manifest from wallet DB 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 database. More... | |
| void | addValidatorManifest (soci::session &session, std::string const &serialized) |
| addValidatorManifest Saves manifest of validator to database. More... | |
| std::pair< PublicKey, SecretKey > | getNodeIdentity (soci::session &session) |
| getNodeIdentity Returns public and private keys of this node. More... | |
| std::unordered_set< PeerReservation, beast::uhash<>, KeyEqual > | getPeerReservationTable (soci::session &session, beast::Journal j) |
| getPeerReservationTable Returns peer reservation table. More... | |
| void | insertPeerReservation (soci::session &session, PublicKey const &nodeId, std::string const &description) |
| insertPeerReservation Adds entry to peer reservation table. More... | |
| void | deletePeerReservation (soci::session &session, PublicKey const &nodeId) |
| deletePeerReservation Deletes entry from peer reservation table. More... | |
| bool | createFeatureVotes (soci::session &session) |
| createFeatureVotes Creates FeatureVote table if it is not exists. 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 Read all amendments from FeatureVotes table. More... | |
| void | voteAmendment (soci::session &session, uint256 const &amendment, std::string const &name, AmendmentVote vote) |
| voteAmendment Set veto value for particular amendment. More... | |
| void | initStateDB (soci::session &session, BasicConfig const &config, std::string const &dbName) |
| initStateDB Opens DB session with State DB. More... | |
| LedgerIndex | getCanDelete (soci::session &session) |
| getCanDelete Returns ledger sequence which can be deleted. More... | |
| LedgerIndex | setCanDelete (soci::session &session, LedgerIndex canDelete) |
| setCanDelete Updates ledger sequence which can be deleted. More... | |
| SavedState | getSavedState (soci::session &session) |
| getSavedState Returns saved state. More... | |
| void | setSavedState (soci::session &session, SavedState const &state) |
| setSavedState Saves given state. More... | |
| void | setLastRotated (soci::session &session, LedgerIndex seq) |
| setLastRotated Updates last rotated ledger sequence. More... | |
| std::pair< std::unique_ptr< DatabaseCon >, std::optional< std::uint64_t > > | openDatabaseBodyDb (DatabaseCon::Setup const &setup, boost::filesystem::path const &path) |
| openDatabaseBodyDb Opens file download DB and returns its descriptor. 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 new fragment of downloaded file. More... | |
| void | databaseBodyFinish (soci::session &session, std::ofstream &fout) |
| databaseBodyFinish Finishes download process and writes file to disk. More... | |
| bool | doVacuumDB (DatabaseCon::Setup const &setup) |
| doVacuumDB Creates, initialises DB, and performs its cleanup. More... | |
| void | initPeerFinderDB (soci::session &session, BasicConfig const &config, beast::Journal j) |
| initPeerFinderDB Opens session with peer finder database. More... | |
| void | updatePeerFinderDB (soci::session &session, int currentSchemaVersion, beast::Journal j) |
| updatePeerFinderDB Update peer finder DB to new version. More... | |
| void | readPeerFinderDB (soci::session &session, std::function< void(std::string const &, int)> const &func) |
| readPeerFinderDB Read all entries from peer finder DB and call given callback for each entry. More... | |
| void | savePeerFinderDB (soci::session &session, std::vector< PeerFinder::Store::Entry > const &v) |
| savePeerFinderDB Save new entry to peer finder DB. More... | |
| static std::string | to_string (TableType type) |
| to_string Returns name of table by table ID. More... | |
| DatabasePairValid | makeLedgerDBs (Config const &config, DatabaseCon::Setup const &setup, DatabaseCon::CheckpointerSetup const &checkpointerSetup) |
| makeLedgerDBs Opens ledger and transactions databases. More... | |
| std::optional< LedgerIndex > | getMinLedgerSeq (soci::session &session, TableType type) |
| getMinLedgerSeq Returns minimum ledger sequence in given table. More... | |
| std::optional< LedgerIndex > | getMaxLedgerSeq (soci::session &session, TableType type) |
| getMaxLedgerSeq Returns maximum ledger sequence in given table. More... | |
| void | deleteByLedgerSeq (soci::session &session, TableType type, LedgerIndex ledgerSeq) |
| deleteByLedgerSeq Deletes all entries in given table for the ledger with given sequence. More... | |
| void | deleteBeforeLedgerSeq (soci::session &session, TableType type, LedgerIndex ledgerSeq) |
| deleteBeforeLedgerSeq Deletes all entries in given table for the ledgers with given sequence and all sequences below it. More... | |
| std::size_t | getRows (soci::session &session, TableType type) |
| getRows Returns number of rows in given table. More... | |
| RelationalDBInterface::CountMinMax | getRowsMinMax (soci::session &session, TableType type) |
| getRowsMinMax Returns minumum ledger sequence, maximum ledger sequence and total number of rows in given table. More... | |
| bool | saveValidatedLedger (DatabaseCon &ldgDB, DatabaseCon &txnDB, Application &app, std::shared_ptr< Ledger const > const &ledger, bool current) |
| saveValidatedLedger Saves ledger into database. More... | |
| static std::optional< LedgerInfo > | getLedgerInfo (soci::session &session, std::string const &sqlSuffix, beast::Journal j) |
| getLedgerInfo Returns info of ledger with special condition given as SQL query. More... | |
| std::optional< LedgerInfo > | getLedgerInfoByIndex (soci::session &session, LedgerIndex ledgerSeq, beast::Journal j) |
| getLedgerInfoByIndex Returns ledger by its sequence. More... | |
| std::optional< LedgerInfo > | getNewestLedgerInfo (soci::session &session, beast::Journal j) |
| getNewestLedgerInfo Returns info of newest saved ledger. More... | |
| std::optional< LedgerInfo > | getLimitedOldestLedgerInfo (soci::session &session, LedgerIndex ledgerFirstIndex, beast::Journal j) |
| getLimitedOldestLedgerInfo Returns info of oldest ledger from ledgers with sequences greather or equal to given. More... | |
| std::optional< LedgerInfo > | getLimitedNewestLedgerInfo (soci::session &session, LedgerIndex ledgerFirstIndex, beast::Journal j) |
| getLimitedNewestLedgerInfo Returns info of newest ledger from ledgers with sequences greather or equal to given. More... | |
| std::optional< LedgerInfo > | getLedgerInfoByHash (soci::session &session, uint256 const &ledgerHash, beast::Journal j) |
| getLedgerInfoByHash Returns info of ledger with given hash. More... | |
| uint256 | getHashByIndex (soci::session &session, LedgerIndex ledgerIndex) |
| getHashByIndex Returns hash of ledger with given sequence. More... | |
| std::optional< LedgerHashPair > | getHashesByIndex (soci::session &session, LedgerIndex ledgerIndex, beast::Journal j) |
| getHashesByIndex Returns hash of the ledger and hash of parent ledger for the ledger of given sequence. More... | |
| std::map< LedgerIndex, LedgerHashPair > | getHashesByIndex (soci::session &session, LedgerIndex minSeq, LedgerIndex maxSeq, beast::Journal j) |
| getHashesByIndex Returns hash of the ledger and hash of parent ledger for all ledgers with seqyences from given minimum limit to fiven maximum limit. More... | |
| std::pair< std::vector< std::shared_ptr< Transaction > >, int > | getTxHistory (soci::session &session, Application &app, LedgerIndex startIndex, int quantity, bool count) |
| getTxHistory Returns given number of most recent transactions starting from given number of entry. More... | |
| static std::string | transactionsSQL (Application &app, std::string selection, RelationalDBInterface::AccountTxOptions const &options, std::optional< int > const &limit_used, bool descending, bool binary, bool count, beast::Journal j) |
| transactionsSQL Returns SQL query to select oldest or newest transactions in decoded or binary form for given account which match given criteria starting from given offset. More... | |
| static std::pair< RelationalDBInterface::AccountTxs, int > | getAccountTxs (soci::session &session, Application &app, LedgerMaster &ledgerMaster, RelationalDBInterface::AccountTxOptions const &options, std::optional< int > const &limit_used, bool descending, beast::Journal j) |
| getAccountTxs Returns oldest or newest transactions for given account which match given criteria starting from given offset. More... | |
| std::pair< RelationalDBInterface::AccountTxs, int > | getOldestAccountTxs (soci::session &session, Application &app, LedgerMaster &ledgerMaster, RelationalDBInterface::AccountTxOptions const &options, std::optional< int > const &limit_used, beast::Journal j) |
| getOldestAccountTxs Returns oldest transactions for given account which match given criteria starting from given offset. More... | |
| std::pair< RelationalDBInterface::AccountTxs, int > | getNewestAccountTxs (soci::session &session, Application &app, LedgerMaster &ledgerMaster, RelationalDBInterface::AccountTxOptions const &options, std::optional< int > const &limit_used, beast::Journal j) |
| getNewestAccountTxs Returns newest transactions for given account which match given criteria starting from given offset. More... | |
| static std::pair< std::vector< RelationalDBInterface::txnMetaLedgerType >, int > | getAccountTxsB (soci::session &session, Application &app, RelationalDBInterface::AccountTxOptions const &options, std::optional< int > const &limit_used, bool descending, beast::Journal j) |
| getAccountTxsB Returns oldest or newset transactions in binary form for given account which match given criteria starting from given offset. More... | |
| std::pair< std::vector< RelationalDBInterface::txnMetaLedgerType >, int > | getOldestAccountTxsB (soci::session &session, Application &app, RelationalDBInterface::AccountTxOptions const &options, std::optional< int > const &limit_used, beast::Journal j) |
| getOldestAccountTxsB Returns oldest transactions in binary form for given account which match given criteria starting from given offset. More... | |
| std::pair< std::vector< RelationalDBInterface::txnMetaLedgerType >, int > | getNewestAccountTxsB (soci::session &session, Application &app, RelationalDBInterface::AccountTxOptions const &options, std::optional< int > const &limit_used, beast::Journal j) |
| getNewestAccountTxsB Returns newest transactions in binary form for given account which match given criteria starting from given offset. More... | |
| static std::pair< std::optional< RelationalDBInterface::AccountTxMarker >, int > | accountTxPage (soci::session &session, AccountIDCache const &idCache, std::function< void(std::uint32_t)> const &onUnsavedLedger, std::function< void(std::uint32_t, std::string const &, Blob &&, Blob &&)> const &onTransaction, RelationalDBInterface::AccountTxPageOptions const &options, int limit_used, std::uint32_t page_length, bool forward) |
| accountTxPage Searches oldest or newest transactions for given account which match given criteria starting from given marker and calls callback for each found transaction. More... | |
| std::pair< std::optional< RelationalDBInterface::AccountTxMarker >, int > | oldestAccountTxPage (soci::session &session, AccountIDCache const &idCache, std::function< void(std::uint32_t)> const &onUnsavedLedger, std::function< void(std::uint32_t, std::string const &, Blob &&, Blob &&)> const &onTransaction, RelationalDBInterface::AccountTxPageOptions const &options, int limit_used, std::uint32_t page_length) |
| oldestAccountTxPage Searches oldest transactions for given account which match given criteria starting from given marker and calls callback for each found transaction. More... | |
| std::pair< std::optional< RelationalDBInterface::AccountTxMarker >, int > | newestAccountTxPage (soci::session &session, AccountIDCache const &idCache, std::function< void(std::uint32_t)> const &onUnsavedLedger, std::function< void(std::uint32_t, std::string const &, Blob &&, Blob &&)> const &onTransaction, RelationalDBInterface::AccountTxPageOptions const &options, int limit_used, std::uint32_t page_length) |
| newestAccountTxPage Searches newest transactions for given account which match given criteria starting from given marker and calls callback for each found transaction. More... | |
| std::variant< RelationalDBInterface::AccountTx, TxSearched > | getTransaction (soci::session &session, Application &app, uint256 const &id, std::optional< ClosedInterval< uint32_t >> const &range, error_code_i &ec) |
| getTransaction Returns transaction with given hash. More... | |
| bool | dbHasSpace (soci::session &session, Config const &config, beast::Journal j) |
| dbHasSpace Checks if given database has available space. More... | |
| std::optional< LedgerIndex > | getMinLedgerSeq (std::shared_ptr< PgPool > const &pgPool, beast::Journal j) |
| getMinLedgerSeq Returns minimum ledger sequence from Postgres database More... | |
| std::optional< LedgerIndex > | getMaxLedgerSeq (std::shared_ptr< PgPool > const &pgPool) |
| getMaxLedgerSeq Returns maximum ledger sequence from Postgres database More... | |
| std::string | getCompleteLedgers (std::shared_ptr< PgPool > const &pgPool) |
| getCompleteLedgers Returns string which contains list of completed ledgers More... | |
| std::chrono::seconds | getValidatedLedgerAge (std::shared_ptr< PgPool > const &pgPool, beast::Journal j) |
| getValidatedLedgerAge Returns age of last validated ledger More... | |
| 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 Load 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::optional< LedgerInfo > | getNewestLedgerInfo (std::shared_ptr< PgPool > const &pgPool, Application &app) |
| getNewestLedgerInfo Load latest ledger info from Postgres More... | |
| std::optional< LedgerInfo > | getLedgerInfoByIndex (std::shared_ptr< PgPool > const &pgPool, std::uint32_t ledgerIndex, Application &app) |
| getLedgerInfoByIndex Load ledger info by index (AKA sequence) from Postgres More... | |
| std::optional< LedgerInfo > | getLedgerInfoByHash (std::shared_ptr< PgPool > const &pgPool, uint256 const &ledgerHash, Application &app) |
| getLedgerInfoByHash Load ledger info by hash from Postgres More... | |
| uint256 | getHashByIndex (std::shared_ptr< PgPool > const &pgPool, std::uint32_t ledgerIndex, Application &app) |
| getHashByIndex Given a ledger sequence, return the ledger hash More... | |
| bool | getHashesByIndex (std::shared_ptr< PgPool > const &pgPool, std::uint32_t ledgerIndex, uint256 &ledgerHash, uint256 &parentHash, Application &app) |
| getHashesByIndex Given a ledger sequence, return the ledger hash and the parent hash More... | |
| std::map< std::uint32_t, LedgerHashPair > | getHashesByIndex (std::shared_ptr< PgPool > const &pgPool, std::uint32_t minSeq, std::uint32_t maxSeq, Application &app) |
| getHashesByIndex Given a contiguous range of sequences, return a map of sequence -> (hash, parent hash) More... | |
| std::vector< uint256 > | getTxHashes (std::shared_ptr< PgPool > const &pgPool, LedgerIndex seq, Application &app) |
| getTxHashes Returns vector of tx hashes by given ledger sequence More... | |
| std::pair< AccountTxResult, RPC::Status > | getAccountTx (std::shared_ptr< PgPool > const &pgPool, AccountTxArgs const &args, Application &app, beast::Journal j) |
| getAccountTx Get last account transactions specifies by passed argumenrs structure. More... | |
| Transaction::Locator | locateTransaction (std::shared_ptr< PgPool > const &pgPool, uint256 const &id, Application &app) |
| locateTransaction Returns information used to locate a transaction. More... | |
| bool | writeLedgerAndTransactions (std::shared_ptr< PgPool > const &pgPool, LedgerInfo const &info, std::vector< AccountTransactionsData > const &accountTxData, beast::Journal &j) |
| writeLedgerAndTransactions Write new ledger and transaction data to Postgres. More... | |
| std::vector< std::shared_ptr< Transaction > > | getTxHistory (std::shared_ptr< PgPool > const &pgPool, LedgerIndex startIndex, Application &app, beast::Journal j) |
| getTxHistory Returns most recent 20 transactions starting from given number or entry. More... | |
| DatabasePair | makeMetaDBs (Config const &config, DatabaseCon::Setup const &setup, DatabaseCon::CheckpointerSetup const &checkpointerSetup) |
| makeMetaDBs Opens ledger and transaction 'meta' databases which map ledger hashes and transaction IDs to the index of the shard that holds the ledger or transaction. More... | |
| bool | saveLedgerMeta (std::shared_ptr< Ledger const > const &ledger, Application &app, soci::session &lgrMetaSession, soci::session &txnMetaSession, std::uint32_t shardIndex) |
| saveLedgerMeta Stores (transaction ID -> shard index) and (ledger hash -> shard index) mappings in the meta databases. More... | |
| std::optional< std::uint32_t > | getShardIndexforLedger (soci::session &session, LedgerHash const &hash) |
| getShardIndexforLedger Queries the ledger meta database to retrieve the index of the shard that contains this ledger. More... | |
| std::optional< std::uint32_t > | getShardIndexforTransaction (soci::session &session, TxID const &id) |
| getShardIndexforTransaction Queries the transaction meta database to retrieve the index of the shard that contains this transaction. More... | |
| DatabasePair | makeShardCompleteLedgerDBs (Config const &config, DatabaseCon::Setup const &setup) |
| makeShardCompleteLedgerDBs Opens shard databases for already verified shard and returns its descriptors. More... | |
| DatabasePair | makeShardIncompleteLedgerDBs (Config const &config, DatabaseCon::Setup const &setup, DatabaseCon::CheckpointerSetup const &checkpointerSetup) |
| makeShardIncompleteLedgerDBs Opens shard databases for not fully downloaded or verified shard and returns its 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 Save given ledger to shard databases. More... | |
| std::unique_ptr< DatabaseCon > | makeAcquireDB (DatabaseCon::Setup const &setup, DatabaseCon::CheckpointerSetup const &checkpointerSetup) |
| makeAcquireDB Opens shard acquire DB and returns its descriptor. More... | |
| void | insertAcquireDBIndex (soci::session &session, std::uint32_t index) |
| insertAcquireDBIndex Adds new shard index to shard acquire DB. More... | |
| std::pair< bool, std::optional< std::string > > | selectAcquireDBLedgerSeqs (soci::session &session, std::uint32_t index) |
| selectAcquireDBLedgerSeqs Returns set of acquired ledgers for given shard. More... | |
| std::pair< bool, AcquireShardSeqsHash > | selectAcquireDBLedgerSeqsHash (soci::session &session, std::uint32_t index) |
| selectAcquireDBLedgerSeqsHash Returns set of acquired ledgers and hash for given shard. 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 acquire DB. More... | |
| std::unique_ptr< DatabaseCon > | makeArchiveDB (boost::filesystem::path const &dir, std::string const &dbName) |
| makeArchiveDB Opens shard archive DB and returns its descriptor. More... | |
| void | readArchiveDB (DatabaseCon &db, std::function< void(std::string const &, int)> const &func) |
| readArchiveDB Read entries from shard archive database and calls fiven callback for each entry. More... | |
| void | insertArchiveDB (DatabaseCon &db, std::uint32_t shardIndex, std::string const &url) |
| insertArchiveDB Adds entry to shard archive database. More... | |
| void | deleteFromArchiveDB (DatabaseCon &db, std::uint32_t shardIndex) |
| deleteFromArchiveDB Deletes entry from shard archive DB. More... | |
| void | dropArchiveDB (DatabaseCon &db) |
| dropArchiveDB Removes table in shard archive DB. 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... | |
| FeeUnit64 | 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 FeeUnit64 | 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) |
| 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) |
| 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 > | |
| int | compare (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| bool | operator< (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| bool | operator<= (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| bool | operator> (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| bool | operator>= (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| bool | operator== (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| bool | operator!= (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| bool | operator== (base_uint< Bits, Tag > const &a, std::uint64_t b) |
| template<std::size_t Bits, class Tag > | |
| bool | operator!= (base_uint< Bits, Tag > const &a, std::uint64_t b) |
| template<std::size_t Bits, class Tag > | |
| const base_uint< Bits, Tag > | operator^ (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| const base_uint< Bits, Tag > | operator& (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| const base_uint< Bits, Tag > | operator| (base_uint< Bits, Tag > const &a, base_uint< Bits, Tag > const &b) |
| template<std::size_t Bits, class Tag > | |
| const 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) |
| 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... | |
| std::string | sqlBlobLiteral (Blob const &blob) |
| Format arbitrary binary data as an SQLite "blob literal". More... | |
| bool | parseUrl (parsedURL &pUrl, std::string const &strUrl) |
| constexpr std::size_t | calculatePercent (std::size_t count, std::size_t total) |
| Calculate one number divided by another number in percentage. More... | |
| 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 > | |
| 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) |
| 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) |
| void | addRaw (LedgerInfo const &info, Serializer &s, bool includeHash) |
| 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, AccountID const &id, std::function< void(std::shared_ptr< SLE 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 &)> f) |
| Iterate all items after an item in an owner 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) |
| 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, Json::Value jvResult) |
| 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) |
| 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) |
| int | compare (Book const &lhs, Book const &rhs) |
| Ordered comparison. More... | |
| 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, DefaultVote vote) |
| uint256 | retireFeature (std::string const &name) |
| bool | registrationIsDone () |
| Tell FeatureCollections when registration is complete. More... | |
| REGISTER_FEATURE (OwnerPaysFee, Supported::no, DefaultVote::no) | |
| REGISTER_FEATURE (Flow, Supported::yes, DefaultVote::yes) | |
| REGISTER_FEATURE (FlowCross, Supported::yes, DefaultVote::yes) | |
| REGISTER_FEATURE (CryptoConditionsSuite, Supported::yes, DefaultVote::no) | |
| REGISTER_FIX (fix1513, Supported::yes, DefaultVote::yes) | |
| REGISTER_FEATURE (DepositAuth, Supported::yes, DefaultVote::yes) | |
| REGISTER_FEATURE (Checks, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fix1571, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fix1543, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fix1623, Supported::yes, DefaultVote::yes) | |
| REGISTER_FEATURE (DepositPreauth, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fix1515, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fix1578, Supported::yes, DefaultVote::yes) | |
| REGISTER_FEATURE (MultiSignReserve, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fixTakerDryOfferRemoval, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fixMasterKeyAsRegularKey, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fixCheckThreading, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fixPayChanRecipientOwnerDir, Supported::yes, DefaultVote::yes) | |
| REGISTER_FEATURE (DeletableAccounts, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fixQualityUpperBound, Supported::yes, DefaultVote::yes) | |
| REGISTER_FEATURE (RequireFullyCanonicalSig, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fix1781, Supported::yes, DefaultVote::yes) | |
| REGISTER_FEATURE (HardenedValidations, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fixAmendmentMajorityCalc, Supported::yes, DefaultVote::yes) | |
| REGISTER_FEATURE (NegativeUNL, Supported::yes, DefaultVote::no) | |
| REGISTER_FEATURE (TicketBatch, Supported::yes, DefaultVote::yes) | |
| REGISTER_FEATURE (FlowSortStrands, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fixSTAmountCanonicalize, Supported::yes, DefaultVote::yes) | |
| REGISTER_FIX (fixRmSmallIncreasedQOffers, Supported::yes, DefaultVote::yes) | |
| REGISTER_FEATURE (CheckCashMakesTrustLine, Supported::yes, DefaultVote::no) | |
| 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) |
| int | compare (Issue const &lhs, Issue const &rhs) |
| Ordered comparison. More... | |
| 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) |
| 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 (sfLedgerEntryType, "LedgerEntryType", UINT16, 1, SField::sMD_Never) | |
| CONSTRUCT_TYPED_SFIELD (sfTransactionType, "TransactionType", UINT16, 2) | |
| CONSTRUCT_TYPED_SFIELD (sfSignerWeight, "SignerWeight", UINT16, 3) | |
| CONSTRUCT_TYPED_SFIELD (sfVersion, "Version", UINT16, 16) | |
| 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 (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 (sfEmailHash, "EmailHash", HASH128, 1) | |
| CONSTRUCT_TYPED_SFIELD (sfTakerPaysCurrency, "TakerPaysCurrency", HASH160, 1) | |
| CONSTRUCT_TYPED_SFIELD (sfTakerPaysIssuer, "TakerPaysIssuer", HASH160, 2) | |
| CONSTRUCT_TYPED_SFIELD (sfTakerGetsCurrency, "TakerGetsCurrency", HASH160, 3) | |
| CONSTRUCT_TYPED_SFIELD (sfTakerGetsIssuer, "TakerGetsIssuer", HASH160, 4) | |
| CONSTRUCT_TYPED_SFIELD (sfLedgerHash, "LedgerHash", HASH256, 1) | |
| CONSTRUCT_TYPED_SFIELD (sfParentHash, "ParentHash", HASH256, 2) | |
| CONSTRUCT_TYPED_SFIELD (sfTransactionHash, "TransactionHash", HASH256, 3) | |
| CONSTRUCT_TYPED_SFIELD (sfAccountHash, "AccountHash", HASH256, 4) | |
| CONSTRUCT_TYPED_SFIELD (sfPreviousTxnID, "PreviousTxnID", HASH256, 5, SField::sMD_DeleteFinal) | |
| CONSTRUCT_TYPED_SFIELD (sfLedgerIndex, "LedgerIndex", HASH256, 6) | |
| CONSTRUCT_TYPED_SFIELD (sfWalletLocator, "WalletLocator", HASH256, 7) | |
| CONSTRUCT_TYPED_SFIELD (sfRootIndex, "RootIndex", HASH256, 8, SField::sMD_Always) | |
| CONSTRUCT_TYPED_SFIELD (sfAccountTxnID, "AccountTxnID", HASH256, 9) | |
| CONSTRUCT_TYPED_SFIELD (sfBookDirectory, "BookDirectory", HASH256, 16) | |
| CONSTRUCT_TYPED_SFIELD (sfInvoiceID, "InvoiceID", HASH256, 17) | |
| CONSTRUCT_TYPED_SFIELD (sfNickname, "Nickname", HASH256, 18) | |
| CONSTRUCT_TYPED_SFIELD (sfAmendment, "Amendment", HASH256, 19) | |
| CONSTRUCT_TYPED_SFIELD (sfDigest, "Digest", HASH256, 21) | |
| CONSTRUCT_TYPED_SFIELD (sfChannel, "Channel", HASH256, 22) | |
| CONSTRUCT_TYPED_SFIELD (sfConsensusHash, "ConsensusHash", HASH256, 23) | |
| CONSTRUCT_TYPED_SFIELD (sfCheckID, "CheckID", HASH256, 24) | |
| CONSTRUCT_TYPED_SFIELD (sfValidatedHash, "ValidatedHash", HASH256, 25) | |
| 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 (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 (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 (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 (sfIndexes, "Indexes", VECTOR256, 1, SField::sMD_Never) | |
| CONSTRUCT_TYPED_SFIELD (sfHashes, "Hashes", VECTOR256, 2) | |
| CONSTRUCT_TYPED_SFIELD (sfAmendments, "Amendments", VECTOR256, 3) | |
| 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 (sfSigner, "Signer", OBJECT, 16) | |
| CONSTRUCT_UNTYPED_SFIELD (sfMajority, "Majority", OBJECT, 18) | |
| CONSTRUCT_UNTYPED_SFIELD (sfDisabledValidator, "DisabledValidator", OBJECT, 19) | |
| 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 (sfMajorities, "Majorities", ARRAY, 16) | |
| CONSTRUCT_UNTYPED_SFIELD (sfDisabledValidators, "DisabledValidators", ARRAY, 17) | |
| 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... | |
| 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... | |
| 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::GetAccountInfoResponse, grpc::Status > | doAccountInfoGrpc (RPC::GRPCContext< org::xrpl::rpc::v1::GetAccountInfoRequest > &context) |
| std::pair< org::xrpl::rpc::v1::GetFeeResponse, grpc::Status > | doFeeGrpc (RPC::GRPCContext< org::xrpl::rpc::v1::GetFeeRequest > &context) |
| std::pair< org::xrpl::rpc::v1::SubmitTransactionResponse, grpc::Status > | doSubmitGrpc (RPC::GRPCContext< org::xrpl::rpc::v1::SubmitTransactionRequest > &context) |
| std::pair< org::xrpl::rpc::v1::GetTransactionResponse, grpc::Status > | doTxGrpc (RPC::GRPCContext< org::xrpl::rpc::v1::GetTransactionRequest > &context) |
| std::pair< org::xrpl::rpc::v1::GetAccountTransactionHistoryResponse, grpc::Status > | doAccountTxGrpc (RPC::GRPCContext< org::xrpl::rpc::v1::GetAccountTransactionHistoryRequest > &context) |
| 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, RippleState const &line) |
| Json::Value | doAccountLines (RPC::JsonContext &context) |
| Json::Value | doAccountObjects (RPC::JsonContext &context) |
| General RPC command that can retrieve objects in the account root. More... | |
| void | appendOfferJson (std::shared_ptr< SLE const > const &offer, Json::Value &offers) |
| Json::Value | doAccountOffers (RPC::JsonContext &context) |
| std::variant< std::optional< LedgerSpecifier >, grpc::Status > | parseLedgerArgs (org::xrpl::rpc::v1::GetAccountTransactionHistoryRequest const ¶ms) |
| 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) |
| std::pair< org::xrpl::rpc::v1::GetAccountTransactionHistoryResponse, grpc::Status > | populateProtoResponse (std::pair< AccountTxResult, RPC::Status > const &res, AccountTxArgs const &args, RPC::GRPCContext< org::xrpl::rpc::v1::GetAccountTransactionHistoryRequest > const &context) |
| 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 | doAccountTxOld (RPC::JsonContext &context) |
| Json::Value | doBlackList (RPC::JsonContext &context) |
| Json::Value | doBookOffers (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 | 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 | 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) |
| std::pair< org::xrpl::rpc::v1::GetTransactionResponse, grpc::Status > | populateProtoResponse (std::pair< TxResult, RPC::Status > const &res, TxArgs const &args, RPC::GRPCContext< org::xrpl::rpc::v1::GetTransactionRequest > const &context) |
| 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< beast::IP::Address > const &adminIp) |
| 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) |
| 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) |
| 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::optional< std::vector< beast::IP::Address >> &ips, bool allowAllIps, std::vector< beast::IP::Address > const &admin_ip) |
| 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, std::shared_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) |
| std::string | to_string (SHAMapType t) |
| std::string | to_string (SHAMapNodeID const &node) |
| std::ostream & | operator<< (std::ostream &out, SHAMapNodeID const &node) |
| bool | operator!= (SHAMapHash const &x, SHAMapHash const &y) |
| 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 (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 (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 (InnerObjectFormatsParsedJSON, ripple_app, ripple) | |
| BEAST_DEFINE_TESTSUITE (Issue, protocol, ripple) | |
| BEAST_DEFINE_TESTSUITE (KnownFormatToGRPC, protocol, 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.
| using ripple::NodeCache = typedef TaggedCache<SHAMapHash, Blob> |
Definition at line 96 of file Application.h.
Definition at line 27 of file RelationalDBInterface_postgres.cpp.
Definition at line 28 of file RelationalDBInterface_postgres.cpp.
| typedef uint256 ripple::LedgerHash |
Definition at line 30 of file RelationalDBInterface_postgres.cpp.
| using ripple::LedgerSequence = typedef RelationalDBInterface::LedgerSequence |
Definition at line 31 of file RelationalDBInterface_postgres.cpp.
Definition at line 32 of file RelationalDBInterface_postgres.cpp.
| using ripple::AccountTxMarker = typedef RelationalDBInterface::AccountTxMarker |
Definition at line 35 of file RelationalDBInterface_postgres.h.
Definition at line 36 of file RelationalDBInterface_postgres.h.
Definition at line 37 of file RelationalDBInterface_postgres.h.
Definition at line 38 of file RelationalDBInterface_postgres.h.
Definition at line 332 of file InvariantCheck.h.
| using ripple::Offer = typedef TOffer<> |
| using ripple::uint128 = typedef base_uint<128> |
Definition at line 527 of file base_uint.h.
| using ripple::uint160 = typedef base_uint<160> |
Definition at line 528 of file base_uint.h.
| using ripple::uint256 = typedef base_uint<256> |
Definition at line 529 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::FeeUnit = typedef feeunit::TaggedFee<feeunit::feeunitTag, T> |
Definition at line 458 of file FeeUnits.h.
| using ripple::FeeUnit32 = typedef FeeUnit<std::uint32_t> |
Definition at line 459 of file FeeUnits.h.
| using ripple::FeeUnit64 = typedef FeeUnit<std::uint64_t> |
Definition at line 460 of file FeeUnits.h.
| using ripple::FeeLevel = typedef feeunit::TaggedFee<feeunit::feelevelTag, T> |
Definition at line 463 of file FeeUnits.h.
| using ripple::FeeLevel64 = typedef FeeLevel<std::uint64_t> |
Definition at line 464 of file FeeUnits.h.
| using ripple::FeeLevelDouble = typedef FeeLevel<double> |
Definition at line 465 of file FeeUnits.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 52 of file UnorderedContainers.h.
| using ripple::hash_multimap = typedef std::unordered_multimap<Key, Value, Hash, Pred, Allocator> |
Definition at line 61 of file UnorderedContainers.h.
| using ripple::hash_set = typedef std::unordered_set<Value, Hash, Pred, Allocator> |
Definition at line 68 of file UnorderedContainers.h.
| using ripple::hash_multiset = typedef std::unordered_multiset<Value, Hash, Pred, Allocator> |
Definition at line 75 of file UnorderedContainers.h.
| using ripple::strong_hash = typedef beast::xxhasher |
Definition at line 79 of file UnorderedContainers.h.
| using ripple::hardened_hash_map = typedef std::unordered_map<Key, Value, Hash, Pred, Allocator> |
Definition at line 87 of file UnorderedContainers.h.
| using ripple::hardened_hash_multimap = typedef std::unordered_multimap<Key, Value, Hash, Pred, Allocator> |
Definition at line 96 of file UnorderedContainers.h.
| using ripple::hardened_hash_set = typedef std::unordered_set<Value, Hash, Pred, Allocator> |
Definition at line 103 of file UnorderedContainers.h.
| using ripple::hardened_hash_multiset = typedef std::unordered_multiset<Value, Hash, Pred, Allocator> |
Definition at line 111 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, Job&> |
| using ripple::const_iterator = typedef Dir::const_iterator |
Definition at line 25 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 57 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 63 of file Protocol.h.
| using ripple::TxSeq = typedef std::uint32_t |
Definition at line 65 of file Protocol.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_HASH128 = typedef TypedField<STBitString<128> > |
| using ripple::SF_HASH160 = typedef TypedField<STBitString<160> > |
| using ripple::SF_HASH256 = typedef TypedField<STBitString<256> > |
| 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::STHash128 = typedef STBitString<128> |
Definition at line 117 of file STBitString.h.
| using ripple::STHash160 = typedef STBitString<160> |
Definition at line 118 of file STBitString.h.
| using ripple::STHash256 = typedef STBitString<256> |
Definition at line 119 of file STBitString.h.
| using ripple::STUInt8 = typedef STInteger<unsigned char> |
Definition at line 112 of file STInteger.h.
| using ripple::STUInt16 = typedef STInteger<std::uint16_t> |
Definition at line 113 of file STInteger.h.
| using ripple::STUInt32 = typedef STInteger<std::uint32_t> |
Definition at line 114 of file STInteger.h.
| using ripple::STUInt64 = typedef STInteger<std::uint64_t> |
Definition at line 115 of file STInteger.h.
| using ripple::SLE = typedef STLedgerEntry |
Definition at line 120 of file STLedgerEntry.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 RelationalDBInterface::txnMetaLedgerType |
Definition at line 47 of file AccountTx.cpp.
| using ripple::LedgerSpecifier = typedef RelationalDBInterface::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<uint256> |
Definition at line 147 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 42 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 183 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 |
| Enumerator | |
|---|---|
| up | |
| down | |
Definition at line 137 of file RelationalDBInterface_global.h.
|
strong |
| Enumerator | |
|---|---|
| Ledgers | |
| Transactions | |
| AccountTransactions | |
Definition at line 34 of file RelationalDBInterface_nodes.h.
|
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 166 of file Validations.h.
|
strong |
| enum ripple::JobType |
| enum ripple::ApplyFlags : std::uint32_t |
| Enumerator | |
|---|---|
| tapNONE | |
| tapFAIL_HARD | |
| tapRETRY | |
| tapPREFER_QUEUE | |
| tapUNLIMITED | |
Definition at line 29 of file ApplyView.h.
The types of node objects.
| Enumerator | |
|---|---|
| hotUNKNOWN | |
| hotLEDGER | |
| hotACCOUNT_NODE | |
| hotTRANSACTION_NODE | |
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 150 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 209 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 127 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 72 of file RCLCxPeerPos.cpp.
| RCLValidatedLedger::Seq ripple::mismatch | ( | RCLValidatedLedger const & | a, |
| RCLValidatedLedger const & | b | ||
| ) |
Definition at line 97 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 151 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 175 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 214 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 95 of file BuildLedger.cpp.
|
static |
Definition at line 231 of file InboundLedger.cpp.
| LedgerInfo ripple::deserializeHeader | ( | Slice | data, |
| bool | hasHash | ||
| ) |
Deserialize a ledger header from a byte array.
Definition at line 269 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 293 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 419 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 272 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 158 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 2150 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 281 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 291 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 208 of file OpenLedger.cpp.
| std::string ripple::debugTostr | ( | OrderedTxs const & | set | ) |
Definition at line 216 of file OpenLedger.cpp.
| std::string ripple::debugTostr | ( | SHAMap const & | set | ) |
Definition at line 225 of file OpenLedger.cpp.
| std::string ripple::debugTostr | ( | std::shared_ptr< ReadView const > const & | view | ) |
Definition at line 245 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 382 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 389 of file Ledger.cpp.
| bool ripple::isFlagLedger | ( | LedgerIndex | seq | ) |
Returns true if the given ledgerIndex is a flag ledgerIndex.
Definition at line 910 of file Ledger.cpp.
|
static |
Definition at line 916 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 944 of file Ledger.cpp.
| std::shared_ptr< Ledger > ripple::loadLedgerHelper | ( | LedgerInfo const & | info, |
| Application & | app, | ||
| bool | acquire | ||
| ) |
Definition at line 1017 of file Ledger.cpp.
|
static |
Definition at line 1035 of file Ledger.cpp.
| std::tuple< std::shared_ptr< Ledger >, std::uint32_t, uint256 > ripple::getLatestLedger | ( | Application & | app | ) |
Definition at line 1051 of file Ledger.cpp.
| std::shared_ptr< Ledger > ripple::loadByIndex | ( | std::uint32_t | ledgerIndex, |
| Application & | app, | ||
| bool | acquire | ||
| ) |
Definition at line 1061 of file Ledger.cpp.
| std::shared_ptr< Ledger > ripple::loadByHash | ( | uint256 const & | ledgerHash, |
| Application & | app, | ||
| bool | acquire | ||
| ) |
Definition at line 1074 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 1089 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 1158 of file Ledger.cpp.
|
static |
Definition at line 150 of file LedgerHistory.cpp.
|
static |
Definition at line 172 of file LedgerHistory.cpp.
|
static |
Definition at line 310 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 2138 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 | ) |
The cryptographic credentials identifying this server instance.
Definition at line 32 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 789 of file AmendmentTable.cpp.
| bool ripple::operator< | ( | CanonicalTXSet::Key const & | lhs, |
| CanonicalTXSet::Key const & | rhs | ||
| ) |
Definition at line 25 of file CanonicalTXSet.cpp.
| FeeVote::Setup ripple::setup_FeeVote | ( | Section const & | section | ) |
Build FeeVote::Setup from a config section.
Definition at line 259 of file FeeVoteImpl.cpp.
| std::unique_ptr< FeeVote > ripple::make_FeeVote | ( | FeeVote::Setup 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 279 of file FeeVoteImpl.cpp.
| void ripple::convertBlobsToTxResult | ( | RelationalDBInterface::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 | ( | FeeUnit64 | 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 38 of file app/misc/impl/Manifest.cpp.
| std::optional< Manifest > ripple::deserializeManifest | ( | Slice | s | ) |
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 50 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 156 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 170 of file app/misc/impl/Manifest.cpp.
| std::optional< ValidatorToken > ripple::loadValidatorToken | ( | std::vector< std::string > const & | blob | ) |
Definition at line 239 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 | ) |
Definition at line 142 of file Manifest.h.
| std::optional<Manifest> ripple::deserializeManifest | ( | std::vector< T > const & | v | ) |
Definition at line 152 of file Manifest.h.
Definition at line 159 of file Manifest.h.
Definition at line 169 of file Manifest.h.
| std::string ripple::to_string | ( | ManifestDisposition | m | ) |
Definition at line 201 of file Manifest.h.
|
static |
Definition at line 2000 of file NetworkOPs.cpp.
|
static |
Definition at line 2746 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 4431 of file NetworkOPs.cpp.
| std::unique_ptr< SHAMapStore > ripple::make_SHAMapStore | ( | Application & | app, |
| NodeStore::Scheduler & | scheduler, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 738 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 64 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 446 of file Pathfinder.cpp.
Definition at line 465 of file Pathfinder.cpp.
Definition at line 880 of file Pathfinder.cpp.
| std::vector< RippleState::pointer > ripple::getRippleStateItems | ( | AccountID const & | accountID, |
| ReadView const & | view | ||
| ) |
Definition at line 70 of file RippleState.cpp.
| std::unique_ptr< RelationalDBInterface > ripple::getRelationalDBInterfacePostgres | ( | Application & | app, |
| Config const & | config, | ||
| JobQueue & | jobQueue | ||
| ) |
Definition at line 270 of file RelationalDBInterfacePostgres.cpp.
| std::unique_ptr< RelationalDBInterface > ripple::getRelationalDBInterfaceSqlite | ( | Application & | app, |
| Config const & | config, | ||
| JobQueue & | jobQueue | ||
| ) |
Definition at line 1731 of file RelationalDBInterfaceSqlite.cpp.
| std::unique_ptr< DatabaseCon > ripple::makeWalletDB | ( | DatabaseCon::Setup const & | setup | ) |
makeWalletDB Opens wallet DB and returns it.
| setup | Path to database and other opening parameters. |
Definition at line 40 of file RelationalDBInterface_global.cpp.
| std::unique_ptr< DatabaseCon > ripple::makeTestWalletDB | ( | DatabaseCon::Setup const & | setup, |
| std::string const & | dbname | ||
| ) |
makeTestWalletDB Opens test wallet DB with arbitrary name.
| setup | Path to database and other opening parameters. |
| dbname | Name of database. |
Definition at line 48 of file RelationalDBInterface_global.cpp.
| void ripple::getManifests | ( | soci::session & | session, |
| std::string const & | dbTable, | ||
| ManifestCache & | mCache, | ||
| beast::Journal | j | ||
| ) |
getManifests Loads manifest from wallet DB and stores it in the cache.
| session | Session with database. |
| dbTable | Name of table in the database to extract manifest from. |
| mCache | Cache to store manifest. |
| j | Journal. |
Definition at line 56 of file RelationalDBInterface_global.cpp.
|
static |
Definition at line 89 of file RelationalDBInterface_global.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 database.
| session | Session with database. |
| dbTable | Name of database table to save manifest into. |
| isTrusted | Callback returned true if key is trusted. |
| map | Map to save which points public keys to manifests. |
| j | Journal. |
Definition at line 104 of file RelationalDBInterface_global.cpp.
| void ripple::addValidatorManifest | ( | soci::session & | session, |
| std::string const & | serialized | ||
| ) |
addValidatorManifest Saves manifest of validator to database.
Definition at line 129 of file RelationalDBInterface_global.cpp.
getNodeIdentity Returns public and private keys of this node.
| session | Session with database. |
Definition at line 137 of file RelationalDBInterface_global.cpp.
| std::unordered_set< PeerReservation, beast::uhash<>, KeyEqual > ripple::getPeerReservationTable | ( | soci::session & | session, |
| beast::Journal | j | ||
| ) |
getPeerReservationTable Returns peer reservation table.
| session | Session with database. |
| j | Journal. |
Definition at line 174 of file RelationalDBInterface_global.cpp.
| void ripple::insertPeerReservation | ( | soci::session & | session, |
| PublicKey const & | nodeId, | ||
| std::string const & | description | ||
| ) |
insertPeerReservation Adds entry to peer reservation table.
| session | Session with database. |
| nodeId | public key of node. |
| description | Description of node. |
Definition at line 211 of file RelationalDBInterface_global.cpp.
| void ripple::deletePeerReservation | ( | soci::session & | session, |
| PublicKey const & | nodeId | ||
| ) |
deletePeerReservation Deletes entry from peer reservation table.
| session | Session with database. |
| nodeId | Public key of node to remove. |
Definition at line 225 of file RelationalDBInterface_global.cpp.
| bool ripple::createFeatureVotes | ( | soci::session & | session | ) |
createFeatureVotes Creates FeatureVote table if it is not exists.
| session | Session with walletDB database. |
Definition at line 232 of file RelationalDBInterface_global.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 Read all amendments from FeatureVotes table.
| session | Session with walletDB database. |
| callback | Callback called for each amendment passing its hash, name and the flag if it should be vetoed as callback parameters |
Definition at line 256 of file RelationalDBInterface_global.cpp.
| void ripple::voteAmendment | ( | soci::session & | session, |
| uint256 const & | amendment, | ||
| std::string const & | name, | ||
| AmendmentVote | vote | ||
| ) |
voteAmendment Set veto value for particular amendment.
| session | Session with walletDB database. |
| amendment | Hash of amendment. |
| name | Name of amendment. |
| vote | Whether to vote in favor of this amendment. |
Definition at line 289 of file RelationalDBInterface_global.cpp.
| void ripple::initStateDB | ( | soci::session & | session, |
| BasicConfig const & | config, | ||
| std::string const & | dbName | ||
| ) |
initStateDB Opens DB session with State DB.
| session | Structure to open session in. |
| config | Path to database and other opening parameters. |
| dbName | Name of database. |
Definition at line 309 of file RelationalDBInterface_global.cpp.
| LedgerIndex ripple::getCanDelete | ( | soci::session & | session | ) |
getCanDelete Returns ledger sequence which can be deleted.
| session | Session with database. |
Definition at line 365 of file RelationalDBInterface_global.cpp.
| LedgerIndex ripple::setCanDelete | ( | soci::session & | session, |
| LedgerIndex | canDelete | ||
| ) |
setCanDelete Updates ledger sequence which can be deleted.
Definition at line 375 of file RelationalDBInterface_global.cpp.
| SavedState ripple::getSavedState | ( | soci::session & | session | ) |
getSavedState Returns saved state.
| session | Session with database. |
Definition at line 383 of file RelationalDBInterface_global.cpp.
| void ripple::setSavedState | ( | soci::session & | session, |
| SavedState const & | state | ||
| ) |
setSavedState Saves given state.
| session | Session with database. |
| state | The SavedState structure which contains names of writable DB, archive DB and last rotated ledger sequence. |
Definition at line 395 of file RelationalDBInterface_global.cpp.
| void ripple::setLastRotated | ( | soci::session & | session, |
| LedgerIndex | seq | ||
| ) |
setLastRotated Updates last rotated ledger sequence.
| session | Session with database. |
| seq | New value of last rotated ledger sequence. |
Definition at line 407 of file RelationalDBInterface_global.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 file download DB and returns its descriptor.
Start new download process or continue existing one.
| setup | Path to database and other opening parameters. |
| path | Path of new file to download. |
Definition at line 417 of file RelationalDBInterface_global.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 new fragment of downloaded file.
| session | Session with database. |
| data | Downloaded piece to file data tp save. |
| path | Path of downloading file. |
| fileSize | Size of downloaded piece of file. |
| part | Sequence number of downloaded file part. |
| maxRowSizePad | Maximum size of file part to save. |
Definition at line 456 of file RelationalDBInterface_global.cpp.
| void ripple::databaseBodyFinish | ( | soci::session & | session, |
| std::ofstream & | fout | ||
| ) |
databaseBodyFinish Finishes download process and writes file to disk.
| session | Session with database. |
| fout | Opened file to write downloaded data from database. |
Definition at line 533 of file RelationalDBInterface_global.cpp.
| bool ripple::doVacuumDB | ( | DatabaseCon::Setup const & | setup | ) |
doVacuumDB Creates, initialises DB, and performs its cleanup.
| setup | Path to database and other opening parameters. |
Definition at line 546 of file RelationalDBInterface_global.cpp.
| void ripple::initPeerFinderDB | ( | soci::session & | session, |
| BasicConfig const & | config, | ||
| beast::Journal | j | ||
| ) |
initPeerFinderDB Opens session with peer finder database.
| session | Structure to open session in. |
| config | Path to database and other opening parameters. |
| j | Journal. |
Definition at line 590 of file RelationalDBInterface_global.cpp.
| void ripple::updatePeerFinderDB | ( | soci::session & | session, |
| int | currentSchemaVersion, | ||
| beast::Journal | j | ||
| ) |
updatePeerFinderDB Update peer finder DB to new version.
| session | Session with database. |
| currentSchemaVersion | New version of database. |
| j | Journal. |
Definition at line 626 of file RelationalDBInterface_global.cpp.
| void ripple::readPeerFinderDB | ( | soci::session & | session, |
| std::function< void(std::string const &, int)> const & | func | ||
| ) |
readPeerFinderDB Read all entries from peer finder DB and call given callback for each entry.
| session | Session with database. |
| func | Callback to call for each entry. |
Definition at line 782 of file RelationalDBInterface_global.cpp.
| void ripple::savePeerFinderDB | ( | soci::session & | session, |
| std::vector< PeerFinder::Store::Entry > const & | v | ||
| ) |
savePeerFinderDB Save new entry to peer finder DB.
| session | Session with database. |
| v | Entry to save which contains information about new peer. |
Definition at line 804 of file RelationalDBInterface_global.cpp.
|
static |
to_string Returns name of table by table ID.
| type | Table ID. |
Definition at line 45 of file RelationalDBInterface_nodes.cpp.
| DatabasePairValid ripple::makeLedgerDBs | ( | Config const & | config, |
| DatabaseCon::Setup const & | setup, | ||
| DatabaseCon::CheckpointerSetup const & | checkpointerSetup | ||
| ) |
makeLedgerDBs Opens ledger and transactions databases.
| config | Config object. |
| setup | Path to database and opening parameters. |
| checkpointerSetup | Database checkpointer setup. |
Definition at line 65 of file RelationalDBInterface_nodes.cpp.
| std::optional< LedgerIndex > ripple::getMinLedgerSeq | ( | soci::session & | session, |
| TableType | type | ||
| ) |
getMinLedgerSeq Returns minimum ledger sequence in given table.
| session | Session with database. |
| type | Table ID for which the result is returned. |
Definition at line 121 of file RelationalDBInterface_nodes.cpp.
| std::optional< LedgerIndex > ripple::getMaxLedgerSeq | ( | soci::session & | session, |
| TableType | type | ||
| ) |
getMaxLedgerSeq Returns maximum ledger sequence in given table.
| session | Session with database. |
| type | Table ID for which the result is returned. |
Definition at line 131 of file RelationalDBInterface_nodes.cpp.
| void ripple::deleteByLedgerSeq | ( | soci::session & | session, |
| TableType | type, | ||
| LedgerIndex | ledgerSeq | ||
| ) |
deleteByLedgerSeq Deletes all entries in given table for the ledger with given sequence.
| session | Session with database. |
| type | Table ID from which entries will be deleted. |
| ledgerSeq | Ledger sequence. |
Definition at line 141 of file RelationalDBInterface_nodes.cpp.
| void ripple::deleteBeforeLedgerSeq | ( | soci::session & | session, |
| TableType | type, | ||
| LedgerIndex | ledgerSeq | ||
| ) |
deleteBeforeLedgerSeq Deletes all entries in given table for the ledgers with given sequence and all sequences below it.
| session | Session with database. |
| type | Table ID from which entries will be deleted. |
| ledgerSeq | Ledger sequence. |
Definition at line 148 of file RelationalDBInterface_nodes.cpp.
| std::size_t ripple::getRows | ( | soci::session & | session, |
| TableType | type | ||
| ) |
getRows Returns number of rows in given table.
| session | Session with database. |
| type | Table ID for which the result is returned. |
Definition at line 158 of file RelationalDBInterface_nodes.cpp.
| RelationalDBInterface::CountMinMax ripple::getRowsMinMax | ( | soci::session & | session, |
| TableType | type | ||
| ) |
getRowsMinMax Returns minumum ledger sequence, maximum ledger sequence and total number of rows in given table.
| session | Session with database. |
| type | Table ID for which the result is returned. |
Definition at line 170 of file RelationalDBInterface_nodes.cpp.
| bool ripple::saveValidatedLedger | ( | DatabaseCon & | ldgDB, |
| DatabaseCon & | txnDB, | ||
| Application & | app, | ||
| std::shared_ptr< Ledger const > const & | ledger, | ||
| bool | current | ||
| ) |
saveValidatedLedger Saves ledger into database.
| lgrDB | Link to ledgers database. |
| txnDB | Link to transactions database. |
| app | Application object. |
| ledger | The ledger. |
| current | True if ledger is current. |
Definition at line 185 of file RelationalDBInterface_nodes.cpp.
|
static |
getLedgerInfo Returns info of ledger with special condition given as SQL query.
| session | Session with database. |
| sqlSuffix | Special condition for found the ledger. |
| j | Journal. |
Definition at line 385 of file RelationalDBInterface_nodes.cpp.
| std::optional< LedgerInfo > ripple::getLedgerInfoByIndex | ( | soci::session & | session, |
| LedgerIndex | ledgerSeq, | ||
| beast::Journal | j | ||
| ) |
getLedgerInfoByIndex Returns ledger by its sequence.
Definition at line 455 of file RelationalDBInterface_nodes.cpp.
| std::optional< LedgerInfo > ripple::getNewestLedgerInfo | ( | soci::session & | session, |
| beast::Journal | j | ||
| ) |
getNewestLedgerInfo Returns info of newest saved ledger.
| session | Session with database. |
| j | Journal. |
Definition at line 466 of file RelationalDBInterface_nodes.cpp.
| std::optional< LedgerInfo > ripple::getLimitedOldestLedgerInfo | ( | soci::session & | session, |
| LedgerIndex | ledgerFirstIndex, | ||
| beast::Journal | j | ||
| ) |
getLimitedOldestLedgerInfo Returns info of oldest ledger from ledgers with sequences greather or equal to given.
| session | Session with database. |
| ledgerFirstIndex | Minimum ledger sequence. |
| j | Journal. |
Definition at line 474 of file RelationalDBInterface_nodes.cpp.
| std::optional< LedgerInfo > ripple::getLimitedNewestLedgerInfo | ( | soci::session & | session, |
| LedgerIndex | ledgerFirstIndex, | ||
| beast::Journal | j | ||
| ) |
getLimitedNewestLedgerInfo Returns info of newest ledger from ledgers with sequences greather or equal to given.
| session | Session with database. |
| ledgerFirstIndex | Minimum ledger sequence. |
| j | Journal. |
Definition at line 486 of file RelationalDBInterface_nodes.cpp.
| std::optional< LedgerInfo > ripple::getLedgerInfoByHash | ( | soci::session & | session, |
| uint256 const & | ledgerHash, | ||
| beast::Journal | j | ||
| ) |
getLedgerInfoByHash Returns info of ledger with given hash.
| session | Session with database. |
| ledgerHash | Hash of the ledger. |
| j | Journal. |
Definition at line 498 of file RelationalDBInterface_nodes.cpp.
| uint256 ripple::getHashByIndex | ( | soci::session & | session, |
| LedgerIndex | ledgerIndex | ||
| ) |
getHashByIndex Returns hash of ledger with given sequence.
Definition at line 509 of file RelationalDBInterface_nodes.cpp.
| std::optional< LedgerHashPair > ripple::getHashesByIndex | ( | soci::session & | session, |
| LedgerIndex | ledgerIndex, | ||
| beast::Journal | j | ||
| ) |
getHashesByIndex Returns hash of the ledger and hash of parent ledger for the ledger of given sequence.
Definition at line 539 of file RelationalDBInterface_nodes.cpp.
| std::map< LedgerIndex, LedgerHashPair > ripple::getHashesByIndex | ( | soci::session & | session, |
| LedgerIndex | minSeq, | ||
| LedgerIndex | maxSeq, | ||
| beast::Journal | j | ||
| ) |
getHashesByIndex Returns hash of the ledger and hash of parent ledger for all ledgers with seqyences from given minimum limit to fiven maximum limit.
| session | Session with database. |
| minSeq | Minimum ledger sequence. |
| maxSeq | Maximum ledger sequence. |
| j | Journal. |
Definition at line 570 of file RelationalDBInterface_nodes.cpp.
| std::pair< std::vector< std::shared_ptr< Transaction > >, int > ripple::getTxHistory | ( | soci::session & | session, |
| Application & | app, | ||
| LedgerIndex | startIndex, | ||
| int | quantity, | ||
| bool | count | ||
| ) |
getTxHistory Returns given number of most recent transactions starting from given number of entry.
| session | Session with database. |
| app | Application object. |
| startIndex | Offset of first returned entry. |
| quantity | Number of returned entries. |
| count | True if counting of all transaction in that shard required. |
Definition at line 615 of file RelationalDBInterface_nodes.cpp.
|
static |
transactionsSQL Returns SQL query to select oldest or newest transactions in decoded or binary form for given account which match given criteria starting from given offset.
| app | Application object. |
| selection | List of table fields to select from database. |
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
| limit_used | Number of transactions already returned in calls to another shard databases, if shard databases are used. None if node database is used. |
| descending | True for descending order, false for ascending. |
| binary | True for binary form, false for decoded. |
| count | True for count number of transaction, false for select it. |
| j | Journal. |
Definition at line 692 of file RelationalDBInterface_nodes.cpp.
|
static |
getAccountTxs Returns oldest or newest transactions for given account which match given criteria starting from given offset.
| session | Session with database. |
| app | Application object. |
| ledgerMaster | LedgerMaster object. |
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
| limit_used | Number of transactions already returned in calls to another shard databases, if shard databases are used. None if node database is used. |
| descending | True for descending order, false for ascending. |
| j | Journal. |
Definition at line 803 of file RelationalDBInterface_nodes.cpp.
| std::pair< RelationalDBInterface::AccountTxs, int > ripple::getOldestAccountTxs | ( | soci::session & | session, |
| Application & | app, | ||
| LedgerMaster & | ledgerMaster, | ||
| RelationalDBInterface::AccountTxOptions const & | options, | ||
| std::optional< int > const & | limit_used, | ||
| beast::Journal | j | ||
| ) |
getOldestAccountTxs Returns oldest transactions for given account which match given criteria starting from given offset.
| session | Session with database. |
| app | Application object. |
| ledgerMaster | LedgerMaster object. |
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
| limit_used | Number or transactions already returned in calls to another shard databases, if shard databases are used. None if node database is used. |
| j | Journal. |
Definition at line 897 of file RelationalDBInterface_nodes.cpp.
| std::pair< RelationalDBInterface::AccountTxs, int > ripple::getNewestAccountTxs | ( | soci::session & | session, |
| Application & | app, | ||
| LedgerMaster & | ledgerMaster, | ||
| RelationalDBInterface::AccountTxOptions const & | options, | ||
| std::optional< int > const & | limit_used, | ||
| beast::Journal | j | ||
| ) |
getNewestAccountTxs Returns newest transactions for given account which match given criteria starting from given offset.
| session | Session with database. |
| app | Application object. |
| ledgerMaster | LedgerMaster object. |
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
| limit_used | Number or transactions already returned in calls to another shard databases, if shard databases are used. None if node database is used. |
| j | Journal. |
Definition at line 910 of file RelationalDBInterface_nodes.cpp.
|
static |
getAccountTxsB Returns oldest or newset transactions in binary form for given account which match given criteria starting from given offset.
| session | Session with database. |
| app | Application object. |
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
| limit_used | Number or transactions already returned in calls to another shard databases, if shard databases are used. None if node database is used. |
| descending | True for descending order, false for ascending. |
| j | Journal. |
Definition at line 946 of file RelationalDBInterface_nodes.cpp.
| std::pair< std::vector< RelationalDBInterface::txnMetaLedgerType >, int > ripple::getOldestAccountTxsB | ( | soci::session & | session, |
| Application & | app, | ||
| RelationalDBInterface::AccountTxOptions const & | options, | ||
| std::optional< int > const & | limit_used, | ||
| beast::Journal | j | ||
| ) |
getOldestAccountTxsB Returns oldest transactions in binary form for given account which match given criteria starting from given offset.
| session | Session with database. |
| app | Application object. |
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
| limit_used | Number or transactions already returned in calls to another shard databases, if shard databases are used. None if node database is used. |
| j | Journal. |
Definition at line 1018 of file RelationalDBInterface_nodes.cpp.
| std::pair< std::vector< RelationalDBInterface::txnMetaLedgerType >, int > ripple::getNewestAccountTxsB | ( | soci::session & | session, |
| Application & | app, | ||
| RelationalDBInterface::AccountTxOptions const & | options, | ||
| std::optional< int > const & | limit_used, | ||
| beast::Journal | j | ||
| ) |
getNewestAccountTxsB Returns newest transactions in binary form for given account which match given criteria starting from given offset.
| session | Session with database. |
| app | Application object. |
| options | Struct AccountTxOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, offset of first entry to return, number of transactions to return, flag if this number unlimited. |
| limit_used | Number or transactions already returned in calls to another shard databases, if shard databases are used. None if node database is used. |
| j | Journal. |
Definition at line 1029 of file RelationalDBInterface_nodes.cpp.
|
static |
accountTxPage Searches oldest or newest transactions for given account which match given criteria starting from given marker and calls callback for each found transaction.
| session | Session with database. |
| idCache | Account ID cache. |
| onUnsavedLedger | Callback function to call on each found unsaved ledger within given range. |
| onTransaction | Callback function to call on eahc found transaction. |
| options | Struct AccountTxPageOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, marker of first returned entry, number of transactions to return, flag if this number unlimited. |
| limit_used | Number or transactions already returned in calls to another shard databases. |
| page_length | Total number of transactions to return. |
| forward | True for ascending order, false for descending. |
Definition at line 1062 of file RelationalDBInterface_nodes.cpp.
| std::pair< std::optional< RelationalDBInterface::AccountTxMarker >, int > ripple::oldestAccountTxPage | ( | soci::session & | session, |
| AccountIDCache const & | idCache, | ||
| std::function< void(std::uint32_t)> const & | onUnsavedLedger, | ||
| std::function< void(std::uint32_t, std::string const &, Blob &&, Blob &&)> const & | onTransaction, | ||
| RelationalDBInterface::AccountTxPageOptions const & | options, | ||
| int | limit_used, | ||
| std::uint32_t | page_length | ||
| ) |
oldestAccountTxPage Searches oldest transactions for given account which match given criteria starting from given marker and calls callback for each found transaction.
| session | Session with database. |
| idCache | Account ID cache. |
| onUnsavedLedger | Callback function to call on each found unsaved ledger within given range. |
| onTransaction | Callback function to call on each found transaction. |
| options | Struct AccountTxPageOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, marker of first returned entry, number of transactions to return, flag if this number unlimited. |
| limit_used | Number or transactions already returned in calls to another shard databases. |
| page_length | Total number of transactions to return. |
Definition at line 1224 of file RelationalDBInterface_nodes.cpp.
| std::pair< std::optional< RelationalDBInterface::AccountTxMarker >, int > ripple::newestAccountTxPage | ( | soci::session & | session, |
| AccountIDCache const & | idCache, | ||
| std::function< void(std::uint32_t)> const & | onUnsavedLedger, | ||
| std::function< void(std::uint32_t, std::string const &, Blob &&, Blob &&)> const & | onTransaction, | ||
| RelationalDBInterface::AccountTxPageOptions const & | options, | ||
| int | limit_used, | ||
| std::uint32_t | page_length | ||
| ) |
newestAccountTxPage Searches newest transactions for given account which match given criteria starting from given marker and calls callback for each found transaction.
| session | Session with database. |
| idCache | Account ID cache. |
| onUnsavedLedger | Callback function to call on each found unsaved ledger within given range. |
| onTransaction | Callback function to call on each found transaction. |
| options | Struct AccountTxPageOptions which contain criteria to match: the account, minimum and maximum ledger numbers to search, marker of first returned entry, number of transactions to return, flag if this number unlimited. |
| limit_used | Number or transactions already returned in calls to another shard databases. |
| page_length | Total number of transactions to return. |
Definition at line 1247 of file RelationalDBInterface_nodes.cpp.
| std::variant< RelationalDBInterface::AccountTx, TxSearched > ripple::getTransaction | ( | soci::session & | session, |
| Application & | app, | ||
| uint256 const & | id, | ||
| std::optional< ClosedInterval< uint32_t >> const & | range, | ||
| error_code_i & | ec | ||
| ) |
getTransaction Returns transaction with given hash.
If not found and range given then check if all ledgers from the range are present in the database.
| session | Session with database. |
| app | Application object. |
| id | Hash of the transaction. |
| range | Range of ledgers to check, if present. |
| ec | Default value of error code. |
Definition at line 1270 of file RelationalDBInterface_nodes.cpp.
| bool ripple::dbHasSpace | ( | soci::session & | session, |
| Config const & | config, | ||
| beast::Journal | j | ||
| ) |
dbHasSpace Checks if given database has available space.
Definition at line 1351 of file RelationalDBInterface_nodes.cpp.
| std::optional< LedgerIndex > ripple::getMinLedgerSeq | ( | std::shared_ptr< PgPool > const & | pgPool, |
| beast::Journal | j | ||
| ) |
getMinLedgerSeq Returns minimum ledger sequence from Postgres database
| pgPool | Link to postgres database |
| app | Application |
| j | Journal |
Definition at line 35 of file RelationalDBInterface_postgres.cpp.
| std::optional< LedgerIndex > ripple::getMaxLedgerSeq | ( | std::shared_ptr< PgPool > const & | pgPool | ) |
getMaxLedgerSeq Returns maximum ledger sequence from Postgres database
| pgPool | Link to postgres database |
| app | Application |
Definition at line 50 of file RelationalDBInterface_postgres.cpp.
| std::string ripple::getCompleteLedgers | ( | std::shared_ptr< PgPool > const & | pgPool | ) |
getCompleteLedgers Returns string which contains list of completed ledgers
| pgPool | Link to postgres database |
| app | Application |
Definition at line 61 of file RelationalDBInterface_postgres.cpp.
| std::chrono::seconds ripple::getValidatedLedgerAge | ( | std::shared_ptr< PgPool > const & | pgPool, |
| beast::Journal | j | ||
| ) |
getValidatedLedgerAge Returns age of last validated ledger
| pgPool | Link to postgres database |
| app | Application |
| j | Journal |
Definition at line 72 of file RelationalDBInterface_postgres.cpp.
|
static |
loadLedgerInfos Load 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 96 of file RelationalDBInterface_postgres.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 240 of file RelationalDBInterface_postgres.cpp.
| std::optional< LedgerInfo > ripple::getNewestLedgerInfo | ( | std::shared_ptr< PgPool > const & | pgPool, |
| Application & | app | ||
| ) |
getNewestLedgerInfo Load latest ledger info from Postgres
| pgPool | Link to postgres database |
| app | reference to Application |
Definition at line 258 of file RelationalDBInterface_postgres.cpp.
| std::optional< LedgerInfo > ripple::getLedgerInfoByIndex | ( | std::shared_ptr< PgPool > const & | pgPool, |
| std::uint32_t | ledgerIndex, | ||
| Application & | app | ||
| ) |
getLedgerInfoByIndex Load ledger info by index (AKA sequence) from Postgres
| pgPool | Link to postgres database |
| ledgerIndex | the ledger index (or sequence) to load |
| app | reference to Application |
Definition at line 264 of file RelationalDBInterface_postgres.cpp.
| std::optional< LedgerInfo > ripple::getLedgerInfoByHash | ( | std::shared_ptr< PgPool > const & | pgPool, |
| uint256 const & | ledgerHash, | ||
| Application & | app | ||
| ) |
getLedgerInfoByHash Load ledger info by hash from Postgres
| pgPool | Link to postgres database |
| hash | Hash of the ledger to load |
| app | reference to Application |
Definition at line 273 of file RelationalDBInterface_postgres.cpp.
| uint256 ripple::getHashByIndex | ( | std::shared_ptr< PgPool > const & | pgPool, |
| std::uint32_t | ledgerIndex, | ||
| Application & | app | ||
| ) |
getHashByIndex Given a ledger sequence, return the ledger hash
| pgPool | Link to postgres database |
| ledgerIndex | Ledger sequence |
| app | Application |
Definition at line 282 of file RelationalDBInterface_postgres.cpp.
| bool ripple::getHashesByIndex | ( | std::shared_ptr< PgPool > const & | pgPool, |
| std::uint32_t | ledgerIndex, | ||
| uint256 & | ledgerHash, | ||
| uint256 & | parentHash, | ||
| Application & | app | ||
| ) |
getHashesByIndex Given a ledger sequence, return the ledger hash and the parent hash
| pgPool | Link to postgres database | |
| ledgerIndex | Ledger sequence | |
| [out] | ledgerHash | Hash of ledger |
| [out] | parentHash | Hash of parent ledger |
| app | Application |
Definition at line 295 of file RelationalDBInterface_postgres.cpp.
| std::map< std::uint32_t, LedgerHashPair > ripple::getHashesByIndex | ( | std::shared_ptr< PgPool > const & | pgPool, |
| std::uint32_t | minSeq, | ||
| std::uint32_t | maxSeq, | ||
| Application & | app | ||
| ) |
getHashesByIndex Given a contiguous range of sequences, return a map of sequence -> (hash, parent hash)
| pgPool | Link to postgres database |
| minSeq | Lower bound of range |
| maxSeq | Upper bound of range |
| app | Application |
Definition at line 314 of file RelationalDBInterface_postgres.cpp.
| std::vector< uint256 > ripple::getTxHashes | ( | std::shared_ptr< PgPool > const & | pgPool, |
| LedgerIndex | seq, | ||
| Application & | app | ||
| ) |
getTxHashes Returns vector of tx hashes by given ledger sequence
| pgPool | Link to postgres database |
| seq | Ledger sequence |
| app | Application |
Definition at line 330 of file RelationalDBInterface_postgres.cpp.
| std::pair< AccountTxResult, RPC::Status > ripple::getAccountTx | ( | std::shared_ptr< PgPool > const & | pgPool, |
| AccountTxArgs const & | args, | ||
| Application & | app, | ||
| beast::Journal | j | ||
| ) |
getAccountTx Get last account transactions specifies by passed argumenrs structure.
| pgPool | Link to postgres database |
| args | Arguments which specify account and whose tx to return. |
| app | Application |
| j | Journal |
Definition at line 542 of file RelationalDBInterface_postgres.cpp.
| Transaction::Locator ripple::locateTransaction | ( | std::shared_ptr< PgPool > const & | pgPool, |
| uint256 const & | id, | ||
| Application & | app | ||
| ) |
locateTransaction Returns information used to locate a transaction.
Function is specific to postgres backend.
| pgPool | Link to postgres database |
| id | Hash of the transaction. |
| app | Application |
Definition at line 657 of file RelationalDBInterface_postgres.cpp.
| bool ripple::writeLedgerAndTransactions | ( | std::shared_ptr< PgPool > const & | pgPool, |
| LedgerInfo const & | info, | ||
| std::vector< AccountTransactionsData > const & | accountTxData, | ||
| beast::Journal & | j | ||
| ) |
writeLedgerAndTransactions Write new ledger and transaction data to Postgres.
| pgPool | Pool of Postgres connections |
| info | Ledger info to write. |
| accountTxData | Transaction data to write |
| j | Journal (for logging) |
Definition at line 762 of file RelationalDBInterface_postgres.cpp.
| std::vector< std::shared_ptr< Transaction > > ripple::getTxHistory | ( | std::shared_ptr< PgPool > const & | pgPool, |
| LedgerIndex | startIndex, | ||
| Application & | app, | ||
| beast::Journal | j | ||
| ) |
getTxHistory Returns most recent 20 transactions starting from given number or entry.
| pgPool | Link to postgres database |
| startIndex | First number of returned entry. |
| app | Application |
| j | Journal |
Definition at line 848 of file RelationalDBInterface_postgres.cpp.
| DatabasePair ripple::makeMetaDBs | ( | Config const & | config, |
| DatabaseCon::Setup const & | setup, | ||
| DatabaseCon::CheckpointerSetup const & | checkpointerSetup | ||
| ) |
makeMetaDBs Opens ledger and transaction 'meta' databases which map ledger hashes and transaction IDs to the index of the shard that holds the ledger or transaction.
| config | Config object. |
| setup | Path to database and opening parameters. |
| checkpointerSetup | Database checkpointer setup. |
Definition at line 36 of file RelationalDBInterface_shards.cpp.
| bool ripple::saveLedgerMeta | ( | std::shared_ptr< Ledger const > const & | ledger, |
| Application & | app, | ||
| soci::session & | lgrMetaSession, | ||
| soci::session & | txnMetaSession, | ||
| std::uint32_t | shardIndex | ||
| ) |
saveLedgerMeta Stores (transaction ID -> shard index) and (ledger hash -> shard index) mappings in the meta databases.
| ledger | The ledger. |
| app | Application object. |
| lgrMetaSession | Session to ledger meta database. |
| txnMetaSession | Session to transaction meta database. |
| shardIndex | The index of the shard that contains this ledger. |
Definition at line 66 of file RelationalDBInterface_shards.cpp.
| std::optional< std::uint32_t > ripple::getShardIndexforLedger | ( | soci::session & | session, |
| LedgerHash const & | hash | ||
| ) |
getShardIndexforLedger Queries the ledger meta database to retrieve the index of the shard that contains this ledger.
| session | Session to the database. |
| hash | Hash of the ledger. |
Definition at line 130 of file RelationalDBInterface_shards.cpp.
| std::optional< std::uint32_t > ripple::getShardIndexforTransaction | ( | soci::session & | session, |
| TxID const & | id | ||
| ) |
getShardIndexforTransaction Queries the transaction meta database to retrieve the index of the shard that contains this transaction.
| session | Session to the database. |
| id | ID of the transaction. |
Definition at line 144 of file RelationalDBInterface_shards.cpp.
| DatabasePair ripple::makeShardCompleteLedgerDBs | ( | Config const & | config, |
| DatabaseCon::Setup const & | setup | ||
| ) |
makeShardCompleteLedgerDBs Opens shard databases for already verified shard and returns its descriptors.
| config | Config object. |
| setup | Path to database and other opening parameters. |
Definition at line 158 of file RelationalDBInterface_shards.cpp.
| DatabasePair ripple::makeShardIncompleteLedgerDBs | ( | Config const & | config, |
| DatabaseCon::Setup const & | setup, | ||
| DatabaseCon::CheckpointerSetup const & | checkpointerSetup | ||
| ) |
makeShardIncompleteLedgerDBs Opens shard databases for not fully downloaded or verified shard and returns its descriptors.
| config | Config object. |
| setup | Path to database and other opening parameters. |
| checkpointerSetup | Checkpointer parameters. |
Definition at line 178 of file RelationalDBInterface_shards.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 Save given ledger to shard databases.
| txdb | Session with transaction DB. |
| lgrdb | Sessiob with ledger DB. |
| ledger | Ledger to save. |
| index | Index of the shard which the ledger belonfs to. |
| stop | Link to atomic flag which can stop the process if raised. |
| j | Journal |
Definition at line 201 of file RelationalDBInterface_shards.cpp.
| std::unique_ptr< DatabaseCon > ripple::makeAcquireDB | ( | DatabaseCon::Setup const & | setup, |
| DatabaseCon::CheckpointerSetup const & | checkpointerSetup | ||
| ) |
makeAcquireDB Opens shard acquire DB and returns its descriptor.
| setup | Path to DB and other opening parameters. |
| checkpointerSetup | Checkpointer parameters. |
Definition at line 338 of file RelationalDBInterface_shards.cpp.
| void ripple::insertAcquireDBIndex | ( | soci::session & | session, |
| std::uint32_t | index | ||
| ) |
insertAcquireDBIndex Adds new shard index to shard acquire DB.
| session | Session with database. |
| index | Index to add. |
Definition at line 351 of file RelationalDBInterface_shards.cpp.
| std::pair< bool, std::optional< std::string > > ripple::selectAcquireDBLedgerSeqs | ( | soci::session & | session, |
| std::uint32_t | index | ||
| ) |
selectAcquireDBLedgerSeqs Returns set of acquired ledgers for given shard.
| session | Session with database. |
| index | Shard index. |
Definition at line 359 of file RelationalDBInterface_shards.cpp.
| std::pair< bool, AcquireShardSeqsHash > ripple::selectAcquireDBLedgerSeqsHash | ( | soci::session & | session, |
| std::uint32_t | index | ||
| ) |
selectAcquireDBLedgerSeqsHash Returns set of acquired ledgers and hash for given shard.
| session | Session with database. |
| index | Shard index. |
Definition at line 386 of file RelationalDBInterface_shards.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 acquire DB.
| session | Session with database. |
| ledger | Ledger to save into database. |
| index | Shard index. |
| lastSeq | Last acqyured ledger sequence. |
| seqs | Current set or acquired ledger sequences if it's not empty. |
Definition at line 417 of file RelationalDBInterface_shards.cpp.
| std::unique_ptr< DatabaseCon > ripple::makeArchiveDB | ( | boost::filesystem::path const & | dir, |
| std::string const & | dbName | ||
| ) |
makeArchiveDB Opens shard archive DB and returns its descriptor.
| dir | Path to database to open. |
| dbName | Name of database. |
Definition at line 451 of file RelationalDBInterface_shards.cpp.
| void ripple::readArchiveDB | ( | DatabaseCon & | db, |
| std::function< void(std::string const &, int)> const & | func | ||
| ) |
readArchiveDB Read entries from shard archive database and calls fiven callback for each entry.
| db | Session with database. |
| func | Callback to call for each entry. |
Definition at line 458 of file RelationalDBInterface_shards.cpp.
| void ripple::insertArchiveDB | ( | DatabaseCon & | db, |
| std::uint32_t | shardIndex, | ||
| std::string const & | url | ||
| ) |
insertArchiveDB Adds entry to shard archive database.
| db | Session with database. |
| shardIndex | Shard index to add. |
| url | Shard download url to add. |
Definition at line 472 of file RelationalDBInterface_shards.cpp.
| void ripple::deleteFromArchiveDB | ( | DatabaseCon & | db, |
| std::uint32_t | shardIndex | ||
| ) |
deleteFromArchiveDB Deletes entry from shard archive DB.
| db | Session with database. |
| shardIndex | Shard index to remove from DB. |
Definition at line 482 of file RelationalDBInterface_shards.cpp.
| void ripple::dropArchiveDB | ( | DatabaseCon & | db | ) |
dropArchiveDB Removes table in shard archive DB.
| db | Session with database. |
Definition at line 489 of file RelationalDBInterface_shards.cpp.
| T ripple::rangeCheckedCast | ( | C | c | ) |
Definition at line 246 of file RelationalDBInterface.h.
| std::vector<uint256> ripple::getMarkers | ( | size_t | numMarkers | ) |
Parititions the uint256 keyspace into numMarkers partitions, each of equal size.
Definition at line 167 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 98 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 418 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 438 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 484 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 490 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 496 of file applySteps.cpp.
| TxConsequences ripple::consequences_helper | ( | PreflightContext const & | ctx | ) |
Definition at line 53 of file applySteps.cpp.
| std::pair<NotTEC, TxConsequences> ripple::invoke_preflight_helper | ( | PreflightContext const & | ctx | ) |
Definition at line 80 of file applySteps.cpp.
|
static |
Definition at line 89 of file applySteps.cpp.
|
static |
Definition at line 147 of file applySteps.cpp.
Definition at line 233 of file applySteps.cpp.
|
static |
Definition at line 325 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 278 of file Escrow.cpp.
| InvariantChecks ripple::getInvariantChecks | ( | ) |
get a tuple of all invariant checks
Definition at line 343 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 153 of file SetSignerList.cpp.
|
static |
Definition at line 175 of file SetSignerList.cpp.
|
static |
| NotTEC ripple::preflight0 | ( | PreflightContext const & | ctx | ) |
Performs early sanity checks on the txid.
Definition at line 40 of file Transactor.cpp.
| NotTEC ripple::preflight1 | ( | PreflightContext const & | ctx | ) |
Performs early sanity checks on the account and fee fields.
Definition at line 56 of file Transactor.cpp.
| NotTEC ripple::preflight2 | ( | PreflightContext const & | ctx | ) |
Checks whether the signature appears valid.
Definition at line 108 of file Transactor.cpp.
|
static |
Definition at line 696 of file Transactor.cpp.
| void ripple::generalized_set_intersection | ( | InputIter1 | first1, |
| InputIter1 | last1, | ||
| InputIter2 | first2, | ||
| InputIter2 | last2, | ||
| Action | action, | ||
| Comp | comp | ||
| ) |
Definition at line 36 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 74 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 29 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.
| int ripple::compare | ( | base_uint< Bits, Tag > const & | a, |
| base_uint< Bits, Tag > const & | b | ||
| ) |
Definition at line 533 of file base_uint.h.
| bool ripple::operator< | ( | base_uint< Bits, Tag > const & | a, |
| base_uint< Bits, Tag > const & | b | ||
| ) |
Definition at line 550 of file base_uint.h.
| bool ripple::operator<= | ( | base_uint< Bits, Tag > const & | a, |
| base_uint< Bits, Tag > const & | b | ||
| ) |
Definition at line 557 of file base_uint.h.
| bool ripple::operator> | ( | base_uint< Bits, Tag > const & | a, |
| base_uint< Bits, Tag > const & | b | ||
| ) |
Definition at line 564 of file base_uint.h.
| bool ripple::operator>= | ( | base_uint< Bits, Tag > const & | a, |
| base_uint< Bits, Tag > const & | b | ||
| ) |
Definition at line 571 of file base_uint.h.
| bool ripple::operator== | ( | base_uint< Bits, Tag > const & | a, |
| base_uint< Bits, Tag > const & | b | ||
| ) |
Definition at line 578 of file base_uint.h.
| bool ripple::operator!= | ( | base_uint< Bits, Tag > const & | a, |
| base_uint< Bits, Tag > const & | b | ||
| ) |
Definition at line 585 of file base_uint.h.
| bool ripple::operator== | ( | base_uint< Bits, Tag > const & | a, |
| std::uint64_t | b | ||
| ) |
Definition at line 593 of file base_uint.h.
| bool ripple::operator!= | ( | base_uint< Bits, Tag > const & | a, |
| std::uint64_t | b | ||
| ) |
Definition at line 600 of file base_uint.h.
| const base_uint<Bits, Tag> ripple::operator^ | ( | base_uint< Bits, Tag > const & | a, |
| base_uint< Bits, Tag > const & | b | ||
| ) |
Definition at line 608 of file base_uint.h.
| const base_uint<Bits, Tag> ripple::operator& | ( | base_uint< Bits, Tag > const & | a, |
| base_uint< Bits, Tag > const & | b | ||
| ) |
Definition at line 615 of file base_uint.h.
| const base_uint<Bits, Tag> ripple::operator| | ( | base_uint< Bits, Tag > const & | a, |
| base_uint< Bits, Tag > const & | b | ||
| ) |
Definition at line 622 of file base_uint.h.
| const base_uint<Bits, Tag> ripple::operator+ | ( | base_uint< Bits, Tag > const & | a, |
| base_uint< Bits, Tag > const & | b | ||
| ) |
Definition at line 629 of file base_uint.h.
| std::string ripple::to_string | ( | base_uint< Bits, Tag > const & | a | ) |
Definition at line 637 of file base_uint.h.
| std::ostream& ripple::operator<< | ( | std::ostream & | out, |
| base_uint< Bits, Tag > const & | u | ||
| ) |
Definition at line 644 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 473 of file FeeUnits.h.
| std::pair<bool, Dest> ripple::mulDiv | ( | Dest | value, |
| Source1 | mul, | ||
| Source2 | div | ||
| ) |
Definition at line 484 of file FeeUnits.h.
| std::pair<bool, Dest> ripple::mulDiv | ( | std::uint64_t | value, |
| Dest | mul, | ||
| std::uint64_t | div | ||
| ) |
Definition at line 492 of file FeeUnits.h.
| std::pair<bool, Dest> ripple::mulDiv | ( | Dest | value, |
| std::uint64_t | mul, | ||
| std::uint64_t | div | ||
| ) |
Definition at line 501 of file FeeUnits.h.
| std::pair<bool, std::uint64_t> ripple::mulDiv | ( | Source1 | value, |
| std::uint64_t | mul, | ||
| Source2 | div | ||
| ) |
Definition at line 512 of file FeeUnits.h.
| std::pair<bool, std::uint64_t> ripple::mulDiv | ( | std::uint64_t | value, |
| Source1 | mul, | ||
| Source2 | div | ||
| ) |
Definition at line 525 of file FeeUnits.h.
|
constexprnoexcept |
Definition at line 537 of file FeeUnits.h.
|
constexprnoexcept |
Definition at line 549 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.
| std::string ripple::to_string | ( | IOUAmount const & | amount | ) |
Definition at line 158 of file IOUAmount.cpp.
| IOUAmount ripple::mulRatio | ( | IOUAmount const & | amt, |
| std::uint32_t | num, | ||
| std::uint32_t | den, | ||
| bool | roundUp | ||
| ) |
Definition at line 248 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 400 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 411 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.
| int ripple::charUnHex | ( | unsigned char | c | ) |
Converts a hex digit to the corresponding integer.
| cDigit | one of '0'-'9', 'A'-'F' or 'a'-'f' |
Definition at line 26 of file strHex.cpp.
| 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.
|
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 > |
| 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 49 of file StringUtilities.h.
| std::optional<Blob> ripple::strUnHex | ( | std::string const & | strSrc | ) |
Definition at line 89 of file StringUtilities.h.
| std::optional<Blob> ripple::strViewUnHex | ( | boost::string_view const & | strSrc | ) |
Definition at line 95 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 1347 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 235 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 146 of file Validations.h.
| std::string ripple::to_string | ( | ValStatus | m | ) |
Definition at line 180 of file Validations.h.
| 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 159 of file Config.cpp.
| IniFileSections::mapped_type* ripple::getIniFileSection | ( | IniFileSections & | secSource, |
| std::string const & | strSection | ||
| ) |
Definition at line 207 of file Config.cpp.
| bool ripple::getSingleSection | ( | IniFileSections & | secSource, |
| std::string const & | strSection, | ||
| std::string & | strValue, | ||
| beast::Journal | j | ||
| ) |
Definition at line 220 of file Config.cpp.
|
static |
Definition at line 255 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 108 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 50 of file ApplyView.h.
|
constexpr |
Definition at line 65 of file ApplyView.h.
|
constexpr |
Definition at line 76 of file ApplyView.h.
| ApplyFlags ripple::operator|= | ( | ApplyFlags & | lhs, |
| ApplyFlags const & | rhs | ||
| ) |
Definition at line 87 of file ApplyView.h.
| ApplyFlags ripple::operator&= | ( | ApplyFlags & | lhs, |
| ApplyFlags const & | rhs | ||
| ) |
Definition at line 94 of file ApplyView.h.
| 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 | ||
| ) |
| 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, |
| AccountID const & | id, | ||
| std::function< void(std::shared_ptr< SLE 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 &)> | 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 418 of file ReadView.h.
| 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 1354 of file RPCCall.cpp.
|
static |
Definition at line 1462 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 1500 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 1531 of file RPCCall.cpp.
| Json::Value ripple::rpcError | ( | int | iError, |
| Json::Value | jvResult | ||
| ) |
Definition at line 29 of file RPCErr.cpp.
| bool ripple::isRpcError | ( | Json::Value | jvResult | ) |
Definition at line 37 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 213 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 230 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 369 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 396 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 3175 of file PeerImp.cpp.
|
static |
Definition at line 3199 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 73 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 79 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 126 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 149 of file ProtocolVersion.cpp.
| std::string const & ripple::supportedProtocolVersions | ( | ) |
The list of all the protocol versions we support.
Definition at line 157 of file ProtocolVersion.cpp.
| bool ripple::isProtocolSupported | ( | ProtocolVersion const & | v | ) |
Determine whether we support a specific protocol version.
Definition at line 175 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 29 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 36 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 90 of file AccountID.cpp.
| AccountID const & ripple::noAccount | ( | ) |
A placeholder for empty accounts.
Definition at line 97 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 104 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.
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 | ||
| ) |
| 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 235 of file ErrorCodes.cpp.
| std::optional< uint256 > ripple::getRegisteredFeature | ( | std::string const & | name | ) |
Definition at line 336 of file Feature.cpp.
| size_t ripple::featureToBitsetIndex | ( | uint256 const & | f | ) |
Definition at line 363 of file Feature.cpp.
| uint256 ripple::bitsetIndexToFeature | ( | size_t | i | ) |
Definition at line 369 of file Feature.cpp.
| std::string ripple::featureToName | ( | uint256 const & | f | ) |
Definition at line 375 of file Feature.cpp.
| void ripple::foreachFeature | ( | FeatureBitset | bs, |
| F && | f | ||
| ) |
|
noexcept |
Definition at line 94 of file HashPrefix.h.
Definition at line 80 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, | ||
| DefaultVote | vote | ||
| ) |
Definition at line 342 of file Feature.cpp.
| uint256 ripple::retireFeature | ( | std::string const & | name | ) |
Definition at line 350 of file Feature.cpp.
| bool ripple::registrationIsDone | ( | ) |
Tell FeatureCollections when registration is complete.
Definition at line 357 of file Feature.cpp.
| ripple::REGISTER_FEATURE | ( | OwnerPaysFee | , |
| Supported::no | , | ||
| DefaultVote::no | |||
| ) |
| ripple::REGISTER_FEATURE | ( | Flow | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FEATURE | ( | FlowCross | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FEATURE | ( | CryptoConditionsSuite | , |
| Supported::yes | , | ||
| DefaultVote::no | |||
| ) |
| ripple::REGISTER_FIX | ( | fix1513 | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FEATURE | ( | DepositAuth | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FEATURE | ( | Checks | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fix1571 | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fix1543 | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fix1623 | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FEATURE | ( | DepositPreauth | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fix1515 | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fix1578 | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FEATURE | ( | MultiSignReserve | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fixTakerDryOfferRemoval | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fixMasterKeyAsRegularKey | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fixCheckThreading | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fixPayChanRecipientOwnerDir | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FEATURE | ( | DeletableAccounts | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fixQualityUpperBound | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FEATURE | ( | RequireFullyCanonicalSig | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fix1781 | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FEATURE | ( | HardenedValidations | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fixAmendmentMajorityCalc | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FEATURE | ( | NegativeUNL | , |
| Supported::yes | , | ||
| DefaultVote::no | |||
| ) |
| ripple::REGISTER_FEATURE | ( | TicketBatch | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FEATURE | ( | FlowSortStrands | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fixSTAmountCanonicalize | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FIX | ( | fixRmSmallIncreasedQOffers | , |
| Supported::yes | , | ||
| DefaultVote::yes | |||
| ) |
| ripple::REGISTER_FEATURE | ( | CheckCashMakesTrustLine | , |
| Supported::yes | , | ||
| DefaultVote::no | |||
| ) |
|
static |
Definition at line 73 of file Indexes.cpp.
Definition at line 79 of file Indexes.cpp.
Definition at line 97 of file Indexes.cpp.
| std::uint64_t ripple::getQuality | ( | uint256 const & | uBase | ) |
Definition at line 105 of file Indexes.cpp.
| uint256 ripple::getTicketIndex | ( | AccountID const & | account, |
| std::uint32_t | ticketSeq | ||
| ) |
Definition at line 112 of file Indexes.cpp.
Definition at line 119 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 203 of file PublicKey.cpp.
|
noexcept |
Verify a secp256k1 signature on the digest of a message.
Definition at line 218 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 268 of file PublicKey.cpp.
Calculate the 160-bit node ID from a node public key.
Definition at line 299 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 | ) |
| 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 | ( | 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 | ( | sfVersion | , |
| "Version" | , | ||
| UINT16 | , | ||
| 16 | |||
| ) |
| 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 | ( | 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 | ( | sfEmailHash | , |
| "EmailHash" | , | ||
| HASH128 | , | ||
| 1 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTakerPaysCurrency | , |
| "TakerPaysCurrency" | , | ||
| HASH160 | , | ||
| 1 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTakerPaysIssuer | , |
| "TakerPaysIssuer" | , | ||
| HASH160 | , | ||
| 2 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTakerGetsCurrency | , |
| "TakerGetsCurrency" | , | ||
| HASH160 | , | ||
| 3 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTakerGetsIssuer | , |
| "TakerGetsIssuer" | , | ||
| HASH160 | , | ||
| 4 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfLedgerHash | , |
| "LedgerHash" | , | ||
| HASH256 | , | ||
| 1 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfParentHash | , |
| "ParentHash" | , | ||
| HASH256 | , | ||
| 2 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfTransactionHash | , |
| "TransactionHash" | , | ||
| HASH256 | , | ||
| 3 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfAccountHash | , |
| "AccountHash" | , | ||
| HASH256 | , | ||
| 4 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfPreviousTxnID | , |
| "PreviousTxnID" | , | ||
| HASH256 | , | ||
| 5 | , | ||
| SField::sMD_DeleteFinal | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfLedgerIndex | , |
| "LedgerIndex" | , | ||
| HASH256 | , | ||
| 6 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfWalletLocator | , |
| "WalletLocator" | , | ||
| HASH256 | , | ||
| 7 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfRootIndex | , |
| "RootIndex" | , | ||
| HASH256 | , | ||
| 8 | , | ||
| SField::sMD_Always | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfAccountTxnID | , |
| "AccountTxnID" | , | ||
| HASH256 | , | ||
| 9 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfBookDirectory | , |
| "BookDirectory" | , | ||
| HASH256 | , | ||
| 16 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfInvoiceID | , |
| "InvoiceID" | , | ||
| HASH256 | , | ||
| 17 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfNickname | , |
| "Nickname" | , | ||
| HASH256 | , | ||
| 18 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfAmendment | , |
| "Amendment" | , | ||
| HASH256 | , | ||
| 19 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfDigest | , |
| "Digest" | , | ||
| HASH256 | , | ||
| 21 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfChannel | , |
| "Channel" | , | ||
| HASH256 | , | ||
| 22 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfConsensusHash | , |
| "ConsensusHash" | , | ||
| HASH256 | , | ||
| 23 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfCheckID | , |
| "CheckID" | , | ||
| HASH256 | , | ||
| 24 | |||
| ) |
| ripple::CONSTRUCT_TYPED_SFIELD | ( | sfValidatedHash | , |
| "ValidatedHash" | , | ||
| HASH256 | , | ||
| 25 | |||
| ) |
| 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 | ( | 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 | ( | 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 | ( | 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 | ( | 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_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 | ( | sfSigner | , |
| "Signer" | , | ||
| OBJECT | , | ||
| 16 | |||
| ) |
| ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfMajority | , |
| "Majority" | , | ||
| OBJECT | , | ||
| 18 | |||
| ) |
| ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfDisabledValidator | , |
| "DisabledValidator" | , | ||
| OBJECT | , | ||
| 19 | |||
| ) |
| 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 | ( | sfMajorities | , |
| "Majorities" | , | ||
| ARRAY | , | ||
| 16 | |||
| ) |
| ripple::CONSTRUCT_UNTYPED_SFIELD | ( | sfDisabledValidators | , |
| "DisabledValidators" | , | ||
| ARRAY | , | ||
| 17 | |||
| ) |
| 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:
|
static |
Definition at line 45 of file STAmount.cpp.
Definition at line 61 of file STAmount.cpp.
Definition at line 351 of file STAmount.cpp.
Definition at line 416 of file STAmount.cpp.
| std::uint64_t ripple::getRate | ( | STAmount const & | offerOut, |
| STAmount const & | offerIn | ||
| ) |
Definition at line 442 of file STAmount.cpp.
| STAmount ripple::amountFromQuality | ( | std::uint64_t | rate | ) |
Definition at line 769 of file STAmount.cpp.
| STAmount ripple::amountFromString | ( | Issue const & | issue, |
| std::string const & | amount | ||
| ) |
Definition at line 781 of file STAmount.cpp.
| STAmount ripple::amountFromJson | ( | SField const & | name, |
| Json::Value const & | v | ||
| ) |
Definition at line 846 of file STAmount.cpp.
| bool ripple::amountFromJsonNoThrow | ( | STAmount & | result, |
| Json::Value const & | jvSource | ||
| ) |
Definition at line 951 of file STAmount.cpp.
Definition at line 973 of file STAmount.cpp.
Definition at line 980 of file STAmount.cpp.
Definition at line 1015 of file STAmount.cpp.
|
static |
Definition at line 1038 of file STAmount.cpp.
|
static |
Definition at line 1059 of file STAmount.cpp.
Definition at line 1083 of file STAmount.cpp.
Definition at line 1128 of file STAmount.cpp.
|
static |
Definition at line 1184 of file STAmount.cpp.
| STAmount ripple::mulRound | ( | STAmount const & | v1, |
| STAmount const & | v2, | ||
| Issue const & | issue, | ||
| bool | roundUp | ||
| ) |
Definition at line 1219 of file STAmount.cpp.
| STAmount ripple::divRound | ( | STAmount const & | num, |
| STAmount const & | den, | ||
| Issue const & | issue, | ||
| bool | roundUp | ||
| ) |
Definition at line 1305 of file STAmount.cpp.
| std::ostream & ripple::operator<< | ( | std::ostream & | out, |
| const STBase & | t | ||
| ) |
Definition at line 135 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 | ||
| ) |
| 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 374 of file STAmount.h.
| bool ripple::isLegalNet | ( | STAmount const & | value | ) |
Definition at line 386 of file STAmount.h.
Definition at line 403 of file STAmount.h.
Definition at line 409 of file STAmount.h.
Definition at line 415 of file STAmount.h.
Definition at line 421 of file STAmount.h.
| bool ripple::isXRP | ( | STAmount const & | amount | ) |
Definition at line 470 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.
|
static |
Definition at line 54 of file SystemParameters.h.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
| std::pair< org::xrpl::rpc::v1::GetAccountInfoResponse, grpc::Status > ripple::doAccountInfoGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetAccountInfoRequest > & | context | ) |
Definition at line 227 of file AccountInfo.cpp.
| std::pair< org::xrpl::rpc::v1::GetFeeResponse, grpc::Status > ripple::doFeeGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetFeeRequest > & | context | ) |
| std::pair< org::xrpl::rpc::v1::SubmitTransactionResponse, grpc::Status > ripple::doSubmitGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::SubmitTransactionRequest > & | context | ) |
Definition at line 198 of file Submit.cpp.
| std::pair< org::xrpl::rpc::v1::GetTransactionResponse, grpc::Status > ripple::doTxGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetTransactionRequest > & | context | ) |
| std::pair< org::xrpl::rpc::v1::GetAccountTransactionHistoryResponse, grpc::Status > ripple::doAccountTxGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetAccountTransactionHistoryRequest > & | context | ) |
Definition at line 599 of file AccountTx.cpp.
| std::pair< org::xrpl::rpc::v1::GetLedgerResponse, grpc::Status > ripple::doLedgerGrpc | ( | RPC::GRPCContext< org::xrpl::rpc::v1::GetLedgerRequest > & | context | ) |
Definition at line 106 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 372 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 132 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 53 of file AccountInfo.cpp.
| void ripple::addLine | ( | Json::Value & | jsonLines, |
| RippleState const & | line | ||
| ) |
Definition at line 42 of file AccountLines.cpp.
| Json::Value ripple::doAccountLines | ( | RPC::JsonContext & | context | ) |
Definition at line 83 of file AccountLines.cpp.
| Json::Value ripple::doAccountObjects | ( | RPC::JsonContext & | context | ) |
General RPC command that can retrieve objects in the account root.
{ account: <account>|<account_public_key> 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 50 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>, grpc::Status> ripple::parseLedgerArgs | ( | org::xrpl::rpc::v1::GetAccountTransactionHistoryRequest const & | params | ) |
Definition at line 56 of file AccountTx.cpp.
| std::variant<std::optional<LedgerSpecifier>, Json::Value> ripple::parseLedgerArgs | ( | Json::Value const & | params | ) |
Definition at line 119 of file AccountTx.cpp.
| std::variant<LedgerRange, RPC::Status> ripple::getLedgerRange | ( | RPC::Context & | context, |
| std::optional< LedgerSpecifier > const & | ledgerSpecifier | ||
| ) |
Definition at line 184 of file AccountTx.cpp.
| std::pair<AccountTxResult, RPC::Status> ripple::doAccountTxHelp | ( | RPC::Context & | context, |
| AccountTxArgs const & | args | ||
| ) |
Definition at line 256 of file AccountTx.cpp.
| std::pair< org::xrpl::rpc::v1::GetAccountTransactionHistoryResponse, grpc::Status> ripple::populateProtoResponse | ( | std::pair< AccountTxResult, RPC::Status > const & | res, |
| AccountTxArgs const & | args, | ||
| RPC::GRPCContext< org::xrpl::rpc::v1::GetAccountTransactionHistoryRequest > const & | context | ||
| ) |
Definition at line 333 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 456 of file AccountTx.cpp.
| Json::Value ripple::doAccountTxJson | ( | RPC::JsonContext & | context | ) |
Definition at line 540 of file AccountTx.cpp.
| Json::Value ripple::doAccountTxOld | ( | RPC::JsonContext & | context | ) |
Definition at line 48 of file AccountTxOld.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 35 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 37 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 53 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 160 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 98 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 46 of file LedgerData.cpp.
| Json::Value ripple::doLedgerEntry | ( | RPC::JsonContext & | context | ) |
Definition at line 41 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 38 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::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 34 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 48 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 NoRippleCheck.cpp.
|
static |
Definition at line 36 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 | ||
| ) |
| std::pair<org::xrpl::rpc::v1::GetTransactionResponse, grpc::Status> ripple::populateProtoResponse | ( | std::pair< TxResult, RPC::Status > const & | res, |
| TxArgs const & | args, | ||
| RPC::GRPCContext< org::xrpl::rpc::v1::GetTransactionRequest > const & | context | ||
| ) |
| 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< beast::IP::Address > const & | adminIp | ||
| ) |
| 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 | ||
| ) |
| boost::string_view ripple::forwardedFor | ( | http_request_type const & | request | ) |
|
static |
Definition at line 56 of file ServerHandlerImp.cpp.
|
static |
Definition at line 64 of file ServerHandlerImp.cpp.
|
static |
Definition at line 84 of file ServerHandlerImp.cpp.
|
static |
Definition at line 236 of file ServerHandlerImp.cpp.
|
static |
Definition at line 244 of file ServerHandlerImp.cpp.
|
static |
Definition at line 260 of file ServerHandlerImp.cpp.
|
static |
Definition at line 550 of file ServerHandlerImp.cpp.
|
static |
Definition at line 1014 of file ServerHandlerImp.cpp.
|
static |
Definition at line 1065 of file ServerHandlerImp.cpp.
|
static |
Definition at line 1131 of file ServerHandlerImp.cpp.
|
static |
Definition at line 1155 of file ServerHandlerImp.cpp.
| ServerHandler::Setup ripple::setup_ServerHandler | ( | Config const & | config, |
| std::ostream && | log | ||
| ) |
Definition at line 1171 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 1183 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, |
| std::shared_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 29 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 | ||
| ) |
| 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.
| bool ripple::operator!= | ( | SHAMapHash const & | x, |
| SHAMapHash const & | y | ||
| ) |
Definition at line 122 of file SHAMapTreeNode.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 | ( | 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 | ( | 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 | ( | InnerObjectFormatsParsedJSON | , |
| ripple_app | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | Issue | , |
| protocol | , | ||
| ripple | |||
| ) |
| ripple::BEAST_DEFINE_TESTSUITE | ( | KnownFormatToGRPC | , |
| protocol | , | ||
| 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 72 of file InboundLedger.cpp.
|
staticconstexpr |
Definition at line 147 of file LedgerMaster.cpp.
|
staticconstexpr |
Definition at line 150 of file LedgerMaster.cpp.
|
staticconstexpr |
Definition at line 153 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 |
Definition at line 35 of file LedgerHistory.cpp.
|
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 827 of file NetworkOPs.cpp.
|
static |
Definition at line 840 of file NetworkOPs.cpp.
|
constexpr |
Definition at line 35 of file RelationalDBInterface_nodes.h.
|
static |
Definition at line 38 of file SetSignerList.cpp.
|
static |
Definition at line 31 of file IOUAmount.cpp.
|
static |
Definition at line 32 of file IOUAmount.cpp.
|
static |
Definition at line 34 of file IOUAmount.cpp.
|
static |
Definition at line 35 of file IOUAmount.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 113 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 415 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::retiredMultiSign = retireFeature("MultiSign") |
Definition at line 447 of file Feature.cpp.
| const uint256 ripple::retiredTrustSetAuth = retireFeature("TrustSetAuth") |
Definition at line 448 of file Feature.cpp.
| const uint256 ripple::retiredFeeEscalation = retireFeature("FeeEscalation") |
Definition at line 449 of file Feature.cpp.
| const uint256 ripple::retiredPayChan = retireFeature("PayChan") |
Definition at line 450 of file Feature.cpp.
| const uint256 ripple::retiredCryptoConditions = retireFeature("CryptoConditions") |
Definition at line 451 of file Feature.cpp.
| const uint256 ripple::retiredTickSize = retireFeature("TickSize") |
Definition at line 452 of file Feature.cpp.
| const uint256 ripple::retiredFix1368 = retireFeature("fix1368") |
Definition at line 453 of file Feature.cpp.
| const uint256 ripple::retiredEscrow = retireFeature("Escrow") |
Definition at line 454 of file Feature.cpp.
| const uint256 ripple::retiredFix1373 = retireFeature("fix1373") |
Definition at line 455 of file Feature.cpp.
| const uint256 ripple::retiredEnforceInvariants = retireFeature("EnforceInvariants") |
Definition at line 456 of file Feature.cpp.
| const uint256 ripple::retiredSortedDirectories = retireFeature("SortedDirectories") |
Definition at line 457 of file Feature.cpp.
| const uint256 ripple::retiredFix1201 = retireFeature("fix1201") |
Definition at line 458 of file Feature.cpp.
| const uint256 ripple::retiredFix1512 = retireFeature("fix1512") |
Definition at line 459 of file Feature.cpp.
| const uint256 ripple::retiredFix1523 = retireFeature("fix1523") |
Definition at line 460 of file Feature.cpp.
| const uint256 ripple::retiredFix1528 = retireFeature("fix1528") |
Definition at line 461 of file Feature.cpp.
|
static |
Definition at line 476 of file Feature.cpp.
| const Rate ripple::parityRate |
|
static |
Definition at line 39 of file SField.cpp.
| const SField ripple::sfHash(access, STI_HASH256, 257, "hash") |
| const SField ripple::sfIndex(access, STI_HASH256, 258, "index") |
| LocalValue< bool > ripple::stAmountCanonicalizeSwitchover |
Definition at line 479 of file STAmount.h.
|
static |
Definition at line 39 of file STAmount.cpp.
|
static |
Definition at line 40 of file STAmount.cpp.
|
static |
Definition at line 41 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, types, and data.
This information is, implicitly, part of the Ripple protocol.
Definition at line 39 of file Protocol.h.
|
constexpr |
Largest legal byte size of a transaction.
Definition at line 42 of file Protocol.h.
|
constexpr |
The maximum number of unfunded offers to delete at once.
Definition at line 45 of file Protocol.h.
|
constexpr |
The maximum number of metadata entries allowed in one transaction.
Definition at line 48 of file Protocol.h.
|
constexpr |
The maximum number of entries per directory page.
Definition at line 51 of file Protocol.h.
|
constexpr |
The maximum number of pages allowed in a directory.
Definition at line 54 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_UINT16 ripple::sfLedgerEntryType |
| const SF_UINT16 ripple::sfTransactionType |
| const SF_UINT16 ripple::sfSignerWeight |
| const SF_UINT16 ripple::sfVersion |
| 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_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_HASH128 ripple::sfEmailHash |
| const SF_HASH160 ripple::sfTakerPaysCurrency |
| const SF_HASH160 ripple::sfTakerPaysIssuer |
| const SF_HASH160 ripple::sfTakerGetsCurrency |
| const SF_HASH160 ripple::sfTakerGetsIssuer |
| const SF_HASH256 ripple::sfLedgerHash |
| const SF_HASH256 ripple::sfParentHash |
| const SF_HASH256 ripple::sfTransactionHash |
| const SF_HASH256 ripple::sfAccountHash |
| const SF_HASH256 ripple::sfPreviousTxnID |
| const SF_HASH256 ripple::sfLedgerIndex |
| const SF_HASH256 ripple::sfWalletLocator |
| const SF_HASH256 ripple::sfRootIndex |
| const SF_HASH256 ripple::sfAccountTxnID |
| const SF_HASH256 ripple::sfBookDirectory |
| const SF_HASH256 ripple::sfInvoiceID |
| const SF_HASH256 ripple::sfNickname |
| const SF_HASH256 ripple::sfAmendment |
| const SF_HASH256 ripple::sfDigest |
| const SF_HASH256 ripple::sfChannel |
| const SF_HASH256 ripple::sfConsensusHash |
| const SF_HASH256 ripple::sfCheckID |
| const SF_HASH256 ripple::sfValidatedHash |
| 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_VL ripple::sfPublicKey |
| const SF_VL ripple::sfMessageKey |
| const SF_VL ripple::sfSigningPubKey |
| const SF_VL ripple::sfTxnSignature |
| 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_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::sfTarget |
| const SF_ACCOUNT ripple::sfRegularKey |
| const SField ripple::sfPaths |
| const SF_VECTOR256 ripple::sfIndexes |
| const SF_VECTOR256 ripple::sfHashes |
| const SF_VECTOR256 ripple::sfAmendments |
| 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::sfSigner |
| const SField ripple::sfMajority |
| const SField ripple::sfDisabledValidator |
| 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::sfMajorities |
| const SField ripple::sfDisabledValidators |
|
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 61 of file SystemParameters.h.
|
staticconstexpr |
The number of ledgers in a shard.
Definition at line 64 of file SystemParameters.h.
|
constexpr |
The minimum amount of support an amendment should have.
Definition at line 71 of file SystemParameters.h.
|
constexpr |
Definition at line 73 of file SystemParameters.h.
|
constexpr |
The minimum amount of time an amendment must hold a majority.
Definition at line 76 of file SystemParameters.h.
| const std::uint32_t ripple::tfFullyCanonicalSig = 0x80000000 |
| const std::uint32_t ripple::tfUniversal = tfFullyCanonicalSig |
| const std::uint32_t ripple::tfUniversalMask = ~tfUniversal |
| const std::uint32_t ripple::tfOptionalDestTag = 0x00020000 |
| const std::uint32_t ripple::tfRequireAuth = 0x00040000 |
| const std::uint32_t ripple::tfOptionalAuth = 0x00080000 |
| const std::uint32_t ripple::tfDisallowXRP = 0x00100000 |
| const std::uint32_t ripple::tfAllowXRP = 0x00200000 |
| const std::uint32_t ripple::tfAccountSetMask |
| const std::uint32_t ripple::asfRequireDest = 1 |
| const std::uint32_t ripple::asfRequireAuth = 2 |
| const std::uint32_t ripple::asfDisallowXRP = 3 |
| const std::uint32_t ripple::asfDisableMaster = 4 |
| const std::uint32_t ripple::asfAccountTxnID = 5 |
| const std::uint32_t ripple::asfNoFreeze = 6 |
| const std::uint32_t ripple::asfGlobalFreeze = 7 |
| const std::uint32_t ripple::asfDefaultRipple = 8 |
| const std::uint32_t ripple::asfDepositAuth = 9 |
| const std::uint32_t ripple::tfPassive = 0x00010000 |
| const std::uint32_t ripple::tfImmediateOrCancel = 0x00020000 |
| const std::uint32_t ripple::tfFillOrKill = 0x00040000 |
| const std::uint32_t ripple::tfSell = 0x00080000 |
| const std::uint32_t ripple::tfOfferCreateMask |
| const std::uint32_t ripple::tfNoRippleDirect = 0x00010000 |
| const std::uint32_t ripple::tfPartialPayment = 0x00020000 |
| const std::uint32_t ripple::tfLimitQuality = 0x00040000 |
| const std::uint32_t ripple::tfPaymentMask |
| const std::uint32_t ripple::tfSetfAuth = 0x00010000 |
| const std::uint32_t ripple::tfSetNoRipple = 0x00020000 |
| const std::uint32_t ripple::tfClearNoRipple = 0x00040000 |
| const std::uint32_t ripple::tfSetFreeze = 0x00100000 |
| const std::uint32_t ripple::tfClearFreeze = 0x00200000 |
| const std::uint32_t ripple::tfTrustSetMask |
| const std::uint32_t ripple::tfGotMajority = 0x00010000 |
| const std::uint32_t ripple::tfLostMajority = 0x00020000 |
| const std::uint32_t ripple::tfRenew = 0x00010000 |
| const std::uint32_t ripple::tfClose = 0x00020000 |
| const std::uint32_t ripple::tfPayChanClaimMask = ~(tfUniversal | tfRenew | tfClose) |
|
constexpr |
Definition at line 560 of file ServerHandlerImp.cpp.
|
constexpr |
Definition at line 561 of file ServerHandlerImp.cpp.
|
constexpr |
Definition at line 562 of file ServerHandlerImp.cpp.
|
constexpr |
Definition at line 563 of file ServerHandlerImp.cpp.
|
static |
Definition at line 479 of file SHAMap.cpp.
|
staticconstexpr |
Definition at line 39 of file SHAMapTreeNode.h.
|
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.
1.8.17