File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
- ## [ 0.0.0.47 ] - 2023-04-17
10
+ ## [ 0.0.0.48 ] - 2023-04-17
11
11
12
12
- Debug logging improvements
13
13
14
+ ## [ 0.0.0.47] - 2023-04-17
15
+
16
+ - Log warnings in ` handleStateSyncMessage() `
17
+
14
18
## [ 0.0.0.46] - 2023-04-13
15
19
16
20
- Utilise the ` TxResult ` protobuf from ` shared/core/types `
Original file line number Diff line number Diff line change @@ -38,7 +38,8 @@ func (m *consensusModule) handleStateSyncMessage(stateSyncMessage *typesCons.Sta
38
38
case * typesCons.StateSyncMessage_MetadataReq :
39
39
m .logger .Info ().Str ("proto_type" , "MetadataRequest" ).Msg ("Handling StateSyncMessage MetadataReq" )
40
40
if ! m .serverModeEnabled {
41
- return fmt .Errorf ("server module is not enabled" )
41
+ m .logger .Warn ().Msg ("Node's server module is not enabled" )
42
+ return nil
42
43
}
43
44
return m .stateSync .HandleStateSyncMetadataRequest (stateSyncMessage .GetMetadataReq ())
44
45
case * typesCons.StateSyncMessage_MetadataRes :
@@ -48,7 +49,8 @@ func (m *consensusModule) handleStateSyncMessage(stateSyncMessage *typesCons.Sta
48
49
case * typesCons.StateSyncMessage_GetBlockReq :
49
50
m .logger .Info ().Str ("proto_type" , "GetBlockRequest" ).Msg ("Handling StateSyncMessage GetBlockRequest" )
50
51
if ! m .serverModeEnabled {
51
- return fmt .Errorf ("server module is not enabled" )
52
+ m .logger .Warn ().Msg ("Node's server module is not enabled" )
53
+ return nil
52
54
}
53
55
return m .stateSync .HandleGetBlockRequest (stateSyncMessage .GetGetBlockReq ())
54
56
case * typesCons.StateSyncMessage_GetBlockRes :
You can’t perform that action at this time.
0 commit comments