aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/xeth.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-03-24 01:06:05 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-03-24 01:06:05 +0800
commite954c24af02802cdee0870230b6dcfc898dd07cd (patch)
tree4e0a620ee3383bd2c41ce9531e3c25cbdc42c6f1 /xeth/xeth.go
parent60020add74c40225e81122071d20c30f24832007 (diff)
downloaddexon-e954c24af02802cdee0870230b6dcfc898dd07cd.tar
dexon-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.gz
dexon-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.bz2
dexon-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.lz
dexon-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.xz
dexon-e954c24af02802cdee0870230b6dcfc898dd07cd.tar.zst
dexon-e954c24af02802cdee0870230b6dcfc898dd07cd.zip
Implement RPC net_version
Diffstat (limited to 'xeth/xeth.go')
-rw-r--r--xeth/xeth.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index 02a691ffb..98f5f5b36 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -12,6 +12,7 @@ import (
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
+ "github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/event"
@@ -19,7 +20,6 @@ import (
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/miner"
"github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/whisper"
)
@@ -50,6 +50,8 @@ type Backend interface {
StartMining() error
StopMining()
Version() string
+ ProtocolVersion() int
+ NetworkId() int
}
// Frontend should be implemented by users of XEth. Its methods are