Skip to content

Commit

Permalink
Rename blobber field to not_available (#1043)
Browse files Browse the repository at this point in the history
* remove unstake total

* not_available

* added GRAPHNODE_SC

* fixes for update image (#1058)

* update wasm demo for download

* preserver order in blobber of newallocationrequestg

* fixes for update image

* use multiUpload

* demo for multi operation

* clean up logs

* init Consensus

* feat wasm: UpdateForbidAllocation

* expose lockReadPool

* fix for unique blobbers

* init Consensus in Lock function (#1063)

* init Consensus

* fix panic in dirworker

---------

Co-authored-by: Hitenjain14 <[email protected]>

* run build on all PRs

* run on every PR

---------

Co-authored-by: Manali-Jain-Squareops <[email protected]>
Co-authored-by: boddumanohar <[email protected]>
Co-authored-by: Hitenjain14 <[email protected]>
Co-authored-by: Kishan Dhakan <[email protected]>
  • Loading branch information
5 people authored Jun 29, 2023
1 parent 84f2b61 commit 9f45f6c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
tags:
- 'v*.*.*'
pull_request:
branches: [ master, staging, qa ]
workflow_dispatch:

env:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ on:
push:
branches: [ master, staging ]
pull_request:
branches: [ master, staging ]
workflow_dispatch:

env:
Expand Down
2 changes: 1 addition & 1 deletion zboxcore/sdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ type Blobber struct {
UncollectedServiceCharge int64 `json:"uncollected_service_charge"`
IsKilled bool `json:"is_killed"`
IsShutdown bool `json:"is_shutdown"`
IsAvailable bool `json:"is_available"`
NotAvailable bool `json:"not_available"`
}

type Validator struct {
Expand Down
2 changes: 1 addition & 1 deletion zcncore/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ type Blobber struct {
Allocated common.Size `json:"allocated"`
LastHealthCheck common.Timestamp `json:"last_health_check"`
StakePoolSettings StakePoolSettings `json:"stake_pool_settings"`
IsAvailable bool `json:"is_available"`
NotAvailable bool `json:"not_available"`
}

type Validator struct {
Expand Down
4 changes: 2 additions & 2 deletions zcncore/transaction_mobile.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ type blobber struct {
LastHealthCheck int64 `json:"last_health_check"`
Terms Terms `json:"terms"`
StakePoolSettings StakePoolSettings `json:"stake_pool_settings"`
IsAvailable bool `json:"is_available"`
NotAvailable bool `json:"not_available"`
}

func (b *blobber) SetStakePoolSettings(delegateWallet string, minStake int64, maxStake int64, numDelegates int, serviceCharge float64) {
Expand All @@ -200,7 +200,7 @@ func (b *blobber) SetTerms(readPrice int64, writePrice int64, minLockDemand floa
}

func (b *blobber) SetAvailable(availability bool) {
b.IsAvailable = availability
b.NotAvailable = availability
}

type Validator interface {
Expand Down

0 comments on commit 9f45f6c

Please sign in to comment.