aboutsummaryrefslogtreecommitdiff
path: root/coreth.go
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-10-21 16:34:25 -0400
committerDeterminant <[email protected]>2019-10-21 16:34:25 -0400
commit190b04fcbcadf4807c5c2bb0ef9e528bbff62e32 (patch)
treed9302f7a9b877c3f6d7b5903d91a84a116337c53 /coreth.go
parent7212dbd90f4cb8fe907617f804c8940db1ce657e (diff)
add NewTxPoolHeadEvent
Diffstat (limited to 'coreth.go')
-rw-r--r--coreth.go6
1 files changed, 6 insertions, 0 deletions
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