From b5ae20000b104f5caf3d0d4fac67d9fabaa079a4 Mon Sep 17 00:00:00 2001 From: AstaFrode Date: Mon, 12 Aug 2024 10:38:00 +0800 Subject: [PATCH] update TerritorFileDelivery (#236) --- chain/chainer.go | 2 +- chain/file_bank.go | 4 ++-- example/parse_block/parse_block.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chain/chainer.go b/chain/chainer.go index 8fb69cf..a0089d6 100755 --- a/chain/chainer.go +++ b/chain/chainer.go @@ -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) diff --git a/chain/file_bank.go b/chain/file_bank.go index 13c6be7..a4d1db4 100755 --- a/chain/file_bank.go +++ b/chain/file_bank.go @@ -2100,7 +2100,7 @@ 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 @@ -2108,7 +2108,7 @@ func (c *ChainClient) CalculateReport(teeSig types.Bytes, tagSigInfo TagSigInfo) // 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() diff --git a/example/parse_block/parse_block.go b/example/parse_block/parse_block.go index 55c2a21..617223f 100755 --- a/example/parse_block/parse_block.go +++ b/example/parse_block/parse_block.go @@ -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