Skip to content
This repository was archived by the owner on Dec 10, 2020. It is now read-only.

Commit 9087ced

Browse files
PhilippLghholgerd77
authored andcommitted
chore: remove log
1 parent 5806f10 commit 9087ced

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

lib/rpc/modules/admin.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
import { bufferToHex } from 'ethereumjs-util'
2+
import { Chain } from '../../blockchain'
3+
import { EthProtocol } from '../../net/protocol'
4+
import Node from '../../node'
25
import { getClientVersion } from '../../util'
36
import { middleware } from '../validation'
47

58
/**
69
* admin_* RPC module
710
* @memberof module:rpc/modules
811
*/
9-
class Admin {
12+
export class Admin {
13+
readonly _chain: Chain
14+
readonly _node: Node
15+
readonly _ethProtocol: EthProtocol
16+
1017
/**
1118
* Create admin_* RPC module
1219
* @param {Node} Node to which the module binds
1320
*/
14-
constructor(node) {
21+
constructor(node: Node) {
1522
const service = node.services.find(s => s.name === 'eth')
1623
this._chain = service.chain
1724
this._node = node
@@ -27,7 +34,6 @@ class Admin {
2734
* @param {*} [cb] A function with an error object as the first argument and the
2835
*/
2936
async nodeInfo(params, cb) {
30-
console.log('this._node', this._node)
3137
const rlpxInfo = this._node.server('rlpx').getRlpxInfo()
3238
const { enode, id, ip, listenAddr, ports } = rlpxInfo
3339
const { discovery, listener } = ports
@@ -63,6 +69,4 @@ class Admin {
6369
}
6470
return cb(null, nodeInfo)
6571
}
66-
}
67-
68-
module.exports = Admin
72+
}

0 commit comments

Comments
 (0)