Skip to content

Commit

Permalink
Fix snapshot bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lumos42 committed Sep 3, 2023
1 parent 9f659b2 commit b856238
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin/evm/orderbook/memory_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b856238

Please sign in to comment.