Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update TerritorFileDelivery #236

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chain/chainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ type Chainer interface {
CertIdleSpace(spaceProofInfo SpaceProofInfo, teeSignWithAcc, teeSign types.Bytes, teePuk WorkerPublicKey) (string, error)
ReplaceIdleSpace(spaceProofInfo SpaceProofInfo, teeSignWithAcc, teeSign types.Bytes, teePuk WorkerPublicKey) (string, error)
CalculateReport(teeSig types.Bytes, tagSigInfo TagSigInfo) (string, error)
TerritorFileDelivery(user []byte, fid string, target_territory string) (string, error)
TerritoryFileDelivery(user []byte, fid string, target_territory string) (string, error)

// SchedulerCredit
QueryCurrentCounters(accountId []byte, block int32) (SchedulerCounterEntry, error)
Expand Down
4 changes: 2 additions & 2 deletions chain/file_bank.go
Original file line number Diff line number Diff line change
Expand Up @@ -2100,15 +2100,15 @@ func (c *ChainClient) CalculateReport(teeSig types.Bytes, tagSigInfo TagSigInfo)
}
}

// TerritorFileDelivery transfer files to another territory
// TerritoryFileDelivery transfer files to another territory
// - user: file owner account
// - fid: file id
// - target_territory: transfer to the target territory
//
// Return:
// - string: block hash
// - error: error message
func (c *ChainClient) TerritorFileDelivery(user []byte, fid string, target_territory string) (string, error) {
func (c *ChainClient) TerritoryFileDelivery(user []byte, fid string, target_territory string) (string, error) {
c.lock.Lock()
defer func() {
c.lock.Unlock()
Expand Down
2 changes: 1 addition & 1 deletion example/parse_block/parse_block.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func main() {
panic(err)
}

blockData, err := sdk.ParseBlockData(24112)
blockData, err := sdk.ParseBlockData(123524)
if err != nil {
fmt.Println("ERR: ", err)
return
Expand Down
Loading