dc57640d9c
Part 2 of moving usedserials in memory * Drop usedserials table in storagenodedb * Use in-memory usedserials store in place of db for order limit verification * Update order limit grace period to be only one hour - this means uplinks must send their order limits to storagenodes within an hour of receiving them Change-Id: I37a0e1d2ca6cb80854a3ef495af2d1d1f92e9f03
28 lines
1.3 KiB
Go
28 lines
1.3 KiB
Go
// Copyright (C) 2020 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package testdata
|
|
|
|
import (
|
|
"storj.io/storj/storagenode/storagenodedb"
|
|
)
|
|
|
|
var v42 = MultiDBState{
|
|
Version: 42,
|
|
DBStates: DBStates{
|
|
storagenodedb.UsedSerialsDBName: &DBState{},
|
|
storagenodedb.StorageUsageDBName: v41.DBStates[storagenodedb.StorageUsageDBName],
|
|
storagenodedb.ReputationDBName: v41.DBStates[storagenodedb.ReputationDBName],
|
|
storagenodedb.PieceSpaceUsedDBName: v41.DBStates[storagenodedb.PieceSpaceUsedDBName],
|
|
storagenodedb.PieceInfoDBName: v41.DBStates[storagenodedb.PieceInfoDBName],
|
|
storagenodedb.PieceExpirationDBName: v41.DBStates[storagenodedb.PieceExpirationDBName],
|
|
storagenodedb.OrdersDBName: v41.DBStates[storagenodedb.OrdersDBName],
|
|
storagenodedb.BandwidthDBName: v41.DBStates[storagenodedb.BandwidthDBName],
|
|
storagenodedb.SatellitesDBName: v41.DBStates[storagenodedb.SatellitesDBName],
|
|
storagenodedb.DeprecatedInfoDBName: v41.DBStates[storagenodedb.DeprecatedInfoDBName],
|
|
storagenodedb.NotificationsDBName: v41.DBStates[storagenodedb.NotificationsDBName],
|
|
storagenodedb.HeldAmountDBName: v41.DBStates[storagenodedb.HeldAmountDBName],
|
|
storagenodedb.PricingDBName: v41.DBStates[storagenodedb.PricingDBName],
|
|
},
|
|
}
|