File tree Expand file tree Collapse file tree 2 files changed +3
-19
lines changed Expand file tree Collapse file tree 2 files changed +3
-19
lines changed Original file line number Diff line number Diff line change 33
33
)
34
34
35
35
// Syncing returns the syncing status of the node.
36
- func (h * Handler ) Syncing (handlers.Context ) (any , error ) {
36
+ func (h * Handler ) Syncing (_ handlers.Context ) (any , error ) {
37
37
node := h .backend .GetNode ()
38
38
if node == nil {
39
39
return nil , errNilNode
@@ -62,5 +62,6 @@ func (h *Handler) Syncing(handlers.Context) (any, error) {
62
62
response .IsSyncing = true
63
63
}
64
64
65
- return nodetypes .NewResponse (& response ), nil
65
+ return response , nil
66
+
66
67
}
Original file line number Diff line number Diff line change @@ -27,20 +27,3 @@ type SyncingData struct {
27
27
IsOptimistic bool `json:"is_optimistic"`
28
28
ELOffline bool `json:"el_offline"`
29
29
}
30
-
31
- type GenericResponse struct {
32
- ExecutionOptimistic bool `json:"execution_optimistic"`
33
- Finalized bool `json:"finalized"`
34
- Data any `json:"data"`
35
- }
36
-
37
- // NewResponse creates a new response with CometBFT's finality guarantees.
38
- func NewResponse (data any ) GenericResponse {
39
- return GenericResponse {
40
- // All data is finalized in CometBFT since we only return data for slots up to head
41
- Finalized : true ,
42
- // Never optimistic since we only return finalized data
43
- ExecutionOptimistic : false ,
44
- Data : data ,
45
- }
46
- }
You can’t perform that action at this time.
0 commit comments