|
xrpld
|
#include <LedgerReplayTask.h>

Public Member Functions | |
| TaskParameter (InboundLedger::Reason r, uint256 const &finishLedgerHash, std::uint32_t totalNumLedgers) | |
| constructor | |
| bool | update (uint256 const &hash, std::uint32_t seq, std::vector< uint256 > const &sList) |
| fill all the fields that was not filled during construction | |
| bool | canMergeInto (TaskParameter const &existingTask) const |
| check if this task can be merged into an existing task | |
Public Attributes | |
| InboundLedger::Reason | reason |
| uint256 | finishHash |
| std::uint32_t | totalLedgers |
| std::uint32_t | finishSeq = 0 |
| std::vector< uint256 > | skipList |
| uint256 | startHash |
| std::uint32_t | startSeq = 0 |
| bool | full = false |
Definition at line 24 of file LedgerReplayTask.h.
| xrpl::LedgerReplayTask::TaskParameter::TaskParameter | ( | InboundLedger::Reason | r, |
| uint256 const & | finishLedgerHash, | ||
| std::uint32_t | totalNumLedgers ) |
constructor
| r | the reason of the task |
| finishLedgerHash | hash of the last ledger in the range |
| totalNumLedgers | number of ledgers to download |
Definition at line 24 of file LedgerReplayTask.cpp.
| bool xrpl::LedgerReplayTask::TaskParameter::update | ( | uint256 const & | hash, |
| std::uint32_t | seq, | ||
| std::vector< uint256 > const & | sList ) |
fill all the fields that was not filled during construction
| hash | hash of the ledger that has the skip list |
| seq | sequence number of the ledger that has the skip list |
| sList | skip list |
Definition at line 37 of file LedgerReplayTask.cpp.
|
nodiscard |
check if this task can be merged into an existing task
Definition at line 58 of file LedgerReplayTask.cpp.
| InboundLedger::Reason xrpl::LedgerReplayTask::TaskParameter::reason |
Definition at line 28 of file LedgerReplayTask.h.
| uint256 xrpl::LedgerReplayTask::TaskParameter::finishHash |
Definition at line 29 of file LedgerReplayTask.h.
| std::uint32_t xrpl::LedgerReplayTask::TaskParameter::totalLedgers |
Definition at line 30 of file LedgerReplayTask.h.
| std::uint32_t xrpl::LedgerReplayTask::TaskParameter::finishSeq = 0 |
Definition at line 33 of file LedgerReplayTask.h.
| std::vector<uint256> xrpl::LedgerReplayTask::TaskParameter::skipList |
Definition at line 34 of file LedgerReplayTask.h.
| uint256 xrpl::LedgerReplayTask::TaskParameter::startHash |
Definition at line 35 of file LedgerReplayTask.h.
| std::uint32_t xrpl::LedgerReplayTask::TaskParameter::startSeq = 0 |
Definition at line 36 of file LedgerReplayTask.h.
| bool xrpl::LedgerReplayTask::TaskParameter::full = false |
Definition at line 37 of file LedgerReplayTask.h.