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

Function prevOutpoint

src/simplicity/bitcoin/bitcoinJets.c:31–34  ·  view source on GitHub ↗

Write an outpoint value to the 'dst' frame, advancing the cursor 288 cells. * * Precondition: '*dst' is a valid write frame for 288 more cells; * NULL != op; */

Source from the content-addressed store, hash-verified

29 * NULL != op;
30 */
31static void prevOutpoint(frameItem* dst, const outpoint* op) {
32 writeHash(dst, &op->txid);
33 simplicity_write32(dst, op->ix);
34}
35
36static uint_fast32_t lockHeight(const bitcoinTransaction* tx) {
37 return !tx->isFinal && tx->lockTime < 500000000U ? tx->lockTime : 0;

Calls 1

writeHashFunction · 0.70

Tested by

no test coverage detected