MCPcopy Create free account
hub / github.com/LUX-Core/lux / EvaluateSequenceLocks

Function EvaluateSequenceLocks

src/consensus/validation.cpp:139–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139static bool EvaluateSequenceLocks(const CBlockIndex& block, std::pair<int, int64_t> lockPair)
140{
141 assert(block.pprev);
142 int64_t nBlockTime = block.pprev->GetMedianTimePast();
143 if (lockPair.first >= block.nHeight || lockPair.second >= nBlockTime)
144 return false;
145
146 return true;
147}
148
149bool SequenceLocks(const CTransaction &tx, int flags, std::vector<int>* prevHeights, const CBlockIndex& block)
150{

Callers 2

SequenceLocksFunction · 0.85
CheckSequenceLocksFunction · 0.85

Calls 1

GetMedianTimePastMethod · 0.80

Tested by

no test coverage detected