diff --git a/src/service/p2p.ts b/src/service/p2p.ts index 73fe25c..b768856 100644 --- a/src/service/p2p.ts +++ b/src/service/p2p.ts @@ -46,7 +46,7 @@ export class P2PService extends EventEmitter { this.nodeKeyPair = node.config.keyPair; this.logger = node.logger; - node.config.services.p2p = this; + node.services.p2p = this; } private _hashQueryRoutingTable: Map> = new Map();