0chain / zboxcli

A client CLI using GoSDK to interface the blockchain, storage platform, and blobbers (storage providers)
MIT License
27 stars 21 forks source link

download cost via lookuphash should work without remotepath #552

Open boddumanohar opened 9 months ago

boddumanohar commented 9 months ago

download cost via lookuphash should work without remotepath

currently it requires remotepath

./zbox get-download-cost --lookuphash ccbeabede6d6e51e276034e4528cd0f14a92179c68c1dbe12562fabd7d035581 --allocation $ALLOC
0chain-core-sdk [INFO]   2023/10/26 14:59:01.709224 wallet_base.go:327: ******* Wallet SDK Version:v1.10.0-70-g7f7e89b4 ******* (SetLogFile)
0box-sdk        [INFO]   2023/10/26 14:59:01.709325 sdk.go:79: ******* Storage SDK Version: v1.10.0-70-g7f7e89b4 *******
0chain-core-sdk [INFO]   2023/10/26 14:59:02.335696 transaction_base.go:143: ******* Wallet SDK Version:v1.10.0-70-g7f7e89b4 ******* (InitZCNSDK)
0box-sdk        [DEBUG]  2023/10/26 14:59:02.885183 networkworker.go:119: Get network result:{"miners":["https://demo2.zus.network/miner01","https://demo3.zus.network/miner01","https://demo1.zus.network/miner01"],"sharders":["https://demo2.zus.network/sharder01","https://demo3.zus.network/sharder01","https://demo1.zus.network/sharder01"]}
'remotepath' or 'authticket' flag required
Zorro30 commented 7 months ago

Had a converstaion @boddumanohar , his perspective is that since the reads are free. we can remove this commands altogether

Hence raised a PR accordingly https://github.com/0chain/zboxcli/pull/585