From b8562389743d1b230e1ab5122a88ca3dfa3bc290 Mon Sep 17 00:00:00 2001 From: Shubham Goyal Date: Sun, 3 Sep 2023 18:49:51 +0530 Subject: [PATCH] Fix snapshot bug --- plugin/evm/orderbook/memory_database.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/evm/orderbook/memory_database.go b/plugin/evm/orderbook/memory_database.go index f4b1e28fe9..00cbe99f48 100644 --- a/plugin/evm/orderbook/memory_database.go +++ b/plugin/evm/orderbook/memory_database.go @@ -264,6 +264,8 @@ func (db *InMemoryDatabase) LoadFromSnapshot(snapshot Snapshot) error { db.TraderMap = snapshot.Data.TraderMap db.LastPrice = snapshot.Data.LastPrice db.NextFundingTime = snapshot.Data.NextFundingTime + db.NextSamplePITime = snapshot.Data.NextSamplePITime + db.CumulativePremiumFraction = snapshot.Data.CumulativePremiumFraction return nil }