Skip to content

Commit

Permalink
fix shutdown blobber (#1374)
Browse files Browse the repository at this point in the history
  • Loading branch information
boddumanohar committed Jan 21, 2024
1 parent b885fa2 commit 0fbb702
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zboxcore/sdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -1292,12 +1292,15 @@ func KillProvider(providerId string, providerType ProviderType) (string, int64,
return hash, n, err
}

func ShutdownProvider(providerType ProviderType) (string, int64, error) {
func ShutdownProvider(providerType ProviderType, providerID string) (string, int64, error) {
if !sdkInitialized {
return "", 0, sdkNotInitialized
}

var input = map[string]interface{}{}
var input = map[string]interface{}{
"provider_id": providerID,
}

var sn = transaction.SmartContractTxnData{
InputArgs: input,
}
Expand Down

0 comments on commit 0fbb702

Please sign in to comment.