From e9846ad579c130d87867ed6f01ef73f5e7ace705 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 9 Aug 2022 15:08:29 +1000 Subject: [PATCH] Improve docs on filter_header --- src/util/bip158.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/bip158.rs b/src/util/bip158.rs index b38b9680..ef102ce6 100644 --- a/src/util/bip158.rs +++ b/src/util/bip158.rs @@ -135,7 +135,9 @@ impl BlockFilter { Ok(BlockFilter { content: out }) } - /// compute this filter's id in a chain of filters + /// Computes this filter's ID in a chain of filters (see [BIP 157]). + /// + /// [BIP 157]: pub fn filter_header(&self, previous_filter_header: &FilterHeader) -> FilterHeader { let filter_hash = FilterHash::hash(self.content.as_slice()); filter_hash.filter_header(previous_filter_header)