From 579aa458a53ecd966bc4ecc17bbce088efab6d9e Mon Sep 17 00:00:00 2001 From: Roy Li Date: Fri, 10 May 2024 12:57:56 -0400 Subject: [PATCH] Stop passing in app PreBlocker to slinky VE handler --- protocol/app/app.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/protocol/app/app.go b/protocol/app/app.go index d462824cad4..cc304bc9faa 100644 --- a/protocol/app/app.go +++ b/protocol/app/app.go @@ -1542,7 +1542,12 @@ func (app *App) initOracle(pricesTxDecoder process.UpdateMarketPriceTxDecoder) { compression.NewDefaultVoteExtensionCodec(), compression.NewZLibCompressor(), ), - app.PreBlocker, + // We are not using the slinky PreBlocker, so there is no need to pass in PreBlocker here. + // Currently, the clob PreBlocker assumes that it will only be called during the normal ABCI + // PreBlocker step, so passing in the app PreBlocker will cause issues. + func(_ sdk.Context, _ *abci.RequestFinalizeBlock) (*sdk.ResponsePreBlock, error) { + return nil, nil + }, app.oracleMetrics, )