| 22 | } |
| 23 | |
| 24 | bool 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 | |
| 31 | const struct bitcoin_outpoint *outpoint_watch_keyof(const struct watch *w) |
| 32 | { |