diff --git a/lightningd/txfilter.c b/lightningd/txfilter.c index 117e877d2..77997023b 100644 --- a/lightningd/txfilter.c +++ b/lightningd/txfilter.c @@ -17,7 +17,7 @@ struct txfilter *txfilter_new(const tal_t *ctx) return filter; } -static void txfilter_add_scriptpubkey(struct txfilter *filter, u8 *script) +void txfilter_add_scriptpubkey(struct txfilter *filter, u8 *script) { size_t count = tal_count(filter->scriptpubkeys); tal_resize(&filter->scriptpubkeys, count + 1); diff --git a/lightningd/txfilter.h b/lightningd/txfilter.h index 9dc14ea97..a30f0f76a 100644 --- a/lightningd/txfilter.h +++ b/lightningd/txfilter.h @@ -28,4 +28,9 @@ void txfilter_add_derkey(struct txfilter *filter, u8 derkey[PUBKEY_DER_LEN]); */ bool txfilter_match(const struct txfilter *filter, const struct bitcoin_tx *tx); +/** + * txfilter_add_scriptpubkey -- Add a serialized scriptpubkey to the filter + */ +void txfilter_add_scriptpubkey(struct txfilter *filter, u8 *script); + #endif /* LIGHTNING_LIGHTNINGD_TXFILTER_H */