File tree Expand file tree Collapse file tree 2 files changed +23
-12
lines changed Expand file tree Collapse file tree 2 files changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -29,20 +29,24 @@ class EventHandler {
29
29
getEventHandlerStatus ( ) {
30
30
return {
31
31
isEnabled : true ,
32
- maxNumEventChannels : NodeConfigs . MAX_NUM_EVENT_CHANNELS ,
33
- numEventChannels : this . eventChannelManager . getNumEventChannels ( ) ,
34
- maxNumEventFilters : NodeConfigs . MAX_NUM_EVENT_FILTERS ,
35
- numEventFilters : this . getNumEventFilters ( ) ,
32
+ networkInfo : this . eventChannelManager . getNetworkInfo ( ) ,
33
+ filterInfo : this . getFilterInfo ( ) ,
34
+ channelInfo : this . eventChannelManager . getChannelInfo ( ) ,
36
35
} ;
37
36
}
38
37
39
38
static getDefaultEventHandlerStatus ( ) {
40
39
return {
41
40
isEnabled : false ,
42
- maxNumEventChannels : NodeConfigs . MAX_NUM_EVENT_CHANNELS ,
43
- numEventChannels : 0 ,
44
- maxNumEventFilters : NodeConfigs . MAX_NUM_EVENT_FILTERS ,
45
- numEventFilters : 0 ,
41
+ networkInfo : {
42
+ url : "" ,
43
+ maxNumEventChannels : NodeConfigs . MAX_NUM_EVENT_CHANNELS ,
44
+ numEventChannels : 0 ,
45
+ maxNumEventFilters : NodeConfigs . MAX_NUM_EVENT_FILTERS ,
46
+ numEventFilters : 0 ,
47
+ } ,
48
+ filterInfo : { } ,
49
+ channelInfo : { } ,
46
50
} ;
47
51
}
48
52
Original file line number Diff line number Diff line change @@ -225,10 +225,17 @@ describe("P2p", () => {
225
225
} ,
226
226
eventHandlerStatus : {
227
227
isEnabled : false ,
228
- maxNumEventChannels : 10 ,
229
- maxNumEventFilters : 20 ,
230
- numEventChannels : 0 ,
231
- numEventFilters : 0 ,
228
+ networkInfo : {
229
+ url : "" ,
230
+ maxNumEventChannels : 10 ,
231
+ numEventChannels : 0 ,
232
+ maxNumEventFilters : 20 ,
233
+ numEventFilters : 0 ,
234
+ } ,
235
+ filterInfo : {
236
+ } ,
237
+ channelInfo : {
238
+ } ,
232
239
}
233
240
} ) ;
234
241
} ) ;
You can’t perform that action at this time.
0 commit comments