@streamr/trackerless-network 101.0.0-beta.1 → 101.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +5 -6
- package/dist/src/NetworkNode.d.ts +5 -7
- package/dist/src/NetworkNode.js +5 -24
- package/dist/src/NetworkNode.js.map +1 -1
- package/dist/src/NetworkStack.d.ts +1 -2
- package/dist/src/NetworkStack.js +1 -2
- package/dist/src/NetworkStack.js.map +1 -1
- package/dist/src/exports.d.ts +3 -5
- package/dist/src/exports.js +13 -13
- package/dist/src/exports.js.map +1 -1
- package/dist/src/logic/ContentDeliveryLayerNode.d.ts +5 -5
- package/dist/src/logic/ContentDeliveryLayerNode.js +3 -3
- package/dist/src/logic/ContentDeliveryLayerNode.js.map +1 -1
- package/dist/src/logic/ContentDeliveryManager.d.ts +1 -2
- package/dist/src/logic/ContentDeliveryManager.js +2 -3
- package/dist/src/logic/ContentDeliveryManager.js.map +1 -1
- package/dist/src/logic/ContentDeliveryRpcLocal.d.ts +3 -3
- package/dist/src/logic/ContentDeliveryRpcLocal.js.map +1 -1
- package/dist/src/logic/ContentDeliveryRpcRemote.d.ts +1 -1
- package/dist/src/logic/ContentDeliveryRpcRemote.js.map +1 -1
- package/dist/src/logic/createContentDeliveryLayerNode.d.ts +1 -1
- package/dist/src/logic/formStreamPartDeliveryServiceId.d.ts +1 -1
- package/dist/src/logic/inspect/Inspector.d.ts +2 -2
- package/dist/src/logic/inspect/Inspector.js +2 -2
- package/dist/src/logic/inspect/Inspector.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/HandshakeRpcLocal.d.ts +4 -4
- package/dist/src/logic/neighbor-discovery/HandshakeRpcLocal.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/HandshakeRpcRemote.d.ts +1 -1
- package/dist/src/logic/neighbor-discovery/HandshakeRpcRemote.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/Handshaker.d.ts +2 -2
- package/dist/src/logic/neighbor-discovery/Handshaker.js +4 -4
- package/dist/src/logic/neighbor-discovery/Handshaker.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborUpdateManager.d.ts +2 -2
- package/dist/src/logic/neighbor-discovery/NeighborUpdateManager.js +3 -3
- package/dist/src/logic/neighbor-discovery/NeighborUpdateManager.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborUpdateRpcLocal.d.ts +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborUpdateRpcLocal.js.map +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborUpdateRpcRemote.d.ts +1 -1
- package/dist/src/logic/neighbor-discovery/NeighborUpdateRpcRemote.js.map +1 -1
- package/dist/src/logic/proxy/ProxyClient.d.ts +1 -2
- package/dist/src/logic/proxy/ProxyClient.js +3 -3
- package/dist/src/logic/proxy/ProxyClient.js.map +1 -1
- package/dist/src/logic/proxy/ProxyConnectionRpcLocal.d.ts +3 -4
- package/dist/src/logic/proxy/ProxyConnectionRpcLocal.js +4 -4
- package/dist/src/logic/proxy/ProxyConnectionRpcLocal.js.map +1 -1
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcLocal.d.ts +4 -4
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcLocal.js +1 -1
- package/dist/src/logic/temporary-connection/TemporaryConnectionRpcLocal.js.map +1 -1
- package/dist/test/benchmark/first-message.js +23 -12
- package/dist/test/benchmark/first-message.js.map +1 -1
- package/dist/test/utils/utils.d.ts +4 -5
- package/dist/test/utils/utils.js +6 -7
- package/dist/test/utils/utils.js.map +1 -1
- package/package.json +5 -6
- package/src/NetworkNode.ts +7 -25
- package/src/NetworkStack.ts +1 -2
- package/src/exports.ts +14 -11
- package/src/logic/ContentDeliveryLayerNode.ts +28 -29
- package/src/logic/ContentDeliveryManager.ts +1 -2
- package/src/logic/ContentDeliveryRpcLocal.ts +3 -3
- package/src/logic/ContentDeliveryRpcRemote.ts +1 -2
- package/src/logic/createContentDeliveryLayerNode.ts +1 -1
- package/src/logic/formStreamPartDeliveryServiceId.ts +1 -1
- package/src/logic/inspect/Inspector.ts +3 -4
- package/src/logic/neighbor-discovery/HandshakeRpcLocal.ts +9 -10
- package/src/logic/neighbor-discovery/HandshakeRpcRemote.ts +1 -2
- package/src/logic/neighbor-discovery/Handshaker.ts +8 -9
- package/src/logic/neighbor-discovery/NeighborUpdateManager.ts +4 -5
- package/src/logic/neighbor-discovery/NeighborUpdateRpcLocal.ts +2 -2
- package/src/logic/neighbor-discovery/NeighborUpdateRpcRemote.ts +1 -2
- package/src/logic/proxy/ProxyClient.ts +6 -7
- package/src/logic/proxy/ProxyConnectionRpcLocal.ts +5 -6
- package/src/logic/temporary-connection/TemporaryConnectionRpcLocal.ts +7 -7
- package/test/benchmark/StreamPartIdDataKeyDistribution.test.ts +2 -2
- package/test/benchmark/first-message.ts +28 -29
- package/test/end-to-end/content-delivery-layer-node-with-real-connections.test.ts +4 -5
- package/test/end-to-end/inspect.test.ts +26 -28
- package/test/end-to-end/proxy-and-full-node.test.ts +34 -32
- package/test/end-to-end/proxy-connections.test.ts +34 -31
- package/test/end-to-end/proxy-key-exchange.test.ts +41 -57
- package/test/end-to-end/webrtc-full-node-network.test.ts +1 -2
- package/test/end-to-end/websocket-full-node-network.test.ts +2 -3
- package/test/integration/ContentDeliveryLayerNode-Layer1Node-Latencies.test.ts +2 -3
- package/test/integration/ContentDeliveryLayerNode-Layer1Node.test.ts +2 -3
- package/test/integration/ContentDeliveryManager.test.ts +3 -4
- package/test/integration/ContentDeliveryRpcRemote.test.ts +7 -8
- package/test/integration/HandshakeRpcRemote.test.ts +6 -6
- package/test/integration/Handshakes.test.ts +6 -6
- package/test/integration/Inspect.test.ts +1 -1
- package/test/integration/NeighborUpdateRpcRemote.test.ts +1 -1
- package/test/integration/NetworkNode.test.ts +28 -29
- package/test/integration/NetworkRpc.test.ts +7 -8
- package/test/integration/NetworkStack.test.ts +4 -4
- package/test/integration/NodeInfoRpc.test.ts +3 -4
- package/test/integration/Propagation.test.ts +2 -3
- package/test/integration/joining-streams-on-offline-peers.test.ts +3 -4
- package/test/integration/stream-without-default-entrypoints.test.ts +26 -28
- package/test/integration/streamEntryPointReplacing.test.ts +5 -6
- package/test/unit/ContentDeliveryLayerNode.test.ts +5 -6
- package/test/unit/ContentDeliveryManager.test.ts +2 -3
- package/test/unit/ContentDeliveryRpcLocal.test.ts +1 -1
- package/test/unit/HandshakeRpcLocal.test.ts +2 -2
- package/test/unit/Handshaker.test.ts +2 -2
- package/test/unit/Inspector.test.ts +1 -2
- package/test/unit/NeighborUpdateRpcLocal.test.ts +6 -6
- package/test/unit/NetworkNode.test.ts +3 -4
- package/test/unit/NodeList.test.ts +2 -2
- package/test/unit/StreamPartIDDataKey.test.ts +1 -1
- package/test/unit/StreamPartNetworkSplitAvoidance.test.ts +1 -2
- package/test/unit/TemporaryConnectionRpcLocal.test.ts +2 -2
- package/test/utils/mock/MockTransport.ts +1 -2
- package/test/utils/utils.ts +8 -9
- package/tsconfig.jest.json +0 -1
- package/tsconfig.node.json +0 -2
- package/dist/src/logic/protocol-integration/stream-message/GroupKeyRequestTranslator.d.ts +0 -6
- package/dist/src/logic/protocol-integration/stream-message/GroupKeyRequestTranslator.js +0 -28
- package/dist/src/logic/protocol-integration/stream-message/GroupKeyRequestTranslator.js.map +0 -1
- package/dist/src/logic/protocol-integration/stream-message/GroupKeyResponseTranslator.d.ts +0 -6
- package/dist/src/logic/protocol-integration/stream-message/GroupKeyResponseTranslator.js +0 -32
- package/dist/src/logic/protocol-integration/stream-message/GroupKeyResponseTranslator.js.map +0 -1
- package/dist/src/logic/protocol-integration/stream-message/StreamMessageTranslator.d.ts +0 -6
- package/dist/src/logic/protocol-integration/stream-message/StreamMessageTranslator.js +0 -170
- package/dist/src/logic/protocol-integration/stream-message/StreamMessageTranslator.js.map +0 -1
- package/dist/src/logic/protocol-integration/stream-message/oldStreamMessageBinaryUtils.d.ts +0 -7
- package/dist/src/logic/protocol-integration/stream-message/oldStreamMessageBinaryUtils.js +0 -32
- package/dist/src/logic/protocol-integration/stream-message/oldStreamMessageBinaryUtils.js.map +0 -1
- package/src/logic/protocol-integration/stream-message/GroupKeyRequestTranslator.ts +0 -28
- package/src/logic/protocol-integration/stream-message/GroupKeyResponseTranslator.ts +0 -34
- package/src/logic/protocol-integration/stream-message/StreamMessageTranslator.ts +0 -197
- package/src/logic/protocol-integration/stream-message/oldStreamMessageBinaryUtils.ts +0 -37
- package/test/unit/GroupKeyResponseTranslator.test.ts +0 -39
- package/test/unit/StreamMessageTranslator.test.ts +0 -71
- package/test/unit/oldStreamMessageBinaryUtils.test.ts +0 -39
package/src/exports.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
export { NetworkStack, NetworkOptions, NodeInfo } from './NetworkStack'
|
|
2
1
|
export { NetworkNode, createNetworkNode } from './NetworkNode'
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export { streamPartIdToDataKey } from './logic/ContentDeliveryManager'
|
|
2
|
+
export { NetworkOptions, NetworkStack, NodeInfo } from './NetworkStack'
|
|
3
|
+
export { ContentDeliveryManagerOptions, streamPartIdToDataKey } from './logic/ContentDeliveryManager'
|
|
6
4
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
ContentType,
|
|
6
|
+
EncryptionType,
|
|
7
|
+
GroupKey,
|
|
8
|
+
GroupKeyRequest,
|
|
9
|
+
GroupKeyResponse,
|
|
10
|
+
MessageID,
|
|
11
|
+
MessageRef,
|
|
12
|
+
ProxyDirection,
|
|
13
|
+
SignatureType,
|
|
14
|
+
StreamMessage
|
|
15
|
+
} from './proto/packages/trackerless-network/protos/NetworkRpc'
|
|
16
|
+
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
import { EventEmitter } from 'eventemitter3'
|
|
2
1
|
import {
|
|
3
|
-
PeerDescriptor,
|
|
4
|
-
ListeningRpcCommunicator,
|
|
5
|
-
ITransport,
|
|
6
2
|
ConnectionLocker,
|
|
7
3
|
DhtAddress,
|
|
8
|
-
|
|
4
|
+
ITransport,
|
|
5
|
+
ListeningRpcCommunicator,
|
|
6
|
+
PeerDescriptor,
|
|
7
|
+
getNodeIdFromPeerDescriptor,
|
|
9
8
|
} from '@streamr/dht'
|
|
9
|
+
import { Logger, StreamPartID, addManagedEventListener } from '@streamr/utils'
|
|
10
|
+
import { EventEmitter } from 'eventemitter3'
|
|
10
11
|
import {
|
|
11
|
-
|
|
12
|
+
CloseTemporaryConnection,
|
|
12
13
|
LeaveStreamPartNotice,
|
|
14
|
+
MessageID,
|
|
13
15
|
MessageRef,
|
|
16
|
+
StreamMessage,
|
|
14
17
|
TemporaryConnectionRequest,
|
|
15
18
|
TemporaryConnectionResponse,
|
|
16
|
-
MessageID,
|
|
17
|
-
CloseTemporaryConnection,
|
|
18
19
|
} from '../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
19
|
-
import { NodeList } from './NodeList'
|
|
20
20
|
import { ContentDeliveryRpcClient } from '../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
21
|
+
import { ContentDeliveryRpcLocal } from './ContentDeliveryRpcLocal'
|
|
21
22
|
import { ContentDeliveryRpcRemote } from './ContentDeliveryRpcRemote'
|
|
23
|
+
import { DiscoveryLayerNode } from './DiscoveryLayerNode'
|
|
22
24
|
import { DuplicateMessageDetector } from './DuplicateMessageDetector'
|
|
23
|
-
import {
|
|
25
|
+
import { NodeList } from './NodeList'
|
|
26
|
+
import { Inspector } from './inspect/Inspector'
|
|
24
27
|
import { Handshaker } from './neighbor-discovery/Handshaker'
|
|
25
|
-
import { Propagation } from './propagation/Propagation'
|
|
26
28
|
import { NeighborFinder } from './neighbor-discovery/NeighborFinder'
|
|
27
29
|
import { NeighborUpdateManager } from './neighbor-discovery/NeighborUpdateManager'
|
|
28
|
-
import {
|
|
30
|
+
import { Propagation } from './propagation/Propagation'
|
|
29
31
|
import { ProxyConnectionRpcLocal } from './proxy/ProxyConnectionRpcLocal'
|
|
30
|
-
import { Inspector } from './inspect/Inspector'
|
|
31
32
|
import { TemporaryConnectionRpcLocal } from './temporary-connection/TemporaryConnectionRpcLocal'
|
|
32
33
|
import { markAndCheckDuplicate } from './utils'
|
|
33
|
-
import { DiscoveryLayerNode } from './DiscoveryLayerNode'
|
|
34
|
-
import { StreamPartID } from '@streamr/protocol'
|
|
35
34
|
|
|
36
35
|
export interface Events {
|
|
37
36
|
message: (message: StreamMessage) => void
|
|
@@ -117,44 +116,44 @@ export class ContentDeliveryLayerNode extends EventEmitter<Events> {
|
|
|
117
116
|
async start(): Promise<void> {
|
|
118
117
|
this.started = true
|
|
119
118
|
this.registerDefaultServerMethods()
|
|
120
|
-
addManagedEventListener
|
|
121
|
-
this.options.discoveryLayerNode
|
|
119
|
+
addManagedEventListener(
|
|
120
|
+
this.options.discoveryLayerNode,
|
|
122
121
|
'nearbyContactAdded',
|
|
123
122
|
() => this.onNearbyContactAdded(),
|
|
124
123
|
this.abortController.signal
|
|
125
124
|
)
|
|
126
|
-
addManagedEventListener
|
|
127
|
-
this.options.discoveryLayerNode
|
|
125
|
+
addManagedEventListener(
|
|
126
|
+
this.options.discoveryLayerNode,
|
|
128
127
|
'nearbyContactRemoved',
|
|
129
128
|
() => this.onNearbyContactRemoved(),
|
|
130
129
|
this.abortController.signal
|
|
131
130
|
)
|
|
132
|
-
addManagedEventListener
|
|
133
|
-
this.options.discoveryLayerNode
|
|
131
|
+
addManagedEventListener(
|
|
132
|
+
this.options.discoveryLayerNode,
|
|
134
133
|
'randomContactAdded',
|
|
135
134
|
() => this.onRandomContactAdded(),
|
|
136
135
|
this.abortController.signal
|
|
137
136
|
)
|
|
138
|
-
addManagedEventListener
|
|
139
|
-
this.options.discoveryLayerNode
|
|
137
|
+
addManagedEventListener(
|
|
138
|
+
this.options.discoveryLayerNode,
|
|
140
139
|
'randomContactRemoved',
|
|
141
140
|
() => this.onRandomContactRemoved(),
|
|
142
141
|
this.abortController.signal
|
|
143
142
|
)
|
|
144
|
-
addManagedEventListener
|
|
145
|
-
this.options.discoveryLayerNode
|
|
143
|
+
addManagedEventListener(
|
|
144
|
+
this.options.discoveryLayerNode,
|
|
146
145
|
'ringContactAdded',
|
|
147
146
|
() => this.onRingContactsUpdated(),
|
|
148
147
|
this.abortController.signal
|
|
149
148
|
)
|
|
150
|
-
addManagedEventListener
|
|
151
|
-
this.options.discoveryLayerNode
|
|
149
|
+
addManagedEventListener(
|
|
150
|
+
this.options.discoveryLayerNode,
|
|
152
151
|
'ringContactRemoved',
|
|
153
152
|
() => this.onRingContactsUpdated(),
|
|
154
153
|
this.abortController.signal
|
|
155
154
|
)
|
|
156
|
-
addManagedEventListener
|
|
157
|
-
this.options.transport
|
|
155
|
+
addManagedEventListener(
|
|
156
|
+
this.options.transport,
|
|
158
157
|
'disconnected',
|
|
159
158
|
(peerDescriptor: PeerDescriptor) => this.onNodeDisconnected(peerDescriptor),
|
|
160
159
|
this.abortController.signal
|
|
@@ -8,14 +8,13 @@ import {
|
|
|
8
8
|
getDhtAddressFromRaw,
|
|
9
9
|
getNodeIdFromPeerDescriptor
|
|
10
10
|
} from '@streamr/dht'
|
|
11
|
-
import { StreamID, StreamPartID, StreamPartIDUtils, toStreamPartID } from '@streamr/protocol'
|
|
12
11
|
import {
|
|
13
12
|
EthereumAddress,
|
|
14
13
|
Logger,
|
|
15
14
|
Metric,
|
|
16
15
|
MetricsContext,
|
|
17
16
|
MetricsDefinition,
|
|
18
|
-
RateMetric
|
|
17
|
+
RateMetric, StreamID, StreamPartID, StreamPartIDUtils, toStreamPartID
|
|
19
18
|
} from '@streamr/utils'
|
|
20
19
|
import { createHash } from 'crypto'
|
|
21
20
|
import { EventEmitter } from 'eventemitter3'
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ServerCallContext } from '@protobuf-ts/runtime-rpc'
|
|
2
|
+
import { DhtAddress, DhtCallContext, ListeningRpcCommunicator, PeerDescriptor, getNodeIdFromPeerDescriptor } from '@streamr/dht'
|
|
3
|
+
import { StreamPartID } from '@streamr/utils'
|
|
2
4
|
import { Empty } from '../proto/google/protobuf/empty'
|
|
3
5
|
import {
|
|
4
6
|
LeaveStreamPartNotice,
|
|
@@ -7,8 +9,6 @@ import {
|
|
|
7
9
|
StreamMessage
|
|
8
10
|
} from '../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
9
11
|
import { IContentDeliveryRpc } from '../proto/packages/trackerless-network/protos/NetworkRpc.server'
|
|
10
|
-
import { ServerCallContext } from '@protobuf-ts/runtime-rpc'
|
|
11
|
-
import { StreamPartID } from '@streamr/protocol'
|
|
12
12
|
|
|
13
13
|
export interface ContentDeliveryRpcLocalOptions {
|
|
14
14
|
localPeerDescriptor: PeerDescriptor
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { RpcRemote } from '@streamr/dht'
|
|
2
|
-
import { Logger } from '@streamr/utils'
|
|
2
|
+
import { Logger, StreamPartID } from '@streamr/utils'
|
|
3
3
|
import {
|
|
4
4
|
LeaveStreamPartNotice,
|
|
5
5
|
StreamMessage
|
|
6
6
|
} from '../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
7
7
|
import { ContentDeliveryRpcClient } from '../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
8
|
-
import { StreamPartID } from '@streamr/protocol'
|
|
9
8
|
|
|
10
9
|
const logger = new Logger(module)
|
|
11
10
|
|
|
@@ -6,7 +6,7 @@ import { StrictContentDeliveryLayerNodeOptions, ContentDeliveryLayerNode } from
|
|
|
6
6
|
import { NodeList } from './NodeList'
|
|
7
7
|
import { Propagation } from './propagation/Propagation'
|
|
8
8
|
import { StreamMessage } from '../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
9
|
-
import { MarkOptional } from 'ts-essentials'
|
|
9
|
+
import type { MarkOptional } from 'ts-essentials'
|
|
10
10
|
import { ProxyConnectionRpcLocal } from './proxy/ProxyConnectionRpcLocal'
|
|
11
11
|
import { Inspector } from './inspect/Inspector'
|
|
12
12
|
import { TemporaryConnectionRpcLocal } from './temporary-connection/TemporaryConnectionRpcLocal'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ServiceID } from '@streamr/dht'
|
|
2
|
-
import { StreamPartID } from '@streamr/
|
|
2
|
+
import { StreamPartID } from '@streamr/utils'
|
|
3
3
|
|
|
4
4
|
export const formStreamPartContentDeliveryServiceId = (streamPartId: StreamPartID): ServiceID => {
|
|
5
5
|
// could be "content-delivery" instead of "delivery", but that is a breaking change
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConnectionLocker, DhtAddress, ListeningRpcCommunicator, LockID, PeerDescriptor, getNodeIdFromPeerDescriptor } from '@streamr/dht'
|
|
2
|
+
import { Logger, StreamPartID, waitForEvent3 } from '@streamr/utils'
|
|
2
3
|
import { MessageID } from '../../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
3
|
-
import { InspectSession, Events as InspectSessionEvents } from './InspectSession'
|
|
4
4
|
import { TemporaryConnectionRpcClient } from '../../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
5
|
-
import { Logger, waitForEvent3 } from '@streamr/utils'
|
|
6
5
|
import { TemporaryConnectionRpcRemote } from '../temporary-connection/TemporaryConnectionRpcRemote'
|
|
7
|
-
import {
|
|
6
|
+
import { InspectSession, Events as InspectSessionEvents } from './InspectSession'
|
|
8
7
|
|
|
9
8
|
interface InspectorOptions {
|
|
10
9
|
localPeerDescriptor: PeerDescriptor
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
InterleaveRequest,
|
|
3
|
-
InterleaveResponse,
|
|
4
|
-
StreamPartHandshakeRequest,
|
|
5
|
-
StreamPartHandshakeResponse
|
|
6
|
-
} from '../../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
7
1
|
import { ServerCallContext } from '@protobuf-ts/runtime-rpc'
|
|
8
|
-
import { NodeList } from '../NodeList'
|
|
9
2
|
import {
|
|
10
3
|
DhtAddress,
|
|
11
4
|
DhtAddressRaw,
|
|
@@ -14,11 +7,17 @@ import {
|
|
|
14
7
|
getDhtAddressFromRaw,
|
|
15
8
|
getNodeIdFromPeerDescriptor
|
|
16
9
|
} from '@streamr/dht'
|
|
10
|
+
import { Logger, StreamPartID } from '@streamr/utils'
|
|
11
|
+
import {
|
|
12
|
+
InterleaveRequest,
|
|
13
|
+
InterleaveResponse,
|
|
14
|
+
StreamPartHandshakeRequest,
|
|
15
|
+
StreamPartHandshakeResponse
|
|
16
|
+
} from '../../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
17
17
|
import { IHandshakeRpc } from '../../proto/packages/trackerless-network/protos/NetworkRpc.server'
|
|
18
|
-
import { HandshakeRpcRemote } from './HandshakeRpcRemote'
|
|
19
18
|
import { ContentDeliveryRpcRemote } from '../ContentDeliveryRpcRemote'
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
19
|
+
import { NodeList } from '../NodeList'
|
|
20
|
+
import { HandshakeRpcRemote } from './HandshakeRpcRemote'
|
|
22
21
|
|
|
23
22
|
interface HandshakeRpcLocalOptions {
|
|
24
23
|
streamPartId: StreamPartID
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { DhtAddress, PeerDescriptor, RpcRemote, getNodeIdFromPeerDescriptor, getRawFromDhtAddress } from '@streamr/dht'
|
|
2
|
-
import { Logger } from '@streamr/utils'
|
|
2
|
+
import { Logger, StreamPartID } from '@streamr/utils'
|
|
3
3
|
import { v4 } from 'uuid'
|
|
4
4
|
import { InterleaveRequest, InterleaveResponse, StreamPartHandshakeRequest } from '../../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
5
5
|
import { HandshakeRpcClient } from '../../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
6
|
-
import { StreamPartID } from '@streamr/protocol'
|
|
7
6
|
|
|
8
7
|
const logger = new Logger(module)
|
|
9
8
|
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { DhtAddress,
|
|
2
|
-
import {
|
|
3
|
-
import { ContentDeliveryRpcRemote } from '../ContentDeliveryRpcRemote'
|
|
4
|
-
import {
|
|
5
|
-
ContentDeliveryRpcClient, HandshakeRpcClient
|
|
6
|
-
} from '../../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
1
|
+
import { DhtAddress, ListeningRpcCommunicator, PeerDescriptor, getNodeIdFromPeerDescriptor } from '@streamr/dht'
|
|
2
|
+
import { Logger, StreamPartID } from '@streamr/utils'
|
|
7
3
|
import {
|
|
8
4
|
InterleaveRequest,
|
|
9
5
|
InterleaveResponse,
|
|
10
6
|
StreamPartHandshakeRequest,
|
|
11
7
|
StreamPartHandshakeResponse
|
|
12
8
|
} from '../../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
13
|
-
import {
|
|
14
|
-
|
|
9
|
+
import {
|
|
10
|
+
ContentDeliveryRpcClient, HandshakeRpcClient
|
|
11
|
+
} from '../../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
12
|
+
import { ContentDeliveryRpcRemote } from '../ContentDeliveryRpcRemote'
|
|
13
|
+
import { NodeList } from '../NodeList'
|
|
15
14
|
import { HandshakeRpcLocal } from './HandshakeRpcLocal'
|
|
16
|
-
import {
|
|
15
|
+
import { HandshakeRpcRemote, INTERLEAVE_REQUEST_TIMEOUT } from './HandshakeRpcRemote'
|
|
17
16
|
|
|
18
17
|
interface HandshakerOptions {
|
|
19
18
|
localPeerDescriptor: PeerDescriptor
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { NeighborUpdate } from '../../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
2
1
|
import { DhtAddress, ListeningRpcCommunicator, PeerDescriptor, getNodeIdFromPeerDescriptor } from '@streamr/dht'
|
|
2
|
+
import { Logger, StreamPartID, scheduleAtInterval } from '@streamr/utils'
|
|
3
|
+
import { NeighborUpdate } from '../../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
3
4
|
import { NeighborUpdateRpcClient } from '../../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
4
|
-
import { Logger, scheduleAtInterval } from '@streamr/utils'
|
|
5
|
-
import { NeighborFinder } from './NeighborFinder'
|
|
6
5
|
import { NodeList } from '../NodeList'
|
|
7
|
-
import {
|
|
6
|
+
import { NeighborFinder } from './NeighborFinder'
|
|
8
7
|
import { NeighborUpdateRpcLocal } from './NeighborUpdateRpcLocal'
|
|
9
|
-
import {
|
|
8
|
+
import { NeighborUpdateRpcRemote } from './NeighborUpdateRpcRemote'
|
|
10
9
|
|
|
11
10
|
interface NeighborUpdateManagerOptions {
|
|
12
11
|
localPeerDescriptor: PeerDescriptor
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ServerCallContext } from '@protobuf-ts/runtime-rpc'
|
|
2
2
|
import { DhtAddress, DhtCallContext, ListeningRpcCommunicator, PeerDescriptor, getNodeIdFromPeerDescriptor } from '@streamr/dht'
|
|
3
|
+
import { StreamPartID } from '@streamr/utils'
|
|
3
4
|
import { NeighborUpdate } from '../../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
4
5
|
import { ContentDeliveryRpcClient } from '../../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
5
6
|
import { INeighborUpdateRpc } from '../../proto/packages/trackerless-network/protos/NetworkRpc.server'
|
|
6
|
-
import { NodeList } from '../NodeList'
|
|
7
7
|
import { ContentDeliveryRpcRemote } from '../ContentDeliveryRpcRemote'
|
|
8
|
+
import { NodeList } from '../NodeList'
|
|
8
9
|
import { NeighborFinder } from './NeighborFinder'
|
|
9
|
-
import { StreamPartID } from '@streamr/protocol'
|
|
10
10
|
|
|
11
11
|
interface NeighborUpdateRpcLocalOptions {
|
|
12
12
|
localPeerDescriptor: PeerDescriptor
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { PeerDescriptor, RpcRemote, getNodeIdFromPeerDescriptor } from '@streamr/dht'
|
|
2
|
-
import { Logger } from '@streamr/utils'
|
|
2
|
+
import { Logger, StreamPartID } from '@streamr/utils'
|
|
3
3
|
import { NeighborUpdate } from '../../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
4
4
|
import { NeighborUpdateRpcClient } from '../../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
5
|
-
import { StreamPartID } from '@streamr/protocol'
|
|
6
5
|
|
|
7
6
|
const logger = new Logger(module)
|
|
8
7
|
|
|
@@ -6,8 +6,7 @@ import {
|
|
|
6
6
|
PeerDescriptor,
|
|
7
7
|
getNodeIdFromPeerDescriptor
|
|
8
8
|
} from '@streamr/dht'
|
|
9
|
-
import { StreamPartID } from '@streamr/
|
|
10
|
-
import { EthereumAddress, Logger, addManagedEventListener, wait } from '@streamr/utils'
|
|
9
|
+
import { EthereumAddress, Logger, StreamPartID, addManagedEventListener, wait } from '@streamr/utils'
|
|
11
10
|
import { EventEmitter } from 'eventemitter3'
|
|
12
11
|
import { sampleSize } from 'lodash'
|
|
13
12
|
import {
|
|
@@ -18,14 +17,14 @@ import {
|
|
|
18
17
|
StreamMessage
|
|
19
18
|
} from '../../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
20
19
|
import { ContentDeliveryRpcClient, ProxyConnectionRpcClient } from '../../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
20
|
+
import { ContentDeliveryRpcLocal } from '../ContentDeliveryRpcLocal'
|
|
21
|
+
import { ContentDeliveryRpcRemote } from '../ContentDeliveryRpcRemote'
|
|
21
22
|
import { DuplicateMessageDetector } from '../DuplicateMessageDetector'
|
|
22
23
|
import { NodeList } from '../NodeList'
|
|
23
|
-
import {
|
|
24
|
-
import { ContentDeliveryRpcLocal } from '../ContentDeliveryRpcLocal'
|
|
24
|
+
import { formStreamPartContentDeliveryServiceId } from '../formStreamPartDeliveryServiceId'
|
|
25
25
|
import { Propagation } from '../propagation/Propagation'
|
|
26
26
|
import { markAndCheckDuplicate } from '../utils'
|
|
27
27
|
import { ProxyConnectionRpcRemote } from './ProxyConnectionRpcRemote'
|
|
28
|
-
import { formStreamPartContentDeliveryServiceId } from '../formStreamPartDeliveryServiceId'
|
|
29
28
|
|
|
30
29
|
// TODO use options option or named constant?
|
|
31
30
|
export const retry = async <T>(task: () => Promise<T>, description: string, abortSignal: AbortSignal, delay = 10000): Promise<T> => {
|
|
@@ -259,8 +258,8 @@ export class ProxyClient extends EventEmitter<Events> {
|
|
|
259
258
|
|
|
260
259
|
async start(): Promise<void> {
|
|
261
260
|
this.registerDefaultServerMethods()
|
|
262
|
-
addManagedEventListener
|
|
263
|
-
this.options.transport
|
|
261
|
+
addManagedEventListener(
|
|
262
|
+
this.options.transport,
|
|
264
263
|
'disconnected',
|
|
265
264
|
// TODO should we catch possible promise rejection?
|
|
266
265
|
(peerDescriptor: PeerDescriptor) => this.onNodeDisconnected(peerDescriptor),
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { ServerCallContext } from '@protobuf-ts/runtime-rpc'
|
|
2
|
-
import {
|
|
2
|
+
import { DhtAddress, DhtCallContext, ListeningRpcCommunicator, PeerDescriptor, getNodeIdFromPeerDescriptor } from '@streamr/dht'
|
|
3
|
+
import { EthereumAddress, Logger, StreamPartID, binaryToHex, toEthereumAddress } from '@streamr/utils'
|
|
4
|
+
import { EventEmitter } from 'eventemitter3'
|
|
5
|
+
import {
|
|
3
6
|
ProxyConnectionRequest,
|
|
4
7
|
ProxyConnectionResponse,
|
|
5
8
|
ProxyDirection,
|
|
6
9
|
StreamMessage
|
|
7
10
|
} from '../../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
11
|
+
import { ContentDeliveryRpcClient } from '../../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
8
12
|
import { IProxyConnectionRpc } from '../../proto/packages/trackerless-network/protos/NetworkRpc.server'
|
|
9
13
|
import { ContentDeliveryRpcRemote } from '../ContentDeliveryRpcRemote'
|
|
10
|
-
import { DhtAddress, DhtCallContext, ListeningRpcCommunicator, PeerDescriptor, getNodeIdFromPeerDescriptor } from '@streamr/dht'
|
|
11
|
-
import { ContentDeliveryRpcClient } from '../../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
12
|
-
import { EventEmitter } from 'eventemitter3'
|
|
13
|
-
import { EthereumAddress, Logger, binaryToHex, toEthereumAddress } from '@streamr/utils'
|
|
14
|
-
import { StreamPartID } from '@streamr/protocol'
|
|
15
14
|
|
|
16
15
|
const logger = new Logger(module)
|
|
17
16
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ServerCallContext } from '@protobuf-ts/runtime-rpc'
|
|
2
|
-
import {
|
|
2
|
+
import { ConnectionLocker, DhtAddress, DhtCallContext, ListeningRpcCommunicator, getNodeIdFromPeerDescriptor } from '@streamr/dht'
|
|
3
|
+
import { StreamPartID } from '@streamr/utils'
|
|
4
|
+
import { Empty } from '../../proto/google/protobuf/empty'
|
|
5
|
+
import { PeerDescriptor } from '../../proto/packages/dht/protos/DhtRpc'
|
|
6
|
+
import {
|
|
3
7
|
CloseTemporaryConnection,
|
|
4
8
|
TemporaryConnectionRequest,
|
|
5
9
|
TemporaryConnectionResponse
|
|
6
10
|
} from '../../proto/packages/trackerless-network/protos/NetworkRpc'
|
|
7
|
-
import { ITemporaryConnectionRpc } from '../../proto/packages/trackerless-network/protos/NetworkRpc.server'
|
|
8
|
-
import { ConnectionLocker, DhtAddress, DhtCallContext, ListeningRpcCommunicator, getNodeIdFromPeerDescriptor } from '@streamr/dht'
|
|
9
11
|
import { ContentDeliveryRpcClient } from '../../proto/packages/trackerless-network/protos/NetworkRpc.client'
|
|
10
|
-
import {
|
|
12
|
+
import { ITemporaryConnectionRpc } from '../../proto/packages/trackerless-network/protos/NetworkRpc.server'
|
|
11
13
|
import { ContentDeliveryRpcRemote } from '../ContentDeliveryRpcRemote'
|
|
12
|
-
import {
|
|
13
|
-
import { Empty } from '../../proto/google/protobuf/empty'
|
|
14
|
-
import { StreamPartID } from '@streamr/protocol'
|
|
14
|
+
import { NodeList } from '../NodeList'
|
|
15
15
|
|
|
16
16
|
interface TemporaryConnectionRpcLocalOptions {
|
|
17
17
|
rpcCommunicator: ListeningRpcCommunicator
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
2
|
|
|
3
|
+
import { DhtAddress } from '@streamr/dht'
|
|
4
|
+
import { StreamPartIDUtils } from '@streamr/utils'
|
|
3
5
|
import { groupBy, range } from 'lodash'
|
|
4
6
|
import { streamPartIdToDataKey } from '../../src/logic/ContentDeliveryManager'
|
|
5
|
-
import { StreamPartIDUtils } from '@streamr/protocol'
|
|
6
|
-
import { DhtAddress } from '@streamr/dht'
|
|
7
7
|
|
|
8
8
|
describe('StreamPartIdDataKeyDistribution', () => {
|
|
9
9
|
|
|
@@ -9,24 +9,20 @@ import {
|
|
|
9
9
|
Simulator
|
|
10
10
|
} from '@streamr/dht'
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
EncryptionType,
|
|
14
|
-
MessageID,
|
|
15
|
-
SignatureType,
|
|
16
|
-
StreamMessage,
|
|
17
|
-
StreamMessageType,
|
|
12
|
+
hexToBinary,
|
|
18
13
|
StreamPartID,
|
|
19
14
|
StreamPartIDUtils,
|
|
20
15
|
toStreamID,
|
|
21
|
-
toStreamPartID
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
toStreamPartID,
|
|
17
|
+
utf8ToBinary, waitForEvent3
|
|
18
|
+
} from '@streamr/utils'
|
|
24
19
|
import fs from 'fs'
|
|
25
|
-
import {
|
|
20
|
+
import { ContentDeliveryLayerNode } from '../../src/logic/ContentDeliveryLayerNode'
|
|
26
21
|
import { streamPartIdToDataKey } from '../../src/logic/ContentDeliveryManager'
|
|
27
|
-
import { createMockPeerDescriptor, createNetworkNodeWithSimulator } from '../utils/utils'
|
|
28
22
|
import { DiscoveryLayerNode } from '../../src/logic/DiscoveryLayerNode'
|
|
29
|
-
import {
|
|
23
|
+
import { NetworkNode } from '../../src/NetworkNode'
|
|
24
|
+
import { ContentType, EncryptionType, SignatureType } from '../../src/proto/packages/trackerless-network/protos/NetworkRpc'
|
|
25
|
+
import { createMockPeerDescriptor, createNetworkNodeWithSimulator } from '../utils/utils'
|
|
30
26
|
|
|
31
27
|
const numNodes = 10000
|
|
32
28
|
|
|
@@ -86,25 +82,28 @@ const measureJoiningTime = async () => {
|
|
|
86
82
|
console.log(stream)
|
|
87
83
|
publishInterval = setInterval(() => {
|
|
88
84
|
i += 1
|
|
89
|
-
const streamMessage =
|
|
90
|
-
messageId:
|
|
91
|
-
StreamPartIDUtils.getStreamID(stream),
|
|
92
|
-
0,
|
|
93
|
-
i,
|
|
94
|
-
Math.floor(Math.random() * 20000),
|
|
95
|
-
'
|
|
96
|
-
'msgChainId'
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
85
|
+
const streamMessage = {
|
|
86
|
+
messageId: {
|
|
87
|
+
streamId: StreamPartIDUtils.getStreamID(stream),
|
|
88
|
+
streamPartition: 0,
|
|
89
|
+
timestamp: i,
|
|
90
|
+
sequenceNumber: Math.floor(Math.random() * 20000),
|
|
91
|
+
publisherId: hexToBinary('0x2222'),
|
|
92
|
+
messageChainId: 'msgChainId'
|
|
93
|
+
},
|
|
94
|
+
body: {
|
|
95
|
+
oneofKind: 'contentMessage' as const,
|
|
96
|
+
contentMessage: {
|
|
97
|
+
content: utf8ToBinary(JSON.stringify({
|
|
98
|
+
hello: 'world'
|
|
99
|
+
})),
|
|
100
|
+
contentType: ContentType.JSON,
|
|
101
|
+
encryptionType: EncryptionType.NONE,
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
104
|
signature: hexToBinary('0x1234'),
|
|
105
105
|
signatureType: SignatureType.SECP256K1,
|
|
106
|
-
|
|
107
|
-
})
|
|
106
|
+
}
|
|
108
107
|
streamParts.get(stream)!.broadcast(streamMessage)
|
|
109
108
|
}, 1000)
|
|
110
109
|
// get random node from network to use as entrypoint
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ConnectionManager, DhtNode, PeerDescriptor } from '@streamr/dht'
|
|
2
|
-
import { ContentDeliveryLayerNode } from '../../src/logic/ContentDeliveryLayerNode'
|
|
3
|
-
import { waitForCondition } from '@streamr/utils'
|
|
4
|
-
import { createMockPeerDescriptor, createStreamMessage } from '../utils/utils'
|
|
5
|
-
import { createContentDeliveryLayerNode } from '../../src/logic/createContentDeliveryLayerNode'
|
|
6
|
-
import { StreamPartIDUtils } from '@streamr/protocol'
|
|
7
2
|
import { randomEthereumAddress } from '@streamr/test-utils'
|
|
3
|
+
import { StreamPartIDUtils, waitForCondition } from '@streamr/utils'
|
|
4
|
+
import { ContentDeliveryLayerNode } from '../../src/logic/ContentDeliveryLayerNode'
|
|
8
5
|
import { ControlLayerNode } from '../../src/logic/ControlLayerNode'
|
|
9
6
|
import { DiscoveryLayerNode } from '../../src/logic/DiscoveryLayerNode'
|
|
7
|
+
import { createContentDeliveryLayerNode } from '../../src/logic/createContentDeliveryLayerNode'
|
|
8
|
+
import { createMockPeerDescriptor, createStreamMessage } from '../utils/utils'
|
|
10
9
|
|
|
11
10
|
describe('content delivery layer node with real connections', () => {
|
|
12
11
|
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ContentType,
|
|
3
|
-
EncryptionType,
|
|
4
|
-
MessageID,
|
|
5
|
-
MessageRef,
|
|
6
|
-
SignatureType,
|
|
7
|
-
StreamMessage,
|
|
8
|
-
StreamMessageType,
|
|
9
|
-
StreamPartIDUtils
|
|
10
|
-
} from '@streamr/protocol'
|
|
11
1
|
import { randomEthereumAddress } from '@streamr/test-utils'
|
|
12
|
-
import { hexToBinary, utf8ToBinary, waitForCondition } from '@streamr/utils'
|
|
2
|
+
import { StreamPartIDUtils, hexToBinary, utf8ToBinary, waitForCondition } from '@streamr/utils'
|
|
13
3
|
import { NetworkNode, createNetworkNode } from '../../src/NetworkNode'
|
|
4
|
+
import { ContentType, EncryptionType, SignatureType, StreamMessage } from '../../src/proto/packages/trackerless-network/protos/NetworkRpc'
|
|
14
5
|
import { createMockPeerDescriptor } from '../utils/utils'
|
|
15
6
|
|
|
16
7
|
const STREAM_PART_ID = StreamPartIDUtils.parse('stream#0')
|
|
@@ -47,25 +38,32 @@ describe('inspect', () => {
|
|
|
47
38
|
|
|
48
39
|
let inspectorNode: NetworkNode
|
|
49
40
|
|
|
50
|
-
const message =
|
|
51
|
-
messageId:
|
|
52
|
-
StreamPartIDUtils.getStreamID(STREAM_PART_ID),
|
|
53
|
-
StreamPartIDUtils.getStreamPartition(STREAM_PART_ID),
|
|
54
|
-
666,
|
|
55
|
-
0,
|
|
56
|
-
randomEthereumAddress(),
|
|
57
|
-
'msgChainId'
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
41
|
+
const message: StreamMessage = {
|
|
42
|
+
messageId: {
|
|
43
|
+
streamId: StreamPartIDUtils.getStreamID(STREAM_PART_ID),
|
|
44
|
+
streamPartition: StreamPartIDUtils.getStreamPartition(STREAM_PART_ID),
|
|
45
|
+
timestamp: 666,
|
|
46
|
+
sequenceNumber: 0,
|
|
47
|
+
publisherId: hexToBinary(randomEthereumAddress()),
|
|
48
|
+
messageChainId: 'msgChainId'
|
|
49
|
+
},
|
|
50
|
+
previousMessageRef: {
|
|
51
|
+
timestamp: 665,
|
|
52
|
+
sequenceNumber: 0
|
|
53
|
+
},
|
|
54
|
+
body: {
|
|
55
|
+
oneofKind: 'contentMessage',
|
|
56
|
+
contentMessage: {
|
|
57
|
+
content: utf8ToBinary(JSON.stringify({
|
|
58
|
+
hello: 'world'
|
|
59
|
+
})),
|
|
60
|
+
contentType: ContentType.JSON,
|
|
61
|
+
encryptionType: EncryptionType.NONE
|
|
62
|
+
}
|
|
63
|
+
},
|
|
66
64
|
signatureType: SignatureType.SECP256K1,
|
|
67
65
|
signature: hexToBinary('0x1234'),
|
|
68
|
-
}
|
|
66
|
+
}
|
|
69
67
|
|
|
70
68
|
beforeEach(async () => {
|
|
71
69
|
publisherNode = createNetworkNode({
|