Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrl-alt-lulz committed Nov 24, 2023
1 parent 48bd05e commit cd79002
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions apps/snapshots/downloader/init_actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,7 @@ type WorkloadInfo struct {
}

func InitWorkloadAction(ctx context.Context, w WorkloadInfo) {
switch w.Protocol {
case "cosmos":
CosmosStartup(ctx, w)
case "eth", "ethereum":
if useDefaultToken {
_ = init_jwt.SetTokenToDefault(Workload.DataDir, "jwt.hex", jwtToken)
}
switch w.Network {
case "ephemery", "ephemeral":
// do something
ephemery_reset.ExtractAndDecEphemeralTestnetConfig(Workload.DataDir, clientName)
}
switch w.WorkloadType {
case "send-payload":
log.Info().Interface("payloadBasePath", payloadBasePath).Interface("payloadPostPath", payloadPostPath).Msg("sending payload")
payl := w.DataDir.ReadFileInPath()
Expand All @@ -45,6 +34,19 @@ func InitWorkloadAction(ctx context.Context, w WorkloadInfo) {
if resp.StatusCode() >= 400 {
panic(resp.Status())
}
}
switch w.Protocol {
case "cosmos":
CosmosStartup(ctx, w)
case "eth", "ethereum":
if useDefaultToken {
_ = init_jwt.SetTokenToDefault(Workload.DataDir, "jwt.hex", jwtToken)
}
switch w.Network {
case "ephemery", "ephemeral":
// do something
ephemery_reset.ExtractAndDecEphemeralTestnetConfig(Workload.DataDir, clientName)
}
case "sui":
SuiStartup(ctx, w)
}
Expand Down

0 comments on commit cd79002

Please sign in to comment.