Skip to content

Commit

Permalink
move snapshot back to end of pcs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfung-dydx committed Aug 1, 2024
1 parent be39027 commit b711396
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protocol/x/clob/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,6 @@ func PrepareCheckState(
// Prune any rate limiting information that is no longer relevant.
keeper.PruneRateLimits(ctx)

// Initialize new streams with orderbook snapshots, if any.
keeper.InitializeNewStreams(ctx)

// Get the events generated from processing the matches in the latest block.
processProposerMatchesEvents := keeper.GetProcessProposerMatchesEvents(ctx)
if ctx.BlockHeight() != int64(processProposerMatchesEvents.BlockHeight) {
Expand Down Expand Up @@ -261,6 +258,9 @@ func PrepareCheckState(
types.GetInternalOperationsQueueTextString(newLocalValidatorOperationsQueue),
)

// Initialize new streams with orderbook snapshots, if any.
keeper.InitializeNewStreams(ctx)

// Set per-orderbook gauges.
keeper.MemClob.SetMemclobGauges(ctx)
}

0 comments on commit b711396

Please sign in to comment.