aboutsummaryrefslogtreecommitdiff
path: root/coreth.go
diff options
context:
space:
mode:
Diffstat (limited to 'coreth.go')
-rw-r--r--coreth.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/coreth.go b/coreth.go
index 1683024..c4cbf09 100644
--- a/coreth.go
+++ b/coreth.go
@@ -64,8 +64,17 @@ func (self *ETHChain) GenBlock() {
self.backend.Miner().GenBlock()
}
+func (self *ETHChain) PendingSize() (int, error) {
+ pending, err := self.backend.TxPool().Pending()
+ count := 0
+ for _, txs := range pending {
+ count += len(txs)
+ }
+ return count, err
+}
+
func (self *ETHChain) AddRemoteTxs(txs []*types.Transaction) []error {
- return self.backend.TxPool().AddRemotes(txs)
+ return self.backend.TxPool().AddRemotesSync(txs)
}
func (self *ETHChain) AddLocalTxs(txs []*types.Transaction) []error {