diff options
Diffstat (limited to 'dex/handler.go')
-rw-r--r-- | dex/handler.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dex/handler.go b/dex/handler.go index 51167c9cb..620320f49 100644 --- a/dex/handler.go +++ b/dex/handler.go @@ -53,6 +53,7 @@ import ( "github.com/dexon-foundation/dexon/core" "github.com/dexon-foundation/dexon/core/types" "github.com/dexon-foundation/dexon/crypto" + "github.com/dexon-foundation/dexon/dex/blockdb" "github.com/dexon-foundation/dexon/dex/downloader" "github.com/dexon-foundation/dexon/dex/fetcher" "github.com/dexon-foundation/dexon/ethdb" @@ -157,7 +158,7 @@ func NewProtocolManager( nodeTable: tab, gov: gov, blockchain: blockchain, - cache: newCache(128), + cache: newCache(5120, blockdb.NewDatabase(chaindb)), chainconfig: config, newPeerCh: make(chan *peer), noMorePeers: make(chan struct{}), |