| 137 | } |
| 138 | |
| 139 | static 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 | |
| 149 | bool SequenceLocks(const CTransaction &tx, int flags, std::vector<int>* prevHeights, const CBlockIndex& block) |
| 150 | { |
no test coverage detected