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

Function scriptpubkey_watch_eq

plugins/bwatch/bwatch_store.c:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24bool scriptpubkey_watch_eq(const struct watch *w, const struct scriptpubkey *scriptpubkey)
25{
26 return w->key.scriptpubkey.len == scriptpubkey->len &&
27 memeq(w->key.scriptpubkey.script, scriptpubkey->len,
28 scriptpubkey->script, scriptpubkey->len);
29}
30
31const struct bitcoin_outpoint *outpoint_watch_keyof(const struct watch *w)
32{

Callers

nothing calls this directly

Calls 1

memeqFunction · 0.85

Tested by

no test coverage detected