mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
Use NBytes() instead of Bytes() in CFIndex
This commit is contained in:
parent
0c08ba2786
commit
ba7b5f3308
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user