From b7113963d037f0d2d9f2522830fd48eb6e3418b5 Mon Sep 17 00:00:00 2001 From: Jonathan Fung Date: Thu, 1 Aug 2024 16:49:05 -0400 Subject: [PATCH] move snapshot back to end of pcs --- protocol/x/clob/abci.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/protocol/x/clob/abci.go b/protocol/x/clob/abci.go index bd62a7b819..381ba41f82 100644 --- a/protocol/x/clob/abci.go +++ b/protocol/x/clob/abci.go @@ -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) { @@ -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) }