Use NBytes() instead of Bytes() in CFIndex

This commit is contained in:
Alex 2017-02-21 19:28:17 -07:00 committed by Olaoluwa Osuntokun
parent 0c08ba2786
commit ba7b5f3308

View File

@ -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