Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/staging' into sprint-1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
dabasov committed Jan 21, 2024
2 parents 9bc91c6 + 6da82b9 commit 6f48750
Show file tree
Hide file tree
Showing 37 changed files with 265 additions and 196 deletions.
2 changes: 2 additions & 0 deletions core/transaction/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ const (
STORAGESC_WRITE_POOL_LOCK = "write_pool_lock"
STORAGESC_WRITE_POOL_UNLOCK = "write_pool_unlock"
STORAGESC_UPDATE_SETTINGS = "update_settings"
ADD_HARDFORK = "add_hardfork"
STORAGESC_COLLECT_REWARD = "collect_reward"
STORAGESC_KILL_BLOBBER = "kill_blobber"
STORAGESC_KILL_VALIDATOR = "kill_validator"
Expand Down Expand Up @@ -166,6 +167,7 @@ const (
ZCNSC_ADD_AUTHORIZER = "add-authorizer"
ZCNSC_AUTHORIZER_HEALTH_CHECK = "authorizer-health-check"
ZCNSC_DELETE_AUTHORIZER = "delete-authorizer"
ZCNSC_COLLECT_REWARD = "collect-rewards"

ESTIMATE_TRANSACTION_COST = `/v1/estimate_txn_fee`
FEES_TABLE = `/v1/fees_table`
Expand Down
11 changes: 5 additions & 6 deletions zboxcore/mocks/AllocationChange.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions zboxcore/mocks/EncryptionScheme.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions zboxcore/mocks/FileNameBuilder.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions zboxcore/mocks/Hasher.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions zboxcore/mocks/HttpClient.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions zboxcore/mocks/LiveUploadReader.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions zboxcore/mocks/M3u8Writer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions zboxcore/mocks/RefEntity.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions zboxcore/mocks/SCRestAPIHandler.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions zboxcore/mocks/SignFunc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions zboxcore/mocks/StatusCallback.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions zboxcore/mocks/Suite.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion zboxcore/sdk/chunked_upload_blobber.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,6 @@ func (sb *ChunkedUploadBlobber) processWriteMarker(
}
size += change.GetSize()
}

rootRef.CalculateHash()
return rootRef, lR.LatestWM, size, fileIDMeta, nil
}
9 changes: 6 additions & 3 deletions zboxcore/sdk/downloadworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,13 @@ func (req *DownloadRequest) processDownload(ctx context.Context) {
}
fRef := req.fRef
if fRef != nil && fRef.ActualFileHash == emptyFileDataHash {
if req.statusCallback != nil {
req.statusCallback.Completed(
req.allocationID, remotePathCB, fRef.Name, "", len(emptyFileDataHash), op)
logger.Logger.Info("File is empty")
_, err := req.fileHandler.Write([]byte(emptyFileDataHash))
if err != nil {
req.errorCB(errors.Wrap(err, "Write file failed"), remotePathCB)
return
}
req.fileHandler.Sync() //nolint
return
}
size, chunksPerShard, blocksPerShard := req.size, req.chunksPerShard, req.blocksPerShard
Expand Down
11 changes: 5 additions & 6 deletions zcnbridge/mocks/EthereumClient.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions zcnbridge/mocks/JobResult.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6f48750

Please sign in to comment.