@@ -245,6 +245,14 @@ var newallocationCmd = &cobra.Command{
245245 }
246246 }
247247
248+ var authRoundExpiry int64
249+ if flags .Changed ("auth_round_expiry" ) {
250+ authRoundExpiry , err = flags .GetInt64 ("auth_round_expiry" )
251+ if err != nil {
252+ log .Fatal ("invalid forbid_upload: " , err )
253+ }
254+ }
255+
248256 var allocationID string
249257 if len (owner ) == 0 {
250258 options := sdk.CreateAllocationOptions {
@@ -267,6 +275,7 @@ var newallocationCmd = &cobra.Command{
267275 Force : force ,
268276 IsEnterprise : isEnterprise ,
269277 StorageVersion : int (storageVersion ),
278+ AuthRoundExpiry : authRoundExpiry ,
270279 }
271280 allocationID , _ , _ , err = sdk .CreateAllocationWith (options )
272281 if err != nil {
@@ -284,7 +293,7 @@ var newallocationCmd = &cobra.Command{
284293 }
285294
286295 allocationID , _ , _ , err = sdk .CreateAllocationForOwner (owner , ownerPublicKey , * datashards , * parityshards ,
287- * size , readPrice , writePrice , lock , preferred_blobbers , blobber_auth_tickets , thirdPartyExtendable , isEnterprise , force , & fileOptionParams , 0 )
296+ * size , readPrice , writePrice , lock , preferred_blobbers , blobber_auth_tickets , thirdPartyExtendable , isEnterprise , force , & fileOptionParams , authRoundExpiry )
288297 if err != nil {
289298 log .Fatal ("Error creating allocation: " , err )
290299 }
@@ -366,6 +375,7 @@ func init() {
366375 newallocationCmd .Flags ().Bool ("forbid_rename" , false , "(default false) specify if the users cannot rename objects in this allocation" )
367376
368377 newallocationCmd .Flags ().Int64 ("storage_version" , 0 , "storaage version of allocation" )
378+ newallocationCmd .Flags ().Int64 ("auth_round_expiry" , 0 , "storaage version of allocation" )
369379}
370380
371381func storeAllocation (allocationID string ) {
0 commit comments