Skip to content

Commit

Permalink
chore: bump akash-api to v0.0.31 (#1901)
Browse files Browse the repository at this point in the history
this change increase resources max limits

Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Nov 9, 2023
1 parent a6b0cf1 commit 4479031
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/akash-network/node
go 1.21

require (
github.com/akash-network/akash-api v0.0.30
github.com/akash-network/akash-api v0.0.31
github.com/blang/semver/v4 v4.0.0
github.com/boz/go-lifecycle v0.1.1
github.com/cosmos/cosmos-sdk v0.45.16
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBA
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY=
github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw=
github.com/akash-network/akash-api v0.0.30 h1:zDNgudNmfiDgjhE3+caeT/Qy1d4Wr5FEtoe/1sFNwwY=
github.com/akash-network/akash-api v0.0.30/go.mod h1:pW5NnJNhxynCOUGEcgxa338GSU2qzMkpn3MMYcAY6O4=
github.com/akash-network/akash-api v0.0.31 h1:2U2f7vN2eyLbSV7ombWyXnsFZ2ZfE4brjSMq46hkL3k=
github.com/akash-network/akash-api v0.0.31/go.mod h1:pW5NnJNhxynCOUGEcgxa338GSU2qzMkpn3MMYcAY6O4=
github.com/akash-network/cometbft v0.34.27-akash h1:V1dApDOr8Ee7BJzYyQ7Z9VBtrAul4+baMeA6C49dje0=
github.com/akash-network/cometbft v0.34.27-akash/go.mod h1:BcCbhKv7ieM0KEddnYXvQZR+pZykTKReJJYf7YC7qhw=
github.com/akash-network/ledger-go v0.14.3 h1:LCEFkTfgGA2xFMN2CtiKvXKE7dh0QSM77PJHCpSkaAo=
Expand Down
24 changes: 12 additions & 12 deletions testutil/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,26 @@ func PlacementRequirements(t testing.TB) types.PlacementRequirements {

func RandCPUUnits() uint {
return RandRangeUint(
dtypes.GetValidationConfig().MinUnitCPU,
dtypes.GetValidationConfig().MaxUnitCPU)
dtypes.GetValidationConfig().Unit.Min.CPU,
dtypes.GetValidationConfig().Unit.Max.CPU)
}

func RandGPUUnits() uint {
return RandRangeUint(
dtypes.GetValidationConfig().MinUnitGPU,
dtypes.GetValidationConfig().MaxUnitGPU)
dtypes.GetValidationConfig().Unit.Min.GPU,
dtypes.GetValidationConfig().Unit.Max.GPU)
}

func RandMemoryQuantity() uint64 {
return RandRangeUint64(
dtypes.GetValidationConfig().MinUnitMemory,
dtypes.GetValidationConfig().MaxUnitMemory)
dtypes.GetValidationConfig().Unit.Min.Memory,
dtypes.GetValidationConfig().Unit.Max.Memory)
}

func RandStorageQuantity() uint64 {
return RandRangeUint64(
dtypes.GetValidationConfig().MinUnitStorage,
dtypes.GetValidationConfig().MaxUnitStorage)
dtypes.GetValidationConfig().Unit.Min.Storage,
dtypes.GetValidationConfig().Unit.Max.Storage)
}

// Resources produces an attribute list for populating a Group's
Expand All @@ -96,17 +96,17 @@ func Resources(t testing.TB) []dtypes.ResourceUnit {
Resources: types.Resources{
ID: uint32(i) + 1,
CPU: &types.CPU{
Units: types.NewResourceValue(uint64(dtypes.GetValidationConfig().MinUnitCPU)),
Units: types.NewResourceValue(uint64(dtypes.GetValidationConfig().Unit.Min.CPU)),
},
GPU: &types.GPU{
Units: types.NewResourceValue(uint64(dtypes.GetValidationConfig().MinUnitGPU)),
Units: types.NewResourceValue(uint64(dtypes.GetValidationConfig().Unit.Min.GPU)),
},
Memory: &types.Memory{
Quantity: types.NewResourceValue(dtypes.GetValidationConfig().MinUnitMemory),
Quantity: types.NewResourceValue(dtypes.GetValidationConfig().Unit.Min.Memory),
},
Storage: types.Volumes{
types.Storage{
Quantity: types.NewResourceValue(dtypes.GetValidationConfig().MinUnitStorage),
Quantity: types.NewResourceValue(dtypes.GetValidationConfig().Unit.Min.Storage),
},
},
},
Expand Down

0 comments on commit 4479031

Please sign in to comment.