mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-10 18:25:17 +00:00
fix: handle large consensus batches
This commit is contained in:
parent
520d6562f9
commit
5bce33216f
@ -687,12 +687,12 @@ func (e *CeremonyDataClockConsensusEngine) commitLongestPath(
|
||||
zap.Int("commit_depth", len(runningFrames[0])),
|
||||
)
|
||||
|
||||
for _, s := range runningFrames[0][1:] {
|
||||
txn, err := e.clockStore.NewTransaction()
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "commit longest path")
|
||||
}
|
||||
|
||||
for _, s := range runningFrames[0][1:] {
|
||||
e.logger.Info(
|
||||
"committing candidate",
|
||||
zap.Uint64("frame_number", s.FrameNumber),
|
||||
@ -796,7 +796,6 @@ func (e *CeremonyDataClockConsensusEngine) commitLongestPath(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if err := txn.Commit(); err != nil {
|
||||
e.logger.Error(
|
||||
@ -805,6 +804,7 @@ func (e *CeremonyDataClockConsensusEngine) commitLongestPath(
|
||||
)
|
||||
return nil, errors.Wrap(err, "commit longest path")
|
||||
}
|
||||
}
|
||||
|
||||
runningFrames = [][]*protobufs.ClockFrame{
|
||||
{nextRunningFrames[0][currentDepth+1]},
|
||||
|
Loading…
Reference in New Issue
Block a user