diff options
author | Felix Lange <fjl@twurst.com> | 2015-06-03 21:52:25 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-04 04:43:23 +0800 |
commit | ec7a2c34423f9337c238ff07c39a15eb18eed79a (patch) | |
tree | 3c11cfa14540f246f4cfada5c3a7dc8a197c77b4 /core/chain_manager_test.go | |
parent | 5721c43585100aad82a4c18341e9518c6e91393b (diff) | |
download | go-tangerine-ec7a2c34423f9337c238ff07c39a15eb18eed79a.tar go-tangerine-ec7a2c34423f9337c238ff07c39a15eb18eed79a.tar.gz go-tangerine-ec7a2c34423f9337c238ff07c39a15eb18eed79a.tar.bz2 go-tangerine-ec7a2c34423f9337c238ff07c39a15eb18eed79a.tar.lz go-tangerine-ec7a2c34423f9337c238ff07c39a15eb18eed79a.tar.xz go-tangerine-ec7a2c34423f9337c238ff07c39a15eb18eed79a.tar.zst go-tangerine-ec7a2c34423f9337c238ff07c39a15eb18eed79a.zip |
core: don't remove transactions after block processing
The transaction pool drops processed transactions on its own
during pool maintenance.
Diffstat (limited to 'core/chain_manager_test.go')
-rw-r--r-- | core/chain_manager_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/chain_manager_test.go b/core/chain_manager_test.go index 7dc7358c0..560e85f77 100644 --- a/core/chain_manager_test.go +++ b/core/chain_manager_test.go @@ -267,8 +267,7 @@ func TestChainInsertions(t *testing.T) { var eventMux event.TypeMux chainMan := NewChainManager(db, db, thePow(), &eventMux) - txPool := NewTxPool(&eventMux, chainMan.State, func() *big.Int { return big.NewInt(100000000) }) - blockMan := NewBlockProcessor(db, db, nil, txPool, chainMan, &eventMux) + blockMan := NewBlockProcessor(db, db, nil, chainMan, &eventMux) chainMan.SetProcessor(blockMan) const max = 2 @@ -313,8 +312,7 @@ func TestChainMultipleInsertions(t *testing.T) { } var eventMux event.TypeMux chainMan := NewChainManager(db, db, thePow(), &eventMux) - txPool := NewTxPool(&eventMux, chainMan.State, func() *big.Int { return big.NewInt(100000000) }) - blockMan := NewBlockProcessor(db, db, nil, txPool, chainMan, &eventMux) + blockMan := NewBlockProcessor(db, db, nil, chainMan, &eventMux) chainMan.SetProcessor(blockMan) done := make(chan bool, max) for i, chain := range chains { |