Skip to content

Commit

Permalink
update TerritorFileDelivery (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstaFrode authored Aug 12, 2024
1 parent eb735cd commit b5ae200
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit b5ae200

Please sign in to comment.