remove extra logging statement and comment

Former-commit-id: 56f2f83945769cf082032872d712f90c03977aa6 [formerly 7ad31d44fcea30fed41b387f44545bdc45adeb10]
Former-commit-id: a568c78aa5f8b19cdad699cac35ad2923a25b526
This commit is contained in:
Preston Van Loon
2018-01-22 07:31:38 -05:00
parent 3e25cc8660
commit 200075f48c

View File

@@ -67,6 +67,12 @@ func (s *FakeEthService) GetTransactionByHash(hash common.Hash) (tx *types.Trans
return nil, false, nil
}
type FakeNetworkService struct{}
func (s *FakeNetworkService) Version() (string, error) {
return "100", nil
}
func newTestServer(endpoint string) (*rpc.Server, error) {
// Create datadir.
if err := os.Mkdir(endpoint, 0777); err != nil {
@@ -87,6 +93,9 @@ func newTestServer(endpoint string) (*rpc.Server, error) {
if err := server.RegisterName("eth", new(FakeEthService)); err != nil {
return nil, err
}
if err := server.RegisterName("net", new(FakeNetworkService)); err != nil {
return nil, err
}
l, err := rpc.CreateIPCListener(endpoint + "/geth.ipc")
if err != nil {
return nil, err