rippled
|
Public Member Functions | |
TaskParameter (InboundLedger::Reason r, uint256 const &finishLedgerHash, std::uint32_t totalNumLedgers) | |
constructor More... | |
bool | update (uint256 const &hash, std::uint32_t seq, std::vector< uint256 > const &sList) |
fill all the fields that was not filled during construction More... | |
bool | canMergeInto (TaskParameter const &existingTask) const |
check if this task can be merged into an existing task More... | |
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 46 of file LedgerReplayTask.h.
ripple::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 29 of file LedgerReplayTask.cpp.
bool ripple::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 39 of file LedgerReplayTask.cpp.
bool ripple::LedgerReplayTask::TaskParameter::canMergeInto | ( | TaskParameter const & | existingTask | ) | const |
check if this task can be merged into an existing task
Definition at line 58 of file LedgerReplayTask.cpp.
InboundLedger::Reason ripple::LedgerReplayTask::TaskParameter::reason_ |
Definition at line 50 of file LedgerReplayTask.h.
uint256 ripple::LedgerReplayTask::TaskParameter::finishHash_ |
Definition at line 51 of file LedgerReplayTask.h.
std::uint32_t ripple::LedgerReplayTask::TaskParameter::totalLedgers_ |
Definition at line 52 of file LedgerReplayTask.h.
std::uint32_t ripple::LedgerReplayTask::TaskParameter::finishSeq_ = 0 |
Definition at line 55 of file LedgerReplayTask.h.
std::vector<uint256> ripple::LedgerReplayTask::TaskParameter::skipList_ = {} |
Definition at line 56 of file LedgerReplayTask.h.
uint256 ripple::LedgerReplayTask::TaskParameter::startHash_ = {} |
Definition at line 57 of file LedgerReplayTask.h.
std::uint32_t ripple::LedgerReplayTask::TaskParameter::startSeq_ = 0 |
Definition at line 58 of file LedgerReplayTask.h.
bool ripple::LedgerReplayTask::TaskParameter::full_ = false |
Definition at line 59 of file LedgerReplayTask.h.