@@ -33,12 +33,15 @@ export class PortalNetworkUTP {
33
33
this . requestManagers = { }
34
34
}
35
35
36
- closeAllPeerRequests ( nodeId : string ) {
37
- this . requestManagers [ nodeId ] . closeAllRequests ( )
36
+ closeAllPeerRequests ( nodeId : string ) {
37
+ this . requestManagers [ nodeId ] . closeAllRequests ( )
38
38
}
39
39
40
40
hasRequests ( nodeId : string ) : boolean {
41
- return this . requestManagers [ nodeId ] !== undefined && Object . keys ( this . requestManagers [ nodeId ] . requestMap ) . length > 0
41
+ return (
42
+ this . requestManagers [ nodeId ] !== undefined &&
43
+ Object . keys ( this . requestManagers [ nodeId ] . requestMap ) . length > 0
44
+ )
42
45
}
43
46
44
47
openRequests ( ) : number {
@@ -115,7 +118,9 @@ export class PortalNetworkUTP {
115
118
contentKeys,
116
119
} )
117
120
await this . requestManagers [ enr . nodeId ] . handleNewRequest ( connectionId , newRequest )
118
- this . logger . extend ( 'utpRequest' ) ( `New ${ RequestCode [ requestCode ] } Request with ${ enr . nodeId } -- ConnectionId: ${ connectionId } ` )
121
+ this . logger . extend ( 'utpRequest' ) (
122
+ `New ${ RequestCode [ requestCode ] } Request with ${ enr . nodeId } -- ConnectionId: ${ connectionId } ` ,
123
+ )
119
124
this . logger . extend ( 'utpRequest' ) ( `Open Requests: ${ this . openRequests ( ) } ` )
120
125
return newRequest
121
126
}
@@ -137,7 +142,7 @@ export class PortalNetworkUTP {
137
142
pType : PacketType . ST_RESET ,
138
143
ackNr : 0 ,
139
144
extension : 0 ,
140
- version : 0 ,
145
+ version : 1 ,
141
146
timestampMicroseconds : 0 ,
142
147
timestampDifferenceMicroseconds : 0 ,
143
148
seqNr : 0 ,
0 commit comments