Skip to content

Commit

Permalink
Fix/vgf strategy (#520)
Browse files Browse the repository at this point in the history
fix: Change Vgf Strategy
  • Loading branch information
rrr523 authored Apr 18, 2024
1 parent c346d6b commit caf93ce
Show file tree
Hide file tree
Showing 4 changed files with 432 additions and 161 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-scissors-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@bnb-chain/greenfield-js-sdk': patch
---

fix: Vgf strategy
2 changes: 1 addition & 1 deletion packages/js-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
]
},
"dependencies": {
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.31",
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.32",
"@cosmjs/proto-signing": "^0.32.0",
"@cosmjs/stargate": "^0.32.0",
"@cosmjs/tendermint-rpc": "^0.32.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/js-sdk/src/api/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class Bucket implements IBucket {
const { globalVirtualGroupFamilyId } =
await this.virtualGroup.getSpOptimalGlobalVirtualGroupFamily({
spId: storageProvider.id,
pickVgfStrategy: PickVGFStrategy.Strategy_Maximize_Free_Store_Size,
pickVgfStrategy: PickVGFStrategy.Strategy_Oldest_Create_Time,
});

const createBucketMsg: MsgCreateBucket = {
Expand Down
Loading

0 comments on commit caf93ce

Please sign in to comment.