|
rippled
|


Classes | |
| struct | ServerFeeSummary |
Server fees published on server subscription. More... | |
| class | StateAccounting |
| State accounting records two attributes for each possible server state: 1) Amount of time spent in each state (in microseconds). More... | |
| struct | Stats |
| struct | SubAccountHistoryIndex |
| struct | SubAccountHistoryInfo |
| struct | SubAccountHistoryInfoWeak |
| class | TransactionStatus |
| Transaction with input flags and results to be applied in batches. More... | |
Public Types | |
| enum class | FailHard : unsigned char { no , yes } |
| using | clock_type = beast::abstract_clock< std::chrono::steady_clock > |
Public Member Functions | |
| NetworkOPsImp (Application &app, NetworkOPs::clock_type &clock, bool standalone, std::size_t minPeerCount, bool start_valid, JobQueue &job_queue, LedgerMaster &ledgerMaster, ValidatorKeys const &validatorKeys, boost::asio::io_service &io_svc, beast::Journal journal, beast::insight::Collector::ptr const &collector) | |
| ~NetworkOPsImp () override | |
| OperatingMode | getOperatingMode () const override |
| std::string | strOperatingMode (OperatingMode const mode, bool const admin) const override |
| std::string | strOperatingMode (bool const admin=false) const override |
| void | submitTransaction (std::shared_ptr< STTx const > const &) override |
| void | processTransaction (std::shared_ptr< Transaction > &transaction, bool bUnlimited, bool bLocal, FailHard failType) override |
| Process transactions as they arrive from the network or which are submitted by clients. More... | |
| void | doTransactionSync (std::shared_ptr< Transaction > transaction, bool bUnlimited, FailHard failType) |
| For transactions submitted directly by a client, apply batch of transactions and wait for this transaction to complete. More... | |
| void | doTransactionAsync (std::shared_ptr< Transaction > transaction, bool bUnlimited, FailHard failtype) |
| For transactions not submitted by a locally connected client, fire and forget. More... | |
| void | transactionBatch () |
| Apply transactions in batches. More... | |
| void | apply (std::unique_lock< std::mutex > &batchLock) |
| Attempt to apply transactions and post-process based on the results. More... | |
| Json::Value | getOwnerInfo (std::shared_ptr< ReadView const > lpLedger, AccountID const &account) override |
| void | getBookPage (std::shared_ptr< ReadView const > &lpLedger, Book const &, AccountID const &uTakerID, const bool bProof, unsigned int iLimit, Json::Value const &jvMarker, Json::Value &jvResult) override |
| bool | processTrustedProposal (RCLCxPeerPos proposal) override |
| bool | recvValidation (std::shared_ptr< STValidation > const &val, std::string const &source) override |
| void | mapComplete (std::shared_ptr< SHAMap > const &map, bool fromAcquire) override |
| bool | beginConsensus (uint256 const &networkClosed) override |
| void | endConsensus () override |
| void | setStandAlone () override |
| void | setStateTimer () override |
| Called to initially start our timers. More... | |
| void | setNeedNetworkLedger () override |
| void | clearNeedNetworkLedger () override |
| bool | isNeedNetworkLedger () override |
| bool | isFull () override |
| void | setMode (OperatingMode om) override |
| bool | isBlocked () override |
| bool | isAmendmentBlocked () override |
| void | setAmendmentBlocked () override |
| bool | isAmendmentWarned () override |
| void | setAmendmentWarned () override |
| void | clearAmendmentWarned () override |
| bool | isUNLBlocked () override |
| void | setUNLBlocked () override |
| void | clearUNLBlocked () override |
| void | consensusViewChange () override |
| Json::Value | getConsensusInfo () override |
| Json::Value | getServerInfo (bool human, bool admin, bool counters) override |
| void | clearLedgerFetch () override |
| Json::Value | getLedgerFetchInfo () override |
| std::uint32_t | acceptLedger (std::optional< std::chrono::milliseconds > consensusDelay) override |
| Accepts the current transaction tree, return the new ledger's sequence. More... | |
| void | reportFeeChange () override |
| void | reportConsensusStateChange (ConsensusPhase phase) |
| void | updateLocalTx (ReadView const &view) override |
| std::size_t | getLocalTxCount () override |
| void | pubLedger (std::shared_ptr< ReadView const > const &lpAccepted) override |
| void | pubProposedTransaction (std::shared_ptr< ReadView const > const &ledger, std::shared_ptr< STTx const > const &transaction, TER result) override |
| void | pubValidation (std::shared_ptr< STValidation > const &val) override |
| void | subAccount (InfoSub::ref ispListener, hash_set< AccountID > const &vnaAccountIDs, bool rt) override |
| void | unsubAccount (InfoSub::ref ispListener, hash_set< AccountID > const &vnaAccountIDs, bool rt) override |
| void | unsubAccountInternal (std::uint64_t seq, hash_set< AccountID > const &vnaAccountIDs, bool rt) override |
| error_code_i | subAccountHistory (InfoSub::ref ispListener, AccountID const &account) override |
| subscribe an account's new transactions and retrieve the account's historical transactions More... | |
| void | unsubAccountHistory (InfoSub::ref ispListener, AccountID const &account, bool historyOnly) override |
| unsubscribe an account's transactions More... | |
| void | unsubAccountHistoryInternal (std::uint64_t seq, AccountID const &account, bool historyOnly) override |
| bool | subLedger (InfoSub::ref ispListener, Json::Value &jvResult) override |
| bool | unsubLedger (std::uint64_t uListener) override |
| bool | subBookChanges (InfoSub::ref ispListener) override |
| bool | unsubBookChanges (std::uint64_t uListener) override |
| bool | subServer (InfoSub::ref ispListener, Json::Value &jvResult, bool admin) override |
| bool | unsubServer (std::uint64_t uListener) override |
| bool | subBook (InfoSub::ref ispListener, Book const &) override |
| bool | unsubBook (std::uint64_t uListener, Book const &) override |
| bool | subManifests (InfoSub::ref ispListener) override |
| bool | unsubManifests (std::uint64_t uListener) override |
| void | pubManifest (Manifest const &) override |
| bool | subTransactions (InfoSub::ref ispListener) override |
| bool | unsubTransactions (std::uint64_t uListener) override |
| bool | subRTTransactions (InfoSub::ref ispListener) override |
| bool | unsubRTTransactions (std::uint64_t uListener) override |
| bool | subValidations (InfoSub::ref ispListener) override |
| bool | unsubValidations (std::uint64_t uListener) override |
| bool | subPeerStatus (InfoSub::ref ispListener) override |
| bool | unsubPeerStatus (std::uint64_t uListener) override |
| void | pubPeerStatus (std::function< Json::Value(void)> const &) override |
| bool | subConsensus (InfoSub::ref ispListener) override |
| bool | unsubConsensus (std::uint64_t uListener) override |
| InfoSub::pointer | findRpcSub (std::string const &strUrl) override |
| InfoSub::pointer | addRpcSub (std::string const &strUrl, InfoSub::ref) override |
| bool | tryRemoveRpcSub (std::string const &strUrl) override |
| void | stop () override |
| void | stateAccounting (Json::Value &obj) override |
Static Public Member Functions | |
| static FailHard | doFailHard (bool noMeansDont) |
Private Types | |
| enum class | DispatchState : unsigned char { none , scheduled , running } |
| Synchronization states for transaction batches. More... | |
| enum | SubTypes { sLedger , sManifests , sServer , sTransactions , sRTTransactions , sValidations , sPeerStatus , sConsensusPhase , sBookChanges , sLastEntry } |
| using | SubMapType = hash_map< std::uint64_t, InfoSub::wptr > |
| using | SubInfoMapType = hash_map< AccountID, SubMapType > |
| using | subRpcMapType = hash_map< std::string, InfoSub::pointer > |
| using | SubAccountHistoryMapType = hash_map< AccountID, hash_map< std::uint64_t, SubAccountHistoryInfoWeak > > |
Static Private Attributes | |
| static std::array< char const *, 5 > const | states_ = stateNames |
Definition at line 85 of file NetworkOPs.cpp.
|
private |
Definition at line 653 of file NetworkOPs.cpp.
|
private |
Definition at line 654 of file NetworkOPs.cpp.
|
private |
Definition at line 655 of file NetworkOPs.cpp.
|
private |
Definition at line 699 of file NetworkOPs.cpp.
|
inherited |
Definition at line 89 of file NetworkOPs.h.
|
strongprivate |
Synchronization states for transaction batches.
| Enumerator | |
|---|---|
| none | |
| scheduled | |
| running | |
Definition at line 118 of file NetworkOPs.cpp.
|
private |
| Enumerator | |
|---|---|
| sLedger | |
| sManifests | |
| sServer | |
| sTransactions | |
| sRTTransactions | |
| sValidations | |
| sPeerStatus | |
| sConsensusPhase | |
| sBookChanges | |
| sLastEntry | |
Definition at line 746 of file NetworkOPs.cpp.
|
stronginherited |
| Enumerator | |
|---|---|
| no | |
| yes | |
Definition at line 91 of file NetworkOPs.h.
| ripple::NetworkOPsImp::NetworkOPsImp | ( | Application & | app, |
| NetworkOPs::clock_type & | clock, | ||
| bool | standalone, | ||
| std::size_t | minPeerCount, | ||
| bool | start_valid, | ||
| 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 224 of file NetworkOPs.cpp.
|
override |
Definition at line 262 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 863 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1115 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 869 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1135 of file NetworkOPs.cpp.
|
overridevirtual |
Process transactions as they arrive from the network or which are submitted by clients.
Process local transactions synchronously
| transaction | Transaction object |
| bUnlimited | Whether a privileged client connection submitted it. |
| bLocal | Client submission. |
| failType | fail_hard setting from transaction submission. |
Implements ripple::NetworkOPs.
Definition at line 1189 of file NetworkOPs.cpp.
| void ripple::NetworkOPsImp::doTransactionSync | ( | std::shared_ptr< Transaction > | transaction, |
| bool | bUnlimited, | ||
| FailHard | failType | ||
| ) |
For transactions submitted directly by a client, apply batch of transactions and wait for this transaction to complete.
| transaction | Transaction object. |
| bUnliimited | Whether a privileged client connection submitted it. |
| failType | fail_hard setting from transaction submission. |
Definition at line 1265 of file NetworkOPs.cpp.
| void ripple::NetworkOPsImp::doTransactionAsync | ( | std::shared_ptr< Transaction > | transaction, |
| bool | bUnlimited, | ||
| FailHard | failtype | ||
| ) |
For transactions not submitted by a locally connected client, fire and forget.
Add to batch and trigger it to be processed if there's no batch currently being applied.
| transaction | Transaction object |
| bUnlimited | Whether a privileged client connection submitted it. |
| failType | fail_hard setting from transaction submission. |
Definition at line 1240 of file NetworkOPs.cpp.
| void ripple::NetworkOPsImp::transactionBatch | ( | ) |
Apply transactions in batches.
Continue until none are queued.
Definition at line 1305 of file NetworkOPs.cpp.
| void ripple::NetworkOPsImp::apply | ( | std::unique_lock< std::mutex > & | batchLock | ) |
Attempt to apply transactions and post-process based on the results.
| Lock | that protects the transaction batching |
Definition at line 1319 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1530 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 4155 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1888 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 2320 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1894 of file NetworkOPs.cpp.
|
private |
Definition at line 1764 of file NetworkOPs.cpp.
|
private |
Definition at line 1658 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1818 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1913 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 875 of file NetworkOPs.cpp.
|
overridevirtual |
Called to initially start our timers.
Not called for stand-alone mode.
Implements ripple::NetworkOPs.
Definition at line 924 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 881 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 887 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 893 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 899 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 2291 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1602 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1608 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1614 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1621 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1627 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1633 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1639 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1645 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1652 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 1969 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 2379 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 2385 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 2790 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 2796 of file NetworkOPs.cpp.
|
overridevirtual |
Accepts the current transaction tree, return the new ledger's sequence.
This API is only used via RPC with the server in STANDALONE mode and performs a virtual consensus round, with all the transactions we are proposing being accepted.
Implements ripple::NetworkOPs.
Definition at line 3879 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 2951 of file NetworkOPs.cpp.
| void ripple::NetworkOPsImp::reportConsensusStateChange | ( | ConsensusPhase | phase | ) |
Definition at line 2969 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 2978 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 2983 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 2836 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 2802 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 2152 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 3355 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 3392 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 3408 of file NetworkOPs.cpp.
|
overridevirtual |
subscribe an account's new transactions and retrieve the account's historical transactions
Implements ripple::InfoSub::Source.
Definition at line 3772 of file NetworkOPs.cpp.
|
overridevirtual |
unsubscribe an account's transactions
| historyOnly | if true, only stop historical transactions |
Implements ripple::InfoSub::Source.
Definition at line 3818 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 3829 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 3900 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 3940 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 3930 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 3948 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 3974 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4004 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 3860 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 3870 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 3956 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 3966 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 1978 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4012 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4022 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4030 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4040 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4048 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4064 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4072 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4082 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 2262 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4090 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4100 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4107 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4120 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::InfoSub::Source.
Definition at line 4130 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 564 of file NetworkOPs.cpp.
|
overridevirtual |
Implements ripple::NetworkOPs.
Definition at line 4057 of file NetworkOPs.cpp.
|
private |
Definition at line 934 of file NetworkOPs.cpp.
|
private |
Definition at line 966 of file NetworkOPs.cpp.
|
private |
Definition at line 980 of file NetworkOPs.cpp.
|
private |
Definition at line 1009 of file NetworkOPs.cpp.
|
private |
Definition at line 1067 of file NetworkOPs.cpp.
|
private |
Definition at line 2991 of file NetworkOPs.cpp.
|
private |
Definition at line 3086 of file NetworkOPs.cpp.
|
private |
Definition at line 3142 of file NetworkOPs.cpp.
|
private |
Definition at line 3276 of file NetworkOPs.cpp.
|
private |
Definition at line 2057 of file NetworkOPs.cpp.
|
private |
Definition at line 2125 of file NetworkOPs.cpp.
|
private |
Definition at line 905 of file NetworkOPs.cpp.
|
private |
Definition at line 3726 of file NetworkOPs.cpp.
|
private |
Definition at line 3436 of file NetworkOPs.cpp.
|
private |
Definition at line 996 of file NetworkOPs.cpp.
|
private |
Definition at line 4495 of file NetworkOPs.cpp.
|
staticinherited |
Definition at line 93 of file NetworkOPs.h.
|
staticprivate |
Definition at line 124 of file NetworkOPs.cpp.
|
private |
Definition at line 714 of file NetworkOPs.cpp.
|
private |
Definition at line 715 of file NetworkOPs.cpp.
|
private |
Definition at line 717 of file NetworkOPs.cpp.
|
private |
Definition at line 719 of file NetworkOPs.cpp.
|
private |
Definition at line 721 of file NetworkOPs.cpp.
|
private |
Definition at line 723 of file NetworkOPs.cpp.
|
private |
Definition at line 724 of file NetworkOPs.cpp.
|
private |
Definition at line 725 of file NetworkOPs.cpp.
|
private |
Definition at line 726 of file NetworkOPs.cpp.
|
private |
Definition at line 728 of file NetworkOPs.cpp.
|
private |
Definition at line 729 of file NetworkOPs.cpp.
|
private |
Definition at line 730 of file NetworkOPs.cpp.
|
private |
Definition at line 731 of file NetworkOPs.cpp.
|
private |
Definition at line 733 of file NetworkOPs.cpp.
|
private |
Definition at line 735 of file NetworkOPs.cpp.
|
private |
Definition at line 737 of file NetworkOPs.cpp.
|
private |
Definition at line 739 of file NetworkOPs.cpp.
|
private |
Definition at line 740 of file NetworkOPs.cpp.
|
private |
Definition at line 742 of file NetworkOPs.cpp.
|
private |
Definition at line 744 of file NetworkOPs.cpp.
|
private |
Definition at line 759 of file NetworkOPs.cpp.
|
private |
Definition at line 761 of file NetworkOPs.cpp.
|
private |
Definition at line 763 of file NetworkOPs.cpp.
|
private |
Definition at line 766 of file NetworkOPs.cpp.
|
private |
Definition at line 769 of file NetworkOPs.cpp.
|
private |
Definition at line 772 of file NetworkOPs.cpp.
|
private |
Definition at line 773 of file NetworkOPs.cpp.
|
private |
Definition at line 774 of file NetworkOPs.cpp.
|
private |
Definition at line 775 of file NetworkOPs.cpp.
|
private |
Definition at line 777 of file NetworkOPs.cpp.
Definition at line 779 of file NetworkOPs.cpp.
|
private |
Definition at line 780 of file NetworkOPs.cpp.
|
private |
Definition at line 834 of file NetworkOPs.cpp.
|
private |
Definition at line 835 of file NetworkOPs.cpp.