multi: bump neutrino+btcwallet versions, use new generic lru cache

This commit is contained in:
Olaoluwa Osuntokun committed 2023-02-21 17:28:48 -08:00
1 parent d44823f6e8
commit a15c45231e
6 files changed
+59 -56

No files matched your search

+7 -2
View File
@@ -9,6 +9,7 @@ import (
"github.com/btcsuite/btcd/btcutil"
"github.com/btcsuite/btcd/chaincfg/chainhash"
"github.com/btcsuite/btcd/wire"
"github.com/lightninglabs/neutrino"
"github.com/lightninglabs/neutrino/cache"
"github.com/stretchr/testify/require"
)
@@ -84,7 +85,9 @@ func TestBlockCacheGetBlock(t *testing.T) {
inv3 := wire.NewInvVect(wire.InvTypeWitnessBlock, &blockhash3)
// Determine the size of one of the blocks.
sz, _ := (&cache.CacheableBlock{Block: btcutil.NewBlock(block1)}).Size()
sz, _ := (&neutrino.CacheableBlock{
Block: btcutil.NewBlock(block1),
}).Size()
// A new Cache is set up with a capacity of 2 blocks
bc := NewBlockCache(2 * sz)
@@ -167,7 +170,9 @@ func TestBlockCacheMutexes(t *testing.T) {
blockhash2 := block2.BlockHash()
// Determine the size of the block.
sz, _ := (&cache.CacheableBlock{Block: btcutil.NewBlock(block1)}).Size()
sz, _ := (&neutrino.CacheableBlock{
Block: btcutil.NewBlock(block1),
}).Size()
// A new Cache is set up with a capacity of 2 blocks
bc := NewBlockCache(2 * sz)