From 190b04fcbcadf4807c5c2bb0ef9e528bbff62e32 Mon Sep 17 00:00:00 2001 From: Determinant Date: Mon, 21 Oct 2019 16:34:25 -0400 Subject: add NewTxPoolHeadEvent --- coreth.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'coreth.go') diff --git a/coreth.go b/coreth.go index ca2a5de..8cc5f77 100644 --- a/coreth.go +++ b/coreth.go @@ -7,6 +7,7 @@ import ( "os" "github.com/ava-labs/coreth/consensus/dummy" + "github.com/ava-labs/coreth/core" "github.com/ava-labs/coreth/eth" "github.com/ava-labs/coreth/miner" "github.com/ava-labs/coreth/node" @@ -180,10 +181,15 @@ func (self *ETHChain) AttachEthService(handler *rpc.Server, namespaces []string) } } +// TODO: use SubscribeNewTxsEvent() func (self *ETHChain) GetTxSubmitCh() <-chan struct{} { return self.backend.GetTxSubmitCh() } +func (self *ETHChain) GetTxPool() *core.TxPool { + return self.backend.TxPool() +} + type Key struct { Address common.Address PrivateKey *ecdsa.PrivateKey -- cgit v1.2.3