MCPcopy Create free account
hub / github.com/ElementsProject/elements / EvaluateSequenceLocks

Function EvaluateSequenceLocks

src/consensus/tx_verify.cpp:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107bool EvaluateSequenceLocks(const CBlockIndex& block, std::pair<int, int64_t> lockPair)
108{
109 assert(block.pprev);
110 int64_t nBlockTime = block.pprev->GetMedianTimePast();
111 if (lockPair.first >= block.nHeight || lockPair.second >= nBlockTime)
112 return false;
113
114 return true;
115}
116
117bool SequenceLocks(const CTransaction &tx, int flags, std::vector<int>& prevHeights, const CBlockIndex& block)
118{

Callers 2

CheckSequenceLocksFunction · 0.85
SequenceLocksFunction · 0.85

Calls 1

GetMedianTimePastMethod · 0.80

Tested by

no test coverage detected