Skip to content

Commit

Permalink
neutrino: update API usage due to package move
Browse files Browse the repository at this point in the history
  • Loading branch information
Roasbeef committed Aug 23, 2018
1 parent 817581a commit e89b367
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions neutrino.go
Original file line number Diff line number Diff line change
Expand Up @@ -630,13 +630,15 @@ func NewChainService(cfg Config) (*ChainService, error) {
}
s.BlockCache = lru.NewCache(blockCacheSize)

s.BlockHeaders, err = headerfs.NewBlockHeaderStore(cfg.DataDir,
cfg.Database, &cfg.ChainParams)
s.BlockHeaders, err = headerfs.NewBlockHeaderStore(
cfg.DataDir, cfg.Database, &cfg.ChainParams,
)
if err != nil {
return nil, err
}
s.RegFilterHeaders, err = headerfs.NewFilterHeaderStore(cfg.DataDir,
cfg.Database, headerfs.RegularFilter, &cfg.ChainParams)
s.RegFilterHeaders, err = headerfs.NewFilterHeaderStore(
cfg.DataDir, cfg.Database, headerfs.RegularFilter, &cfg.ChainParams,
)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func TestBlockCache(t *testing.T) {

// We'll use a simple mock header store since the GetBlocks method
// assumes we only query for blocks with an already known header.
headers := headerfs.NewMockBlockHeaderStore()
headers := newMockBlockHeaderStore()

// Iterate through the blocks, calculating the size of half of them,
// and writing them to the header store.
Expand Down

0 comments on commit e89b367

Please sign in to comment.