Skip to content

Commit

Permalink
Fix: fixed storage layout
Browse files Browse the repository at this point in the history
  • Loading branch information
hmoog committed Oct 28, 2023
1 parent a62763c commit 5d5dccf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/storage/prunable/epochstore/epoch_kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ func NewEpochKVStore(storeRealm kvstore.Realm, kv kvstore.KVStore, pruningDelay

return &EpochKVStore{
realm: storeRealm,
kv: lo.PanicOnErr(kv.WithExtendedRealm(storeRealm)),
kv: lo.PanicOnErr(kv.WithExtendedRealm(append(storeRealm, entriesKey))),
pruningDelay: pruningDelay,
lastAccessedEpoch: kvstore.NewTypedValue(kv, kvstore.Realm{lastAccessedEpochKey}, iotago.EpochIndex.Bytes, iotago.EpochIndexFromBytes),
lastPrunedEpoch: model.NewPruningIndex(lo.PanicOnErr(kv.WithExtendedRealm(kvstore.Realm{lastPrunedEpochKey})), storeRealm),
lastAccessedEpoch: kvstore.NewTypedValue(kv, append(storeRealm, lastAccessedEpochKey), iotago.EpochIndex.Bytes, iotago.EpochIndexFromBytes),
lastPrunedEpoch: model.NewPruningIndex(lo.PanicOnErr(kv.WithExtendedRealm(storeRealm)), kvstore.Realm{lastPrunedEpochKey}),
}
}

Expand Down

0 comments on commit 5d5dccf

Please sign in to comment.