From a55afb28e125b2e80d33530468ecd1020e4e71b5 Mon Sep 17 00:00:00 2001 From: Brian Ginsburg Date: Wed, 15 Jan 2025 09:35:02 -0800 Subject: [PATCH] temp: Demo requesting a validation token --- pkg/resourceprovider/resourceprovider.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/resourceprovider/resourceprovider.go b/pkg/resourceprovider/resourceprovider.go index cb3a25d6..9797a935 100644 --- a/pkg/resourceprovider/resourceprovider.go +++ b/pkg/resourceprovider/resourceprovider.go @@ -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