aboutsummaryrefslogtreecommitdiff
path: root/coreth.go
diff options
context:
space:
mode:
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