aboutsummaryrefslogtreecommitdiffstats
path: root/eth/protocol_test.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-06-15 22:43:37 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-06-15 22:43:37 +0800
commit263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9 (patch)
tree730df04d1439ddc089798a9da5b00ab849b95494 /eth/protocol_test.go
parent6f5c6150b7060b6b2ee68ac95b30f46c5c2c7f90 (diff)
parentaa250e228a7f2eec5d512d05eb042b75e2755d30 (diff)
downloaddexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.tar
dexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.tar.gz
dexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.tar.bz2
dexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.tar.lz
dexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.tar.xz
dexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.tar.zst
dexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.zip
Merge pull request #1243 from karalabe/instrument-downloader-sync
eth, eth/downloader: separate concerns, clean up test suite
Diffstat (limited to 'eth/protocol_test.go')
-rw-r--r--eth/protocol_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/eth/protocol_test.go b/eth/protocol_test.go
index bbea9fc11..69d487c71 100644
--- a/eth/protocol_test.go
+++ b/eth/protocol_test.go
@@ -11,7 +11,6 @@ import (
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/downloader"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/event"
"github.com/ethereum/go-ethereum/p2p"
@@ -168,8 +167,7 @@ func newProtocolManagerForTesting(txAdded chan<- []*types.Transaction) *Protocol
db, _ = ethdb.NewMemDatabase()
chain, _ = core.NewChainManager(core.GenesisBlock(0, db), db, db, core.FakePow{}, em)
txpool = &fakeTxPool{added: txAdded}
- dl = downloader.New(em, chain.HasBlock, chain.GetBlock)
- pm = NewProtocolManager(ProtocolVersion, 0, em, txpool, chain, dl)
+ pm = NewProtocolManager(ProtocolVersion, 0, em, txpool, chain)
)
pm.Start()
return pm