diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-10-09 23:36:31 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-10-19 15:03:10 +0800 |
commit | aa0538db0b5de2bb2c609d629b65d083649f9171 (patch) | |
tree | a1ce77d4fa8d041a78975b6f99067e85eb725ea1 /eth/helper_test.go | |
parent | a9d8dfc8e77330412b1f21e25a69b96d59567e36 (diff) | |
download | dexon-aa0538db0b5de2bb2c609d629b65d083649f9171.tar dexon-aa0538db0b5de2bb2c609d629b65d083649f9171.tar.gz dexon-aa0538db0b5de2bb2c609d629b65d083649f9171.tar.bz2 dexon-aa0538db0b5de2bb2c609d629b65d083649f9171.tar.lz dexon-aa0538db0b5de2bb2c609d629b65d083649f9171.tar.xz dexon-aa0538db0b5de2bb2c609d629b65d083649f9171.tar.zst dexon-aa0538db0b5de2bb2c609d629b65d083649f9171.zip |
eth: clean out light node notions from eth
Diffstat (limited to 'eth/helper_test.go')
-rw-r--r-- | eth/helper_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eth/helper_test.go b/eth/helper_test.go index ede0e3f15..16907be8b 100644 --- a/eth/helper_test.go +++ b/eth/helper_test.go @@ -28,7 +28,7 @@ var ( // newTestProtocolManager creates a new protocol manager for testing purposes, // with the given number of blocks already known, and potential notification // channels for different events. -func newTestProtocolManager(mode Mode, blocks int, generator func(int, *core.BlockGen), newtx chan<- []*types.Transaction) (*ProtocolManager, error) { +func newTestProtocolManager(fastSync bool, blocks int, generator func(int, *core.BlockGen), newtx chan<- []*types.Transaction) (*ProtocolManager, error) { var ( evmux = new(event.TypeMux) pow = new(core.FakePow) @@ -42,7 +42,7 @@ func newTestProtocolManager(mode Mode, blocks int, generator func(int, *core.Blo if _, err := blockchain.InsertChain(chain); err != nil { panic(err) } - pm, err := NewProtocolManager(mode, NetworkId, evmux, &testTxPool{added: newtx}, pow, blockchain, db) + pm, err := NewProtocolManager(fastSync, NetworkId, evmux, &testTxPool{added: newtx}, pow, blockchain, db) if err != nil { return nil, err } @@ -54,8 +54,8 @@ func newTestProtocolManager(mode Mode, blocks int, generator func(int, *core.Blo // with the given number of blocks already known, and potential notification // channels for different events. In case of an error, the constructor force- // fails the test. -func newTestProtocolManagerMust(t *testing.T, mode Mode, blocks int, generator func(int, *core.BlockGen), newtx chan<- []*types.Transaction) *ProtocolManager { - pm, err := newTestProtocolManager(mode, blocks, generator, newtx) +func newTestProtocolManagerMust(t *testing.T, fastSync bool, blocks int, generator func(int, *core.BlockGen), newtx chan<- []*types.Transaction) *ProtocolManager { + pm, err := newTestProtocolManager(fastSync, blocks, generator, newtx) if err != nil { t.Fatalf("Failed to create protocol manager: %v", err) } |