aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-11-25 20:22:53 +0800
committerGitHub <noreply@github.com>2016-11-25 20:22:53 +0800
commit9c3ea0d32d26957fd73ddf07e37d93091de596fd (patch)
treeccae1f1af7462b1364df3fabde6b90ea16c90377 /eth
parent66441c9b4b5fce27ea6d7883f21b9890c9af65cb (diff)
parent67e0894d9e696be32d7b5f78bb6f89ed0e03f382 (diff)
downloadgo-tangerine-9c3ea0d32d26957fd73ddf07e37d93091de596fd.tar.gz
go-tangerine-9c3ea0d32d26957fd73ddf07e37d93091de596fd.tar.zst
go-tangerine-9c3ea0d32d26957fd73ddf07e37d93091de596fd.zip
Merge pull request #3346 from obscuren/registrar-removal
common/registrar, eth: removed registrar (tech debt)
Diffstat (limited to 'eth')
-rw-r--r--eth/backend.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/eth/backend.go b/eth/backend.go
index 2351a62c8..d5b767b12 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -31,8 +31,6 @@ import (
"github.com/ethereum/ethash"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/httpclient"
- "github.com/ethereum/go-ethereum/common/registrar/ethreg"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth/downloader"
@@ -127,7 +125,6 @@ type Ethereum struct {
eventMux *event.TypeMux
pow *ethash.Ethash
- httpclient *httpclient.HTTPClient
accountManager *accounts.Manager
ApiBackend *EthApiBackend
@@ -173,7 +170,6 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
pow: pow,
shutdownChan: make(chan bool),
stopDbUpgrade: stopDbUpgrade,
- httpclient: httpclient.New(config.DocRoot),
netVersionId: config.NetworkId,
NatSpec: config.NatSpec,
PowTest: config.PowTest,
@@ -356,10 +352,6 @@ func (s *Ethereum) APIs() []rpc.API {
Version: "1.0",
Service: s.netRPCService,
Public: true,
- }, {
- Namespace: "admin",
- Version: "1.0",
- Service: ethreg.NewPrivateRegistarAPI(s.chainConfig, s.blockchain, s.chainDb, s.txPool, s.accountManager),
},
}...)
}
@@ -527,12 +519,6 @@ func (self *Ethereum) StopAutoDAG() {
glog.V(logger.Info).Infof("Automatic pregeneration of ethash DAG OFF (ethash dir: %s)", ethash.DefaultDir)
}
-// HTTPClient returns the light http client used for fetching offchain docs
-// (natspec, source for verification)
-func (self *Ethereum) HTTPClient() *httpclient.HTTPClient {
- return self.httpclient
-}
-
// dagFiles(epoch) returns the two alternative DAG filenames (not a path)
// 1) <revision>-<hex(seedhash[8])> 2) full-R<revision>-<hex(seedhash[8])>
func dagFiles(epoch uint64) (string, string) {