@@ -112,34 +112,36 @@ instance MetaTrace (TraceForgeEvent blk) where
112
112
" Start of the leadership check\n \
113
113
\\n \
114
114
\We record the current slot number."
115
- documentFor (Namespace _ [" SlotIsImmutable" ]) = Just
116
- " Leadership check failed: the tip of the ImmutableDB inhabits the\n \
117
- \current slot\n \
118
- \\n \
119
- \This might happen in two cases.\n \
120
- \\n \
121
- \1. the clock moved backwards, on restart we ignored everything from the\n \
122
- \ VolatileDB since it's all in the future, and now the tip of the\n \
123
- \ ImmutableDB points to a block produced in the same slot we're trying\n \
124
- \ to produce a block in\n \
125
- \\n \
126
- \2. k = 0 and we already adopted a block from another leader of the same\n \
127
- \ slot.\n \
128
- \\n \
129
- \We record both the current slot number as well as the tip of the\n \
130
- \ImmutableDB.\n \
131
- \\n \
132
- \See also <https://github.com/input-output-hk/ouroboros-network/issues/1462>"
133
- documentFor (Namespace _ [" BlockFromFuture" ]) = Just
134
- " Leadership check failed: the current chain contains a block from a slot\n \
135
- \/after/ the current slot\n \
136
- \\n \
137
- \This can only happen if the system is under heavy load.\n \
138
- \\n \
139
- \We record both the current slot number as well as the slot number of the\n \
140
- \block at the tip of the chain.\n \
141
- \\n \
142
- \See also <https://github.com/input-output-hk/ouroboros-network/issues/1462>"
115
+ documentFor (Namespace _ [" SlotIsImmutable" ]) = Just $ mconcat
116
+ [ " Leadership check failed: the tip of the ImmutableDB inhabits the\n "
117
+ , " current slot\n "
118
+ , " \n "
119
+ , " This might happen in two cases.\n "
120
+ , " \n "
121
+ , " 1. the clock moved backwards, on restart we ignored everything from the\n "
122
+ , " VolatileDB since it's all in the future, and now the tip of the\n "
123
+ , " ImmutableDB points to a block produced in the same slot we're trying\n "
124
+ , " to produce a block in\n "
125
+ , " \n "
126
+ , " 2. k = 0 and we already adopted a block from another leader of the same\n "
127
+ , " slot.\n "
128
+ , " \n "
129
+ , " We record both the current slot number as well as the tip of the\n "
130
+ , " ImmutableDB.\n "
131
+ , " \n "
132
+ , " See also <https://github.com/input-output-hk/ouroboros-network/issues/1462>"
133
+ ]
134
+ documentFor (Namespace _ [" BlockFromFuture" ]) = Just $ mconcat
135
+ [ " Leadership check failed: the current chain contains a block from a slot\n "
136
+ , " /after/ the current slot\n "
137
+ , " \n "
138
+ , " This can only happen if the system is under heavy load.\n "
139
+ , " \n "
140
+ , " We record both the current slot number as well as the slot number of the\n "
141
+ , " block at the tip of the chain.\n "
142
+ , " \n "
143
+ , " See also <https://github.com/input-output-hk/ouroboros-network/issues/1462>"
144
+ ]
143
145
documentFor _ns = Nothing
144
146
metricsDocFor (Namespace _ _) = []
145
147
allNamespaces = [ Namespace [] [" StartLeadershipCheck" ]
@@ -153,8 +155,11 @@ instance LogFormatting (TraceForgeEvent LogBlock) where
153
155
(unSlotNo slotNo)
154
156
forHuman (TraceSlotIsImmutable slotNo immutableTipPoint immutableTipBlkNo) = pack $
155
157
printf
156
- " Couldn't forge block because slot %u is immutable. \
157
- \ Immutable tip: %s, immutable tip block no: %i."
158
+ ( mconcat
159
+ [ " Couldn't forge block because slot %u is immutable. "
160
+ , " Immutable tip: %s, immutable tip block no: %i."
161
+ ]
162
+ )
158
163
(unSlotNo slotNo)
159
164
(show immutableTipPoint)
160
165
(unBlockNo immutableTipBlkNo)
0 commit comments