MCPcopy Create free account
hub / github.com/ElementsProject/lightning / sha256_varint

Function sha256_varint

bitcoin/block.c:56–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55
56static void sha256_varint(struct sha256_ctx *ctx, u64 val)
57{
58 u8 vt[VARINT_MAX_LEN];
59 size_t vtlen;
60 vtlen = varint_put(vt, val);
61 sha256_update(ctx, vt, vtlen);
62}
63
64static void bitcoin_block_pull_dynafed_params(const u8 **cursor, size_t *len, struct sha256_ctx *shactx)
65{

Callers 2

bitcoin_block_from_hexFunction · 0.85

Calls 2

varint_putFunction · 0.85
sha256_updateFunction · 0.85

Tested by

no test coverage detected