aboutsummaryrefslogtreecommitdiffstats
path: root/core/tx_pool_test.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-31 18:21:55 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:52 +0800
commit2b99b89e5af0cf9feca3ab532629f8fab3858edc (patch)
treef02dbbb15fac9703d6d29230a89b0bab572c23ca /core/tx_pool_test.go
parent48cd626abe5169e87e6a7f264f4f6cfda71c8e1f (diff)
downloaddexon-2b99b89e5af0cf9feca3ab532629f8fab3858edc.tar
dexon-2b99b89e5af0cf9feca3ab532629f8fab3858edc.tar.gz
dexon-2b99b89e5af0cf9feca3ab532629f8fab3858edc.tar.bz2
dexon-2b99b89e5af0cf9feca3ab532629f8fab3858edc.tar.lz
dexon-2b99b89e5af0cf9feca3ab532629f8fab3858edc.tar.xz
dexon-2b99b89e5af0cf9feca3ab532629f8fab3858edc.tar.zst
dexon-2b99b89e5af0cf9feca3ab532629f8fab3858edc.zip
core: tx_pool: remove transactions on BlockConfirmed event
Diffstat (limited to 'core/tx_pool_test.go')
-rw-r--r--core/tx_pool_test.go10
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 {