diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-31 18:21:55 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:17 +0800 |
commit | 6feecf26f7a292cf384616153c8e5bf0617a12bf (patch) | |
tree | 98a6aa5a9af0c162d2ce4cba538832fe8b58f402 /core/tx_pool_test.go | |
parent | 26907d464cf2c16e15916c298f7b12e3e8b61be0 (diff) | |
download | go-tangerine-6feecf26f7a292cf384616153c8e5bf0617a12bf.tar.gz go-tangerine-6feecf26f7a292cf384616153c8e5bf0617a12bf.tar.zst go-tangerine-6feecf26f7a292cf384616153c8e5bf0617a12bf.zip |
core: tx_pool: remove transactions on BlockConfirmed event
Diffstat (limited to 'core/tx_pool_test.go')
-rw-r--r-- | core/tx_pool_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/tx_pool_test.go b/core/tx_pool_test.go index f43ba9e58..0ef926d1d 100644 --- a/core/tx_pool_test.go +++ b/core/tx_pool_test.go @@ -45,9 +45,9 @@ func init() { } type testBlockChain struct { - statedb *state.StateDB - gasLimit uint64 - chainHeadFeed *event.Feed + statedb *state.StateDB + gasLimit uint64 + blockConfirmedFeed *event.Feed } func (bc *testBlockChain) CurrentBlock() *types.Block { @@ -64,8 +64,8 @@ func (bc *testBlockChain) StateAt(common.Hash) (*state.StateDB, error) { return bc.statedb, nil } -func (bc *testBlockChain) SubscribeChainHeadEvent(ch chan<- ChainHeadEvent) event.Subscription { - return bc.chainHeadFeed.Subscribe(ch) +func (bc *testBlockChain) SubscribeBlockConfirmedEvent(ch chan<- BlockConfirmedEvent) event.Subscription { + return bc.blockConfirmedFeed.Subscribe(ch) } func transaction(nonce uint64, gaslimit uint64, key *ecdsa.PrivateKey) *types.Transaction { |