Skip to content

Commit 200075f

Browse files
remove extra logging statement and comment
Former-commit-id: 56f2f83945769cf082032872d712f90c03977aa6 [formerly 7ad31d4] Former-commit-id: a568c78
1 parent 3e25cc8 commit 200075f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

sharding/client_test.go

+9
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ func (s *FakeEthService) GetTransactionByHash(hash common.Hash) (tx *types.Trans
6767
return nil, false, nil
6868
}
6969

70+
type FakeNetworkService struct{}
71+
72+
func (s *FakeNetworkService) Version() (string, error) {
73+
return "100", nil
74+
}
75+
7076
func newTestServer(endpoint string) (*rpc.Server, error) {
7177
// Create datadir.
7278
if err := os.Mkdir(endpoint, 0777); err != nil {
@@ -87,6 +93,9 @@ func newTestServer(endpoint string) (*rpc.Server, error) {
8793
if err := server.RegisterName("eth", new(FakeEthService)); err != nil {
8894
return nil, err
8995
}
96+
if err := server.RegisterName("net", new(FakeNetworkService)); err != nil {
97+
return nil, err
98+
}
9099
l, err := rpc.CreateIPCListener(endpoint + "/geth.ipc")
91100
if err != nil {
92101
return nil, err

0 commit comments

Comments
 (0)