From 0af03ea6278b83878eb8b76571c59c6f4441c06f Mon Sep 17 00:00:00 2001 From: cam-schultz Date: Tue, 26 Nov 2024 15:36:27 -0600 Subject: [PATCH] use rpc options when bootstrapping network --- peers/app_request_network.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/peers/app_request_network.go b/peers/app_request_network.go index f962ece1..821a3924 100644 --- a/peers/app_request_network.go +++ b/peers/app_request_network.go @@ -27,6 +27,7 @@ import ( "github.com/ava-labs/avalanchego/utils/set" "github.com/ava-labs/avalanchego/vms/platformvm" "github.com/ava-labs/avalanchego/vms/platformvm/warp" + "github.com/ava-labs/awm-relayer/peers/utils" "github.com/ava-labs/awm-relayer/peers/validators" "github.com/prometheus/client_golang/prometheus" "go.uber.org/zap" @@ -160,7 +161,8 @@ func NewNetwork( } pClient := platformvm.NewClient(cfg.GetPChainAPI().BaseURL) - vdrs, err := pClient.GetCurrentValidators(context.Background(), constants.PrimaryNetworkID, nil) + options := utils.InitializeOptions(cfg.GetPChainAPI()) + vdrs, err := pClient.GetCurrentValidators(context.Background(), constants.PrimaryNetworkID, nil, options...) if err != nil { logger.Error("Failed to get current validators", zap.Error(err)) return nil, err