diff --git a/plugins/dex/order/keeper_recovery.go b/plugins/dex/order/keeper_recovery.go index 860e6dc82..5cc63b4ab 100644 --- a/plugins/dex/order/keeper_recovery.go +++ b/plugins/dex/order/keeper_recovery.go @@ -23,8 +23,10 @@ import ( bnclog "github.com/binance-chain/node/common/log" "github.com/binance-chain/node/common/upgrade" "github.com/binance-chain/node/common/utils" + "github.com/binance-chain/node/plugins/dex/list" me "github.com/binance-chain/node/plugins/dex/matcheng" "github.com/binance-chain/node/wire" + dexutils "github.com/binance-chain/node/plugins/dex/utils" ) type OrderBookSnapshot struct { @@ -241,6 +243,10 @@ func (kp *DexKeeper) replayOneBlocks(logger log.Logger, block *tmtypes.Block, st logger.Error("Failed to replay cancel msg", "err", err) } logger.Info("Canceled Order", "order", msg) + case list.ListMiniMsg: + kp.engines[dexutils.Assets2TradingPair(msg.BaseAssetSymbol,msg.QuoteAssetSymbol)].LastMatchHeight = 0 + case list.ListMsg: + kp.engines[dexutils.Assets2TradingPair(msg.BaseAssetSymbol,msg.QuoteAssetSymbol)].LastMatchHeight = 0 } } }