aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/txpool.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-10 15:42:14 +0800
committerBas van Kervel <basvankervel@gmail.com>2015-06-11 20:43:05 +0800
commit7584e68c21cfd155a9e72b29422d8d458691d4ae (patch)
treef552bef4bb93ae8a0199a84fe1cb20a6ffb12b4b /rpc/api/txpool.go
parent1fe617fa5791bffb6b3cc60636c6629c7aca36d3 (diff)
downloadgo-tangerine-7584e68c21cfd155a9e72b29422d8d458691d4ae.tar.gz
go-tangerine-7584e68c21cfd155a9e72b29422d8d458691d4ae.tar.zst
go-tangerine-7584e68c21cfd155a9e72b29422d8d458691d4ae.zip
upgrade web3.js with _extend support
Diffstat (limited to 'rpc/api/txpool.go')
-rw-r--r--rpc/api/txpool.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/rpc/api/txpool.go b/rpc/api/txpool.go
index ebbe199b1..64550bdaf 100644
--- a/rpc/api/txpool.go
+++ b/rpc/api/txpool.go
@@ -7,6 +7,10 @@ import (
"github.com/ethereum/go-ethereum/xeth"
)
+const (
+ TxPoolApiVersion = "1.0"
+)
+
var (
// mapping between methods and handlers
txpoolMapping = map[string]txpoolhandler{
@@ -59,6 +63,10 @@ func (self *txPoolApi) Name() string {
return TxPoolApiName
}
+func (self *txPoolApi) ApiVersion() string {
+ return TxPoolApiVersion
+}
+
func (self *txPoolApi) Status(req *shared.Request) (interface{}, error) {
return map[string]int{
"pending": self.ethereum.TxPool().GetTransactions().Len(),