mirror of
https://github.com/colinear-labs/chain.git
synced 2026-03-04 23:44:24 -08:00
CLI tests, updates, fixes (reflect hw options)
This commit is contained in:
@@ -88,7 +88,11 @@ found:
|
||||
LeaseEnd: msg.LeaseEnd,
|
||||
// remaining payout -> null
|
||||
// Remaining: "0",
|
||||
Gpus: msg.Gpus,
|
||||
Gpus: msg.Gpus,
|
||||
CpuArch: msg.CpuArch,
|
||||
CpuCores: msg.CpuCores,
|
||||
MemMb: msg.MemMb,
|
||||
StorageGb: msg.StorageGb,
|
||||
}
|
||||
|
||||
// validate hardware
|
||||
@@ -156,8 +160,8 @@ func (k *Keeper) ValidateAuctionHardware(ctx sdk.Context, a types.Auction) error
|
||||
|
||||
// move these to module params later
|
||||
|
||||
if a.CpuCores == 0 || a.CpuCores > 12 {
|
||||
return errors.New("CPU Cores must be between 0 and 12")
|
||||
if a.CpuCores < 1 || a.CpuCores > 12 {
|
||||
return fmt.Errorf("CPU Cores must be between 1 and 12 (got %d)", a.CpuCores)
|
||||
}
|
||||
|
||||
if a.StorageGb < 25 || a.StorageGb > 2000 {
|
||||
|
||||
Reference in New Issue
Block a user