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

Function sha256_varint

bitcoin/block.c:55–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

bitcoin_block_from_hexFunction · 0.85

Calls 2

varint_putFunction · 0.85
sha256_updateFunction · 0.85

Tested by

no test coverage detected