@@ -194,11 +194,15 @@ func (state *State) bootstrapSealingSegment(segment *flow.SealingSegment, head *
194194 height := block .Header .Height
195195 err := state .blocks .StoreTx (block )(tx )
196196 if err != nil {
197- return fmt .Errorf ("could not insert root block: %w" , err )
197+ return fmt .Errorf ("could not insert SealingSegment extra block: %w" , err )
198198 }
199199 err = transaction .WithTx (operation .IndexBlockHeight (height , blockID ))(tx )
200200 if err != nil {
201- return fmt .Errorf ("could not index root block segment (id=%x): %w" , blockID , err )
201+ return fmt .Errorf ("could not index SealingSegment extra block (id=%x): %w" , blockID , err )
202+ }
203+ err = state .qcs .StoreTx (block .Header .QuorumCertificate ())(tx )
204+ if err != nil {
205+ return fmt .Errorf ("could not store qc for SealingSegment extra block (id=%x): %w" , blockID , err )
202206 }
203207 }
204208
@@ -208,11 +212,15 @@ func (state *State) bootstrapSealingSegment(segment *flow.SealingSegment, head *
208212
209213 err := state .blocks .StoreTx (block )(tx )
210214 if err != nil {
211- return fmt .Errorf ("could not insert root block: %w" , err )
215+ return fmt .Errorf ("could not insert SealingSegment block: %w" , err )
212216 }
213217 err = transaction .WithTx (operation .IndexBlockHeight (height , blockID ))(tx )
214218 if err != nil {
215- return fmt .Errorf ("could not index root block segment (id=%x): %w" , blockID , err )
219+ return fmt .Errorf ("could not index SealingSegment block (id=%x): %w" , blockID , err )
220+ }
221+ err = state .qcs .StoreTx (block .Header .QuorumCertificate ())(tx )
222+ if err != nil {
223+ return fmt .Errorf ("could not store qc for SealingSegment block (id=%x): %w" , blockID , err )
216224 }
217225
218226 // index the latest seal as of this block
0 commit comments