From ba7b5f330851d48fe29fa273ba0520d43ef00415 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 21 Feb 2017 19:28:17 -0700 Subject: [PATCH] Use NBytes() instead of Bytes() in CFIndex --- blockchain/indexers/cfindex.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blockchain/indexers/cfindex.go b/blockchain/indexers/cfindex.go index d9beb637..bf533a3a 100644 --- a/blockchain/indexers/cfindex.go +++ b/blockchain/indexers/cfindex.go @@ -175,7 +175,7 @@ func makeBasicFilterForBlock(block *btcutil.Block) ([]byte, error) { if err != nil { return nil, err } - return f.Bytes(), nil + return f.NBytes(), nil } // makeExtendedFilterForBlock builds a block's extended filter, which consists @@ -199,7 +199,7 @@ func makeExtendedFilterForBlock(block *btcutil.Block) ([]byte, error) { if err != nil { return nil, err } - return f.Bytes(), nil + return f.NBytes(), nil } // makeHeaderForFilter implements the chaining logic between filters, where