Skip to content

Commit

Permalink
temp: Demo requesting a validation token
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed Jan 15, 2025
1 parent 1965de1 commit a55afb2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/resourceprovider/resourceprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ func NewResourceProvider(
}

func (resourceProvider *ResourceProvider) Start(ctx context.Context, cm *system.CleanupManager) chan error {
token, err := resourceProvider.controller.solverClient.GetValidationToken()
if err != nil {
fmt.Printf("+++ whoops error: %s\n", err)
} else {
fmt.Printf("+++ token received: %+v\n", token)
}

if !resourceProvider.options.Pow.DisablePow {
if errCh := resourceProvider.StartMineLoop(ctx); errCh != nil {
return errCh
Expand Down

0 comments on commit a55afb2

Please sign in to comment.